Commit Graph

214 Commits

Author SHA1 Message Date
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
simonb
2db5581a4c Declare the mcclock_pad32_busfns variable as extern. 2000-02-11 02:36:16 +00:00
takemura
ba04c55ed3 Absolute pointing device support.
- Wsmouse_input() get new argument 'flag', which indicates whether x/y/z are
   relative or absolute.
 - Wsmouse get new io controls, WSMOUSEIO_SCALIBCOORDS and
   WSMOUSEIO_GCALIBCOORDS.
2000-01-08 02:57:22 +00:00
nisimura
40f7514028 Introduce wscons vsxxx mice (and possible tablet) routines; changes
of existing codes (lk201_ws.c, zskbd.c, and zsms.c) will follow.
1999-11-20 04:55:30 +00:00
drochner
29dd0803eb allow to wildcard the serial channel 1999-10-26 18:20:44 +00:00
drochner
fa13e8eb92 set odd parity for the serial line
(done by directly setting zilog chip control bits -- there should be
a zs_set_frame() or so in z8530sc.c)
fixes PR port-alpha/8423 by Konrad Schroder <perseant@hhhh.org>
1999-09-19 14:45:47 +00:00
drochner
61ab682f29 set baudrate before talking to the keyboard (in non-console case)
from Konrad Schroder per PR port-alpha/8422
1999-09-16 19:39:05 +00:00
nisimura
cb6ed03a59 - Replace device node names of zskbd/zsms into lkkbd/vsms, respectively.
No functionality was changed at this moment.
- Apply recent changes in GENERIC to TCWSCONS.
1999-08-04 07:17:50 +00:00
ragge
708904c240 Moved to ubavar.h,v 1999-05-27 16:04:47 +00:00
ragge
6fa26360b3 Moved to ubareg.h,v 1999-05-27 16:04:28 +00:00
ragge
24a2d9159f Moved to uba.c,v 1999-05-27 16:04:14 +00:00
ragge
ea56e2d6a7 Moved to files.uba,v 1999-05-27 16:03:56 +00:00
ragge
607566ab67 Moved to dzvar.h,v 1999-05-27 16:03:40 +00:00
ragge
fd1e7f64df Moved to dzreg.h,v 1999-05-27 16:03:12 +00:00
ragge
0377900670 Moved to dz_uba.c,v 1999-05-27 16:02:49 +00:00
ragge
ae0c1db46f Moved to dz.c,v 1999-05-27 16:02:33 +00:00
ragge
fecbb5dd59 Moved to dlreg.h,v 1999-05-27 16:02:03 +00:00
ragge
547475d08e Moved to dl.c,v 1999-05-27 16:00:44 +00:00
ragge
f558ec11e2 Directory called qbus instead of uba, per request from Matt/Jason/...
(More describing name actually)
1999-05-27 03:45:21 +00:00
ragge
12b6c6d04f DL-11 driver bus'ified. UNTESTED. 1999-05-26 02:01:49 +00:00
ragge
e805bfec25 DZ-11 routines bus'ified. Small fixes to uba routines. 1999-05-26 01:26:17 +00:00
ragge
7fb0d17b38 First step towards MI Unibus/Q22 bus code. 1999-05-24 20:12:57 +00:00
ad
14c68aa23d Defined KEY_CAPSLOCK. 1999-03-19 18:34:01 +00:00
ragge
4d77aa3c15 Avoid warning if !QBA. 1999-03-13 20:26:50 +00:00
ragge
f9b0eec83a Change vsbus to take a locator for all devices.
Figure out interrupt vector/mask on vsbus by forcing all devices to
generate interrupts in the match routine, like on unibus.
1999-03-13 15:16:47 +00:00
kleink
a6d726254d Un-nest __P(). 1999-03-10 12:58:00 +00:00
mycroft
b3a56d0097 Catch up with a change to the stint interface. 1999-02-03 20:22:28 +00:00
ragge
13daba04a1 Another giant change: Allocate register space dynamic instead of compiled-in.
This is done on a physical page size basis, instead of virtual (as the
(on vax yet non-existing) bus_* routines does). This is similar to the
way uba allocation is done.
1999-02-02 18:37:20 +00:00
ragge
cb2675ff12 Fix some void pointers. 1999-01-19 22:57:47 +00:00
ragge
bef0af5311 Allocate (almost) all interrupt vectors dynamically. Simplifies much
work when adding support for new machines and devices.
1999-01-19 21:04:47 +00:00
thorpej
8ce7166aa3 __pmax__ -> pmax, like other ports. 1999-01-15 23:29:55 +00:00
drochner
ed3f310c95 use new KS_KEYCODE macro from wsksymdef.h 1999-01-06 12:04:09 +00:00
ragge
d0e7a99a8a Giant change: NBPG now set to 4k and CLSIZE == 1 for vax. This change
made a whole bunch of annoying bugs disappear; mostly depending on
bad use of NBPG in non-MD code. The VAX port was the only port that
used this historical "feature".

