Commit Graph

2234 Commits

Author SHA1 Message Date
tsutsui 6d45816bf7 Add sti at sgc configuration for SGC EVRX framebuffers found on
some later HP4xx models.  Untested, and disabled in GENERIC for now.
2011-05-21 12:06:14 +00:00
tsutsui 34637b8687 - merge and move pasted m68k MD setreg() functions into m68k/m68k_machdep.c
- move m68881_save() and m68881_restore() declarations into <m68k/m68k.h>

Briefly tested and no obvious breakage on atari, sun3, and x68k.
2011-05-16 13:22:51 +00:00
tsutsui 2a5cd8e30b Misc KNF. 2011-05-15 16:57:08 +00:00
tsutsui 76e58a69aa Move intr_init() call from early hp300_init() to cpu_configure(9)
since interrupt functions would want evcnt(9).
2011-05-10 14:38:08 +00:00
rmind 2626d57668 Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
mrg 07a98cd33f obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.
2011-04-11 04:22:30 +00:00
bouyer 063f96f3c2 merge the bouyer-quota2 branch. This adds a new on-disk format
to store disk quota usage and limits, integrated with ffs
metadata. Usage is checked by fsck_ffs (no more quotacheck)
and is covered by the WAPBL journal. Enabled with kernel
option QUOTA2 (added where QUOTA was enabled in kernel config files),
turned on with tunefs(8) on a per-filesystem
basis. mount_mfs(8) can also turn quotas on.

See http://mail-index.netbsd.org/tech-kern/2011/02/19/msg010025.html
for details.
2011-03-06 17:08:10 +00:00
tsutsui 094e0e9bb0 Remove trailing spaces. 2011-03-06 14:51:21 +00:00
joerg 48717cfc00 Refactor ps_strings access. Based on PK_32, write either the normal
version or the 32bit compat layout in execve1. Introduce a new function
copyin_psstrings for reading it back from userland and converting it to
the native layout. Refactor procfs to share most of the code with the
kern.proc_args sysctl handler.

