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
itojun
5e8477f10f
correct integer overrun
2002-09-04 03:58:37 +00:00
itojun
8e7a88a3ff
integer overflow. from silvio@qualys.com
2002-08-06 22:51:45 +00:00
pk
bb42415ffa
Check whether a console is attached before sending data upstream.
2002-05-13 09:42:12 +00:00
lukem
e8bbb685d9
Replace <dev/sun/sun_boot.h> with <sys/bootinfo.h>, which is intended
...
to be more generic than ``bbinfo definitions for Sun-based systems''.
Other platforms can store bbinfo-style information here, and possibly
other platform-specific boot information that needs to be accessible
by foriegn platforms in tools such as /usr/sbin/installboot.
2002-05-06 05:27:53 +00:00
bjh21
b53b7e5cd5
Include <stdint.h> or <sys/stdint.h> to get the C99 fixed-width types, since
...
<sys/types.h> doesn't necessarily provide them.
2002-04-24 15:29:45 +00:00
lukem
dcb3421026
Add <dev/sun/sun_boot.h>, which contains common boot block stuff for
...
Sun based systems.
2002-04-24 01:33:55 +00:00
pk
0c22ac1fa6
Add entries for Type5 keys T5_Insert, T5_Home, T5_End, T5_PgUp and T5_PgDn
...
as suggested by uwe@netbsd.org .
2002-04-12 14:27:29 +00:00
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