Commit Graph

178 Commits

Author SHA1 Message Date
perry 93124077ae Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete. 2005-12-24 20:27:29 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
kleink aece7a90fd Change the driver open function's conditional for overriding exclusive tty
use from checking the proc's uid to suser(9), and account for the use of
privileges.  Noted by David Holland in PR kern/31126.
2005-09-06 21:40:37 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
perry 18db93c7f6 de-__P 2005-02-04 02:10:35 +00:00
matt 22120ad628 Constify the speedtab arrays 2004-04-25 06:23:40 +00:00
drochner ef369e0ed6 remove license clauses 3 and 4 from my cpoyright notices 2004-03-24 17:26:53 +00:00
wiz d20841bb64 Uppercase CPU, plural is CPUs. 2004-02-13 11:36:08 +00:00
ad 188f029f3f Missing splx() calls. 2003-12-14 01:18:36 +00:00
ad 3234027240 Add write barriers (a no-op on vax). 2003-12-13 23:02:33 +00:00
ad e296f9bf6e Catch break for cn_check_magic() and remove the pmax-specific hack. 2003-12-09 14:30:55 +00:00
ragge 895d584f93 Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead
of it's homwgrown tests.
2003-10-18 12:10:53 +00:00
agc aad01611e7 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
2003-08-07 16:26:28 +00:00
matt 5d09a84558 Add multiple inclusion protection. 2003-01-06 21:02:18 +00:00
ad 91d54c750b In dzkbd_attach(): set dzi_ls for the console keyboard, too. 2002-12-29 19:30:57 +00:00
jdolecek e0cc03a09b merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe
2002-10-23 09:10:23 +00:00
thorpej c9b3657ce9 Add trailing ; to CFATTACH_DECL. 2002-10-02 16:33:28 +00:00
thorpej bacf3a10fa Use CFATTACH_DECL(). 2002-09-30 20:43:55 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
thorpej 71404bb533 Don't include <sys/map.h>. 2002-09-25 22:21:01 +00:00
ad f8ec17dbbc Make the self-test logic match zsms, removing a 300ms delay on open. 2002-09-24 12:53:30 +00:00
ad 176dcfaf3d On pmax, drop into DDB on break. 2002-09-24 06:19:09 +00:00
ad 600684fe1c Also initalize dz_sc for each line. 2002-09-19 23:22:56 +00:00
ad 02efaf3855 Remove some duplicate/confusing lines. 2002-09-18 17:06:07 +00:00
ad 4db02b982d Initalize sc_dz[*].dz_line for the benefit of the bus front-end. 2002-09-18 16:51:16 +00:00
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.
2002-09-06 13:18:43 +00:00
lukem 4369818766 Migrate alpha/pmax/vax bootblock stuff from <dev/dec/dec_boot.h> to
<sys/bootblock.h>  (leaving ultrix compat goo in the former)
2002-05-14 06:34:20 +00:00
lukem 38b5c3b216 - Add alpha boot block info, derived from sys/arch/alpha/include/disklabel.h,
adding "alpha_" / "ALPHA_" prefix to items as appropriate.  Rename
  CHECKSUM_BOOT_BLOCK() -> ALPHA_BOOT_BLOCK_CKSUM().  Add cgd's copyright
  from disklabel.h.
- Clean up a couple of comments.
2002-04-03 04:05:05 +00:00
fredette c3d894c1c3 Wait longer for the mouse self-test to complete, otherwise some
faster machines decide that the mouse is broken.
2002-03-26 13:59:10 +00:00
atatat 31144d9976 Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.
2002-03-17 19:40:26 +00:00
ad 0cf4c60b83 zskbd_keydesctab -> lkkbd_keydesctab 2002-03-13 15:21:30 +00:00
ad 690cf19e33 Give wskbdmap_lk201.c its own attribute. 2002-03-13 15:18:19 +00:00
ad 3f78ffdeca Argh, dont reference any wscons parts in files.dec yet. 2002-02-25 17:11:17 +00:00
ad f89bb3064e Move the dz driver to dev/dec, since it can be shared with pmax. 2002-02-25 14:58:06 +00:00
simonb 20a3ef2b53 Remove some debug printf()s. 2001-12-05 10:54:51 +00:00
simonb 1b1e4bd3d1 Remove hardcoded values for HZ (under different names!) from mcclock.c
and clock_machdep.h, so that now HZ can be any supported frequency of
the mc146818a/ds1287a RTCs.
Tested at 256Hz and 2048Hz.
2001-11-23 01:04:11 +00:00
lukem dca6ccc83f add/cleanup RCSID 2001-11-13 12:49:45 +00:00
chs fd3414abea fix typo in previous. 2001-09-24 01:29:06 +00:00
ad 350d86c879 Save the new keyclick volume for later retrieval. 2001-09-19 12:42:11 +00:00
ad 21787ea4c6 Get/set keyclick volume. 2001-09-18 23:25:25 +00:00
mrg c13e3a6693 use _KERNEL_OPT 2001-05-30 11:40:35 +00:00
matt 893ab0ad39 export dec_boot.h 2001-05-03 05:26:08 +00:00
jdolecek 372e5956ef Only install headers which are actually used by our userland. This
saves about 2.2MB under /usr/include/dev/. Discussed on tech-kern@
recently.

I HOPE to get the list right. The headers I left in are ones
used for MI tools and those whose usage I discovered by grep over tree sources.
Feel free to put needed includes back in if you encounter anything which
should not be removed from lists.
2001-04-11 07:42:31 +00:00
matt d4792454d8 Change parameter to int from u_short as gcc doesn't like subint
arguments.
2001-03-06 07:40:52 +00:00
ragge 47dabcfc3f Support files to use wskbd/wsmouse on VAXen with DZ-like chips.
From Matthew Fredette (fredette@MIT.EDU).
2000-12-02 17:03:55 +00:00
ragge 23eb2da75d Accept the "Utför" key as a giant ctrl-alt key. On LK201 "Ctrl" and
"Compose" cannot be pressed at the same time.
2000-12-02 16:57:41 +00:00
nisimura 728e424e54 Repopulate 4 files, zs_ioasic.c and zs_ioasicvar.h from arch/alpha/tc,
zskbd.c and zsms.c from dev/dec/, respectively.  No functionality
change this time.
2000-07-05 02:48:50 +00:00
matt 3259331d60 There's only for 15 blocks of bootstrap, not 16. 2000-06-21 14:57:21 +00:00
matt 6bda02ae4b Fix typo. 2000-06-16 23:33:47 +00:00
matt bd24eacf64 Move dec_boot.h to here from arch/pmax/include and add the VAX boot block
info.  Eventually Alpha boot block information as well.
2000-06-16 23:09:57 +00:00