This material is based upon work partially supported by
The NetBSD Foundation under a contract with Joerg Sonnenberger.
2011-03-04 22:25:24 +00:00
tsutsui 03dc8ab333 Regen from diodevs rev 1.14:
> Move recently supported framebuffers out of the "unsupported" list.
2011-02-19 05:41:38 +00:00
tsutsui b4bb90433e Move recently supported framebuffers out of the "unsupported" list. 2011-02-19 05:40:58 +00:00
tsutsui 39347d4a8b u_int8_t -> uint8_t 2011-02-19 05:37:55 +00:00
tsutsui a7b6e61697 Actually check that the configured console device is a wsdisplay. 2011-02-19 05:36:49 +00:00
tsutsui 5248c6928d - make local functions static
- use aprint_erorr(9)
- some KNF
2011-02-19 05:34:59 +00:00
tsutsui 2ba8a55cfa Use aprint_normal(9) and variants. 2011-02-18 19:15:43 +00:00
tsutsui d37f017885 Make local functions static. 2011-02-18 19:15:06 +00:00
tsutsui ad086f710d sgc takes slot, not scode. 2011-02-18 16:06:20 +00:00
tsutsui 58fe5c22a9 Add definitions for stream methods. 2011-02-18 16:05:22 +00:00
tsutsui 1c458de26a Make local functions and variables static. 2011-02-18 16:02:48 +00:00
tsutsui 66ead73efb Handle LED_DISK per DMA xfer. 2011-02-12 23:10:22 +00:00
tsutsui b9e4bfb779 Fix comment (362 doesn't have frodo). 2011-02-12 22:48:04 +00:00
tsutsui 5d7f465d18 - make local functions static
- some KNF
2011-02-12 16:40:29 +00:00
tsutsui a2c185b791 Fix one more porting botch inside #ifdef WSDISPLAY_COMPAT_RAWKBD. 2011-02-12 16:37:32 +00:00
tsutsui d04d580fa0 Make sure to include "opt_wsdisplay_compat.h" for WSDISPLAY_COMPAT_RAWKBD. 2011-02-12 16:36:37 +00:00
tsutsui d19119aabd Make this compile properly with options WSDISPLAY_COMPAT_RAWKBD. 2011-02-12 16:30:22 +00:00
tsutsui d380e65df3 Pull Apollo Domain keyboard and mouse support from OpenBSD.
Untested (no hardware), but no bad sideeffect on 425t without Domain keyboard.

This is the last portion of "new hp300 kernel features" submitted in
PR port-hp300/3528 back in 1997, and I think finally we can close it.
2011-02-12 15:49:01 +00:00
tsutsui 638059b337 Pull basic SGC bus attachment from OpenBSD to test devices.
Disabled by default since there is no SGC drivers yet.
2011-02-12 05:15:39 +00:00
tsutsui 64fee8d971 Bump version for 362 and 382 framebuffer support. 2011-02-12 05:09:15 +00:00
tsutsui 94f17fd857 Add dumb framebuffer (no acceleration, no colormap) support
for HP362 and HP382.

Tested on A1473-69510 (HP362 VGA-res) and A1474-69511 (HP382 mid-res).
2011-02-12 05:08:40 +00:00
tsutsui 8cf6d1b4d0 Umm, fix typo. 2011-02-12 04:52:28 +00:00
tsutsui 5b1afbb01e Use __func__ to print (correct) function names. 2011-02-12 03:43:50 +00:00
tsutsui c03550ce59 Pull support for Tigershark monochrome framebuffer from OpenBSD.
Untested (no hardware), but doesn't break existing HP425t topcat.
2011-02-10 13:04:31 +00:00
tsutsui 8ecbf43c22 Bump version to denote standalone ITE driver reorganization
pulled from OpenBSD.
2011-02-10 12:47:08 +00:00
tsutsui f6330dd725 Pull OpenBSD's standalone ITE driver reorganization:
- merge similar clear, putc, cursor, and scroll ops for all DIO framebuffers
 - rename and move hyper_windowmove() to ite_dio_windowmove1bpp()
   to use it among all dumb monochrome framebuffers
 - ditto hyper_putc() to ite_dio_putc1bpp()
 - remove unnecessary flags, macro, function args, and structure members
 - remove trailing spaces and tabs

Also misc cosmetics to reduce diffs from OpenBSD,
and some KNF that generates diffs from OpenBSD.

Tested on HP382 and HP425t.
2011-02-10 12:46:22 +00:00
tsutsui 8c49816297 Remove unused deinit functions. From OpenBSD. 2011-02-10 11:17:21 +00:00
tsutsui 36ac47ef5d Move and renamve hyper_ite_fontinit() to ite_fontinit1bpp() to share it
among all monochrome framebuffers.  Also rename ite_fontinit() to
ite_fontinit8bpp(). From OpenBSD.
2011-02-10 11:08:23 +00:00
tsutsui 07c63417c7 bcopy() -> memmove()
How did this one survive several sweeps?
2011-02-10 10:52:01 +00:00
tsutsui f7bfe85d50 All framebuffer drivers use common readbyte and writeglyph functions
so no need to put them into per driver function pointers. From OpenBSD.

Tested on HP382 (serial) and HP425t (topcat).
2011-02-10 10:44:22 +00:00
tsutsui 10c24972b3 NHIL is no more. 2011-02-09 09:32:49 +00:00
tsutsui 455d1e697c Remove leftover debug stuff. 2011-02-09 09:29:57 +00:00
rmind 9b6bd2d968 Remove clause 3 (UCB advertising clause) from the University of Utah
copyright.  Confirmed by Mike Hibler, mike at cs.utah.edu - thanks!
Also, merge UCB and Utah copyright texts back into one, as they
originally were.

Extra verification by snj@.
2011-02-08 20:20:06 +00:00
tsutsui 13b242e45c Resurrect and move retired ITE files that are still used by bootloaders. 2011-02-07 13:11:41 +00:00
tsutsui f73265d5d8 Switch NetBSD/hp300 to wscons with rasops. Simply ported from OpenBSD/hp300.
- Only A1416 Kathmandu (topcat) framebuffer on 425t is tested, but
  all other variants (TigerShark, Hyperion, DaVinci, GatorBox, Renaissance)
  should also work if they are working on OpenBSD/hp300.
- sti(4) and SGC bus support are not pulled because I don't have 425e
  and I can't confirm that 362 and 382 actually have SGC bus.
  (I'll commit a DIO based dumb driver for 362 and 382 framebuffers later)
- Xorg server with wsfb driver will also be integrated soon
  once after keycode with NoSymbol problem is addressed.
  (We have to re-think what code should be used on WSDISPLAY_COMPAT_RAWKBD)
- MI HIL keyboard and mouse drivers are working fine though
  cngetc via hilkbd has some problem (still we can input commands).
- No old HP-UX like HIL ioctl compatibility (we removed COMPAT_HPUX anyway).
  grfinfo(8) and hilinfo(8) will be removed shortly.

Demonstrated on NetBSD booth at Open Source Conference 2011 Kagawa.
2011-02-06 18:40:55 +00:00
tsutsui b04b7da893 Switch NetBSD/hp300 to wscons with rasops. Simply ported from OpenBSD/hp300.
- Only A1416 Kathmandu (topcat) framebuffer on 425t is tested, but
  all other variants (TigerShark, Hyperion, DaVinci, GatorBox, Renaissance)
  should also work if they are working on OpenBSD/hp300.
- sti(4) and SGC bus support are not pulled because I don't have 425e
  and I can't confirm that 362 and 382 actually have SGC bus.
  (I'll commit a DIO based dumb driver for 362 and 382 framebuffers later)
- Xorg server with wsfb driver will also be integrated soon
  once after keycode with NoSymbol problem is addressed.
  (We have to re-think what code should be used on WSDISPLAY_COMPAT_RAWKBD)
- MI HIL keyboard and mouse drivers are working fine though
  cngetc via hilkbd has some problem (still we can input commands).
- No old HP-UX like HIL ioctl compatibility (we removed COMPAT_HPUX anyway).
  grfinfo(8) and hilinfo(8) will be removed shortly.

Demonstrated on NetBSD booth at Open Source Conference 2011 Kagawa.
2011-02-06 18:26:51 +00:00
tsutsui 7f708326a6 Remove trailing TABs. 2011-02-06 14:26:09 +00:00
tsutsui 920e84bce6 - adjust a comment for frodo (362 doesn't have frodo)
- whitespace nits
2011-02-06 06:47:15 +00:00
tsutsui 16eec029a7 Regen from diodevs rev 1.13:
> Pull description about TurboVRX ("tigershark") display from OpenBSD.
2011-02-06 04:06:58 +00:00
tsutsui dc87ed5261 Pull description about TurboVRX ("tigershark") display from OpenBSD. 2011-02-06 04:06:11 +00:00
tsutsui e61d973507 RENASSIANCE -> RENAISSANCE 2011-02-06 03:53:25 +00:00
tsutsui 351a48811c Regen from diodevs rev 1.12:
> RENASSIANCE -> RENAISSANCE
2011-02-06 03:51:58 +00:00