Commit Graph

289 Commits

Author SHA1 Message Date
fredette
8fbc2e1699 Changed some preprocessor tests for SUN4 to test for !SUN4U
instead.  Now this file can be used by the sun2 port.
2002-03-22 00:14:37 +00:00
fredette
9b70a4cc11 Added Sun common kbd_reg.h, kbio.h, and vuid_event.h files. 2002-03-22 00:11:55 +00:00
pk
56d115aa57 `bus_type_t' is gone. 2002-03-11 16:01:57 +00:00
tsutsui
bcba62925f Call malloc(9) with M_ZERO flag instead of bzero() after malloc(). 2002-01-14 13:32:44 +00:00
pk
f696afd8ff Name changes: {KBD,MS}_BPS => {KBD,MS}_DEFAULT_BPS 2001-12-11 17:27:25 +00:00
pk
80c46be6c1 KBD_BPS => KBD_DEFAULT_BPS (sync with ms driver nomenclature). 2001-12-09 12:03:32 +00:00
pk
5962ca0a49 Allow SUN_MS_BPS to override the mouse baud rate at all times. (see PR14774). 2001-12-09 12:02:06 +00:00
fredette
73001afb44 When opening the mouse port, be sure to open it for 8 data bits.
The sun2 PROM can leave the port configured for 7.
2001-11-27 16:19:43 +00:00
lukem
7ba10b3532 add RCSIDs 2001-11-13 06:54:32 +00:00
uwe
9380edd8ad In fb_bell call kbd_docmd only #if NKBD > 0.
This allows kernels without kbd at zs to be linked.
(JavaStation-1 does not have zs, it uses pckbc instead)
2001-11-12 08:14:30 +00:00
pk
fd12ba4f30 Don't force a fixed baud rate if the parent zs driver has already determined
the baud rate set by the PROM.
2001-09-28 14:34:49 +00:00
eeh
98ecb5b215 getprop* -> PROM_getprop* 2001-09-26 20:53:05 +00:00
eeh
766a9b8c9c Change bus_space_mmap() signature to the official one. 2001-09-24 23:49:31 +00:00
thorpej
b28dc27296 Define the DECstation framebuffer types, from pmax/include/fbio.h.
XXX Yes, this is disgusting, but it's also pretty stupid to have
what amounts to essentially the same include file duplicated in
so many places.
2001-09-19 18:29:03 +00:00
jdolecek
74954dadf9 use unsigned variable types as appropriate 2001-08-05 18:07:51 +00:00
pk
fda9cb9936 Avoid unused variables if RASTERCONS_FULLSCREEN is defined. (see PR#13231) 2001-06-24 15:47:45 +00:00
wiz
0a600be867 receive, not recieve 2001-06-12 15:17:10 +00:00
mrg
054673b07c #endif /* takes no argument */ 2001-06-08 12:51:17 +00:00
mrg
59024512bd LKM friendly: move ev_out32() to netbsd32 specific code; add an ev_out32 hook. 2001-06-07 17:52:52 +00:00
chs
bcc2ce4f8c give sunkbd and sunms a "poll" routine. 2001-05-17 02:24:00 +00:00
jdolecek
745ab257dc Put back all header files defining ioctls 2001-04-11 19:07:36 +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
tsutsui
6c3ff254ea Get rid of (unintentionally added) ^M. 2001-01-10 14:58:08 +00:00
tsutsui
234840a1ae Initialize the FBC mode register in cg6attach().
Values are taken from sunGX.[ch] in xsrc.

Now RASTERCONSOLE works properly on my SS1+ with old 2-slot sbus cg6.
2001-01-10 13:26:52 +00:00
eeh
0db43ad6ce Kill extra "attached" message. 2000-12-19 04:36:05 +00:00
eeh
71b0c155a0 Support for MI console magic framework. 2000-11-08 23:41:42 +00:00
chs
1c76b8d14d fix types in debug code. 2000-11-05 22:59:27 +00:00
eeh
9350b8913d Adapt to new line discipline scheme. 2000-11-01 23:57:14 +00:00
pk
f5ba0a3942 fb_is_console(): we must match on the `fb' propery in a V0 PROMs root node
only after establishing that the PROM output device is a frame buffer device.
2000-10-31 21:54:35 +00:00
pk
0abaf0f210 Fix compilation errors: unused variable & missing function return values. 2000-10-10 23:33:52 +00:00
abs
64f1d1a42f Add missing cast of ms to (struct device *) in ms_deviopen and ms_deviclose 2000-09-27 10:31:42 +00:00
eeh
c28a7b93c0 Support for Sun Keyboard/Mouse line disciplines. 2000-09-21 23:40:47 +00:00
eeh
ac3f296768 Guts of the Sun Keyboard/Mouse line disciplines.
N.B. They don't recognize L1-A yet.
2000-09-21 22:25:08 +00:00
eeh
194bbc3c5d Don't bcopy() from luserland. 2000-08-26 20:08:22 +00:00
eeh
a0f2ab32f7 Make 64-bit clean. 2000-08-26 16:02:06 +00:00
pk
12cd7ada9a Common framebuffer functions.
(currently includes a special cased fb_isconsole() for sun4u).
2000-08-23 13:41:15 +00:00
pk
a50a11e47f Add fb_setsize_pfour() prototype. 2000-08-23 12:02:47 +00:00
pk
e02ba8698f Declare drivers moved here from arch/sparc/dev. 2000-08-22 21:30:27 +00:00
pk
40903bf7d3 Split off `pfour' code from sparc/dev/fb.c into a separate file.
This file will be pulled in by framebuffer drivers that define the `pfour'
attribute.
2000-08-22 21:18:14 +00:00
mrg
d12156f1bf #include <compat/netbsd32/netbsd32.h> if necessary 2000-08-22 07:36:04 +00:00
pk
f83d14e14b Move declaration up, before it is used. 2000-08-20 20:01:45 +00:00
pk
124ea6d974 <machine/fbio.h> -> <dev/sun/fbio.h> 2000-08-20 19:58:53 +00:00
pk
e8ed83e13f Split & move cgthree from arch/sparc. 2000-08-20 19:58:19 +00:00
pk
1eeffbaac6 De-P__ 2000-08-20 14:30:13 +00:00
pk
6e36f80602 Move cgsix, bwtwo and BT DAC support here from arch/sparc. 2000-08-20 14:28:49 +00:00
pk
02c262b278 Move fbio.h and fbvar.h here. 2000-08-20 14:00:43 +00:00
eeh
7becceeb4b Add COMPAT_NETBSD32 support. 2000-08-20 13:44:14 +00:00
eeh
424619ca1a Fix the sparc64 console.
Unlike the other Sun machines, UltraSPARCs can have consoles run on different
chips than zs, so we need to support them.  So, here we go:

	Add a new PROM console driver with a major number and everything.
	This is the default driver if nothing else attaches.  It does not
	use the keyboard driver since the PROM translates keystrokes itself.
	(Unfortunately it also swallows L1-A).

	Have the keyboard driver take over the console when it attaches on a
	serial port.  When a serial port detects a keyboard and attaches the
	keyboard driver, it needs to provide a set of consdev vectors.  They
	keyboard driver will use those to send I/O to the keyboard and mouse.