The CL* macros should probably go away totally, there is no reason
at all to keep them.
1999-01-01 21:43:17 +00:00
ragge
f07a586dc6 the btoc/ctob/btop macros must use CLBYTES, not NBPG. How this should
work in the long run is an open issue; some parts must be reworked
in a MI way.
1998-11-29 14:48:51 +00:00
ragge
fbed93d50d EGCS fixes. 1998-11-05 19:48:04 +00:00
drochner
b301435840 back out last change - this file in unrelated to wscons stuff 1998-10-22 18:50:17 +00:00
drochner
01d6f66b07 adapt to keyboard driver changes 1998-10-22 18:37:57 +00:00
drochner
00d699282f separate keyboard handling from serial interface handling some more,
improve bell handling, initialize kbd on powerup
1998-10-22 17:55:20 +00:00
nisimura
f6490fe309 - General cleanups for NWSCONS zskbd.c and zsms.c Comments for
future improvement work.
1998-10-22 08:37:16 +00:00
briggs
b70011edac wscons mouse interface for DEC mice off the Zilog SCC.
Ported from dev/sun/ms.c by Takuya Koumoto <takuya-k@is.aist-nara.ac.jp>.
1998-10-22 01:56:55 +00:00
briggs
605b15b723 Code from Toru Nishimura and Matthias Drochner work on pmax wscons in a
very slightly modified form for wscons support on the TC alpha.
XXX This could use some more work, but this code should be sharable
    among the alpha and pmax systems as-is.
1998-10-22 00:53:24 +00:00
briggs
a8950dafc6 Updates from Takuya Kuomoto for wscons support for TC alphas. 1998-10-22 00:50:00 +00:00
ragge
18b6b32a67 Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added. 1998-10-18 18:47:18 +00:00
matt
75f5ffdf21 Change backplace0 to mainbus0 (for consistency with other ports).
Remove unused function protocols from ka410.h and ka43.h
Fix some ka46 missing references
1998-10-06 04:04:30 +00:00
drochner
24e6cd9435 Map the "backspace" key to "delete" and the "remove" key to
"keypad-delete". (This is not completely clean; for me these keys make
up perhaps a "function field", but no "keypad".)
This is the mapping expected by applications.
Proposed by Chris Jones via PR kern/6089 and Dave Sainty.
1998-09-18 15:35:45 +00:00
drochner
7f72e0eea5 LK201/LK401 support for wscons (only decoding for now). 1998-09-17 20:01:57 +00:00
drochner
af9cabdaaa Add definition for highest legal LK201 keycode. 1998-09-17 19:59:30 +00:00
drochner
ffa2207ec9 wskbd map for LK201/LK401 1998-09-17 18:29:54 +00:00
ragge
2ff84b0fe4 Kickoff xmit interrupts, needed on chip DC7201. 1998-08-10 14:41:16 +00:00
drochner
49bb9d8214 adapt to LANCE driver split 1998-07-21 17:36:01 +00:00
jonathan
3751946b97 defopt INET, NETATALK. 1998-07-05 00:51:04 +00:00
jonathan
466e784ee1 defopt DDB. 1998-07-04 22:18:13 +00:00
ragge
a4d0eae36b Add catch function for keyboard. 1998-06-14 11:52:35 +00:00
cgd
651b44e211 Rework the way kernel include files are installed. In the new method,
as with user-land programs, include files are installed by each directory
in the tree that has includes to install.  (This allows more flexibility
as to what gets installed, makes 'partial installs' easier, and gives us
more options as to which machines' includes get installed at any given
time.)  The old SYS_INCLUDES={symlinks,copies} behaviours are _both_
still supported, though at least one bug in the 'symlinks' case is
fixed by this change.  Include files can't be build before installation,
so directories that have includes as targets (e.g. dev/pci) have to move
those targets into a different Makefile.
1998-06-12 23:22:30 +00:00
ragge
b28c99b245 Fixed bug with lost characters in DDB output. 1998-05-23 12:49:30 +00:00
ragge
cd17c11c60 Support for DDB on DZ console. 1998-05-21 13:02:20 +00:00
ragge
4a469a9149 Split the DZ11 driver into two parts; can now use the same driver on
both unibus/qbus devices and vaxstations.
1998-05-17 18:51:13 +00:00
jonathan
c84f4e94d9 Copy alpha/tc/mcclock_ioasic.c (duplicated in pmax/tc/mcclock_ioasic.c)
into sys/dev/dec and split into a clockfns layer and a "middle" layer
for other DEC systems which use mcclocks with each onchip byte
register padded out to a 32-bit word.

Clone alpha/alpha/mcclock (also duplicated in pmax port) into
sys/dev/dec, and ifdef for default clockrates on pmax and alpha.

Use new machinery on pmax for ibus,ioasic attached mcclocks.
1998-04-19 07:50:25 +00:00
ragge
4bcd8130fe t_wopen fixes. 1998-04-13 12:14:42 +00:00
jonathan
9a8dbd75df Clone lk20.h (keycode definitions) to /sys/dev/dec.
Update source pmax files accordingly.
cvs remove old pmax/dev/lk201.h.
1998-03-22 09:27:07 +00:00
ragge
cad3cb3894 ubasetup() must be non-static. (used by QDSS) 1998-03-21 10:24:29 +00:00
ragge
8e2874bf64 Support for UVM on VAXen. 1998-03-02 17:00:00 +00:00
ragge
eda1eecede Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use
config_search instead.
1998-01-24 14:16:11 +00:00
ragge
01eb1bb746 Make kernel compile & run again after latest config changes. 1998-01-18 22:09:13 +00:00
thorpej
f32f947061 Update for changes to config. 1998-01-12 20:52:29 +00:00