2000-05-19 05:26:16 +00:00
augustss
169ac5b3c1 Remove register declarations. 2000-03-30 12:41:09 +00:00
hannken
43e3ea96f3 Fix typos from last commit (callout). 2000-03-24 11:46:46 +00:00
thorpej
fc96443d15 New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.
2000-03-23 07:01:25 +00:00
pk
4174ad4b3d Make kbd_iopen/kbd_iclose internal routines; introduce kbd_cc_{open,close}
for opening and closing the device when attached to /dev/console.
2000-03-22 16:08:51 +00:00
pk
08a1a0f49d Use a somewhat more flexible method to hook up the keyboard driver
as the console input device.
2000-03-19 12:50:43 +00:00
matt
f7141a0ffb The Tadpole 3GX uses a modified Sun Mouse protocol. Instead of
sending 5 bytes per sample, it sends 3 omitting the 2nd set of
dx/dy updates.  You can distinguish between the two forms since
the first byte of 5-bytes seq will be 0b10000xxx which a 3-byte
will have 0b10001xxx.  This changes allows the Xsun server to
run unchanged on the Tadpole 3GX (ignoring for now that the
colormap is still broken).
1999-08-02 01:50:27 +00:00
matt
825e233d2e Allow the mouse baud rate to be patched (rather than forcing a recompilation
of the kernel).  Also, if the mouse baud rate is 0, say the mouse the isn't
there (so a terminal may be attached in its place).  Make debugging mouse
problems much easier.
1999-08-02 01:44:22 +00:00
mrg
08db47ae0c oops, forgot to add these files. 1999-05-14 07:07:16 +00:00
mrg
95e0190e23 split the sun ms/kbd drivers into frontend/backend parts at the serial
interface border, so that other serial interfaces can be attached to the
ms/kbd.  zero functional changes and mostly involves moving code around
a bit.  tested on the SS2.

this is necessary to attach the PCI ultrasparc keyboard/mouse drivers.
1999-05-14 06:42:02 +00:00
mycroft
b3a56d0097 Catch up with a change to the stint interface. 1999-02-03 20:22:28 +00:00
jeremy
3712546023 Changed to allow the mouse baud rate to be set at kernel compile time.
Inspired by Mochida Shuji <mocid@yo.rim.or.jp>.
1998-09-29 02:46:36 +00:00
mrg
4d4f129eaa make "struct sun_dkpart" the same for sparc/sparc64 (sparc64 must have been broken?) 1998-08-22 14:55:28 +00:00
mrg
5ebf3ec307 add <dev/sun/disklabel.h> 1998-06-20 03:42:10 +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
thorpej
1934051221 Update for changes to config. 1998-01-12 09:36:53 +00:00
mycroft
26ecc7d3b0 Trivial change; use KB_SUN4 rather than the constant in one place. 1997-11-03 20:18:00 +00:00
gwr
80a52b9e7d KIOCSLED ioctl takes a char (from Krister Walfridsson). 1997-11-03 05:05:45 +00:00
gwr
d6a95307e3 The release and control maps are shared by all keyboard types, so
change KEYSYM_HOLE to KEYSYM_NOP most places in those tables.
Map the `R' function keys with KEYSYM_FUNC_R instead of the
arrow key strings so that numlock indirection works.
1997-10-28 06:18:36 +00:00
gwr
f4a80e422c Print more helpful information if we get unexpected keysyms.
Call kbd_xlate_init() after we know the keyboard type so it
has a chance to install the RIGHT keymap pointers!  (Duh!)
1997-10-28 06:14:17 +00:00
gwr
0889565499 Clean up kbdioctl():
* Make sure all uses of the data pointer are type-cast appropriately.
* Eliminate the super-user check in the KIOCSKEY case (back as it was).
* Return ENOTTY if the ioctl command code is unrecognized.
1997-10-21 15:17:31 +00:00
gwr
d9fba6bbfb Export kbd_docmd() because the sparc fb.c wants it. 1997-10-03 23:04:46 +00:00
jtk
37f9c6bd88 use locator defines in "locators.h" to index cf_loc[] 1997-07-17 01:17:45 +00:00
gwr
58abe62fde Update an obsolete comment. (We DO handle CapsLock and NumLock.) 1997-05-02 17:41:37 +00:00
gwr
1169ecb0a2 Adapt to the new definition of struct zsc_softc
(the zsc_cs[2] members are now POINTERS!)
Also fix warnings...
1996-12-17 20:46:11 +00:00
gwr
5c9746c6d1 Replace the field cs_rr0_new with cs_rr0_delta (keep changes instead). 1996-10-16 20:43:39 +00:00
christos
86373f8cf9 backout kprintf changes 1996-10-13 01:37:04 +00:00
christos
3b23328ae6 printf -> kprintf, sprintf -> ksprintf 1996-10-10 21:11:37 +00:00
mrg
9545fa196f select -> poll 1996-10-09 00:50:55 +00:00
mrg
c98a14ad90 update these for poll(2) changes. 1996-09-12 01:35:34 +00:00
pk
056bb18f67 A configuration file for devices found on Sun machines.
Currently holds just `event.c' which should actually be considered
a candidate for `sys/dev'.
1996-05-29 21:54:34 +00:00
pk
77323d42d7 Add missing splx(), per Jason.
Also, change `"event_var"' to `<dev/sun/event_var.h>'.
1996-05-29 21:24:41 +00:00
gwr
50ecbc1c84 Rename cs_pclk_div16 to cs_brg_clk to clarify the fact that the
Baud Rate Generator (BRG) clock is not necessarily PCLK/16.
1996-05-17 19:32:06 +00:00
gwr
32d12d3be4 Make the ring size configurable in the tty driver.
Make the pseudo-interrupt functions return void.
Call the tty layer at spltty (to be safe).
1996-04-10 21:44:35 +00:00
gwr
3143afbd6a Fix typo 1996-03-21 22:37:26 +00:00
thorpej
532e997971 New device attachment scheme:
- split softc size and match/attach out from cfdriver into
	  a new struct cfattach.

	- new "attach" directive for files.*.  May specify the name of
	  the cfattach structure, so that devices may be easily attached
	  to parents with different autoconfiguration semantics.
1996-03-17 00:57:14 +00:00
gwr
6957383c25 Remove obsolete comment. 1996-02-29 19:37:53 +00:00
gwr
99e8401680 Add support for CapsLock and NumLock toggles. 1996-02-29 19:32:14 +00:00
gwr
ce56580f30 Attach should get unit from _dev.dv_unit not sc_unit 1996-02-19 04:36:13 +00:00
gwr
f2e57c6dc8 Eliminate remaining direct references to the z8530 chip
to allow the MD access functions to do delays, etc.
1996-01-30 22:34:52 +00:00
gwr
a3c19fb08a Oops, I didn't mean to check in that file. 1996-01-24 16:03:31 +00:00
gwr
c68a32fc95 New "child" drivers for Sun keyboard and mouse attached to z8530sc. 1996-01-24 01:15:34 +00:00