Commit Graph

714 Commits

Author SHA1 Message Date
thorpej
c5e91d447d Use CFATTACH_DECL(). 2002-10-02 04:55:47 +00:00
aymeric
f835a6ae04 . treat a stream of framing errors as a single break
. trigger ddb upon receiving a break if we are the console
2002-10-01 12:17:09 +00:00
thorpej
9a711d6985 Declare all cfattach structures const. 2002-09-27 20:29:02 +00:00
provos
0f09ed48a5 remove trailing \n in panic(). approved perry. 2002-09-27 15:35:29 +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
aymeric
84ccd9ee4b call grfcc_probe() and viewprobe(), even when we are not the console.
This fixes a panic when using a serial console and wsconscfg.
(The monitors list wouldn't be initialized in grfabs.c)
2002-09-02 11:09:48 +00:00
hannken
bf7cb35ffa Convert to new device buffer queue interface.
Approved by: Ignatios Souvatzis <is@netbsd.org>
2002-08-07 07:29:13 +00:00
itojun
05d221783a integer overflow. reported by silvio@qualys.com 2002-08-06 22:44:38 +00:00
itojun
8dd04cdcd7 correct range check, have overflow check, fix type mismatches,
for cmap args and some other calls.  from openbsd
2002-08-03 00:12:48 +00:00
junyoung
3d826105dc alloc_attr -> allocattr
Approved by Matthias Drochner.
2002-07-04 14:37:10 +00:00
thorpej
2335982213 Remove unnecessary assignments (for which the operation may be
undefined).
2002-05-30 20:28:27 +00:00
thorpej
8f0c98bbe2 Statements must follow labels. 2002-05-30 20:03:27 +00:00
thorpej
763a08c0dc Put the __unused__ attribute one some unused kbd maps. 2002-05-30 20:02:24 +00:00
thorpej
9ba5027914 Nuke a trigraph. 2002-05-30 19:52:52 +00:00
jdolecek
a14bf4ee89 update comments 2002-05-26 12:53:22 +00:00
jdolecek
2f8917ee1b regen (RCS Id fix) 2002-05-26 12:52:27 +00:00
jdolecek
64efb25dc0 remove space in generated NetBSD RCS Id 2002-05-26 12:51:55 +00:00
jdolecek
b69489fb3b pregenerate grf_ultms.c, so that gspa isn't needed during kernel build 2002-05-26 12:47:41 +00:00
matt
109792dc5c Eliminate commons. (including a few unused or mismatched ones). 2002-05-14 00:08:21 +00:00
aymeric
90d26c8828 o replace definitions by declarations in header files
o put definitions where due
o cleanup some types  (u_int -> vaddr_t's for example)
o minor other cleanup
2002-04-25 09:20:25 +00:00
heinz
9f8fa51b2d Removed the files after renaming to kf_iso8859_1_* (in agreement with
is@netbsd.org).
2002-04-19 16:38:13 +00:00
heinz
89a0c77ff9 Add East European (iso8859-2) console fonts 2002-04-17 00:52:13 +00:00
heinz
77a6abbbed Renamed kf_8x8.c and kf_8x11.c to kf_iso8859_1_8x8.c and kf_iso8859_1_8x11.c 2002-04-17 00:51:05 +00:00
christos
db95aa87ec fix compilo in debugging code. Reported by: Klaus Heinz 2002-03-27 16:39:51 +00:00
martin
0bc69b6498 Now that we have all the pieces of the puzzle available start to unriddle
and move them in their proper places.

Move the BRI registry from layer 2 (duh!) to layer 4, so active cards
(which don't have layer 3 or layer 2 in their driver). Remove all remaining
hard coded controller and driver types. Remove any arbitrary hard coded
limits, at least those that show up in the internal API.

This fixes PR 15950.
2002-03-24 20:35:43 +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
jandberg
225d8bccbe Fixed cc_load_mode restart copper after setting the new list
when called with null argument. This is needed for the screen
blank to actually take effect.
2002-03-13 20:33:35 +00:00
ad
b89e39b91a Reorganise the wsfont stuff slightly so that multiple display adapters
with different bit/byte order requirements can co-exist happily.
2002-03-13 15:05:13 +00:00
mhitch
d65798ca1d Add media support (such as it is), manual is all you get. 2002-03-06 22:07:39 +00:00
mhitch
d616d3990b Enable transmit error and EPH interrupt, and reset NIC on EPH interrupt.
Fixes a source of lost interrupts.
2002-03-03 18:21:37 +00:00
mhitch
9de3e943c6 Make reset actually do something and enable the use of the watchdog timer.
Losing interrupts no longer will hang the network.
2002-03-02 21:08:04 +00:00
is
3763cdd026 remove unused prototype (a duplicate with a typing error) 2002-02-24 15:20:05 +00:00
veego
f12a3476e0 Add a missing ) from an 6 year old cleanup commit (rev 1.10):
s/sizeof(struct mfcp_softc,/sizeof(struct mfcp_softc),/
Noticed by Nagilum on irc.
2002-02-17 19:26:37 +00:00
aymeric
1ea4df81a8 add __KERNEL_RCSID as suggested by Luke Mewburn 2002-01-28 09:56:43 +00:00
aymeric
1ebbe6900f make sure we have CLOCAL set and HUPCL unset when the serial port is used as
a console.
2002-01-27 19:25:35 +00:00
is
4205fc1471 Attach multifunction GVP boards. 2002-01-27 14:52:51 +00:00
is
5fea84442f remove double { 2002-01-27 14:51:10 +00:00
is
637649fac0 Register a shutdown handler that switches off interupts. 2002-01-27 14:39:28 +00:00
is
2f444c68be Add some video modes which are displayable on my LCD. 2002-01-27 14:32:21 +00:00
aymeric
9382c87338 - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
2002-01-26 13:40:52 +00:00
is
5e5bb729dc First draft of a Toccata driver. 2002-01-21 22:13:25 +00:00
jdolecek
ff8305bbac Switch to MI dev/md_root.c for archs which don't have any special
memory disk hooks (i.e. everything except atari).
2002-01-21 21:56:57 +00:00
jandberg
389100f5d8 Amiga wsdisplay updates.
conf/GENERIC:
conf/files.amiga:
 - Bring in wsfont definitions.

dev/grfabs_reg.h:
 - Add macros for decomposing palette entries.

dev/amidisplaycc.c:
 - Support for fonts, either wsfonts compiled into kernel
   or runtime-loadable by ioctl. Font width still limited to 8,
   height may vary.
 - Limited support for mapped displays. No way to adjust display
   mode. Palette setting works.
 - Prettier default palette (white on black).
 - Probes correctly as WSDISPLAY_TYPE_AMIGACC.
 - Support for screen blanking.
2002-01-13 23:24:22 +00:00
jandberg
75e5cd6d4f wskbd updates.
kbd.c: Now identifies itself as WSKBD_TYPE_AMIGA.
 wskbdmap_amiga.c: Updated de/dk/sv/no keymaps.
2002-01-13 22:47:43 +00:00
aymeric
a2cea87aee defopt SERCONSOLE 2001-11-05 21:29:43 +00:00
is
9bf40ca410 Make the Cyberstorm PPC/ Cyberstorm Mk. 3 driver drive the LED.
Actually, this is added to the siop2_script; should we ever support another
siopng board that does connect something else to GPREG bit 4, we'll have
to move this to C code and make it optional.
OTOH, by then we'll have switched to the MI driver by then.
2001-10-08 21:18:58 +00:00
augustss
1339e88a86 Add a new optional method, dev_ioctl, to the audio hardware driver interface.
It is called when an unrecognized ioctl() is performed on a device,
thus allowing ioctl()s that frob the hardware driver (like loading
microcode).
2001-10-03 00:04:47 +00:00
thorpej
e38a2e561a machine/fbio.h -> dev/sun/fbio.h 2001-09-19 18:10:32 +00:00
wiz
456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
chris
0e7661f023 Update pmap_update to now take the updated pmap as an argument.
This will allow improvements to the pmaps so that they can more easily defer expensive operations, eg tlb/cache flush, til the last possible moment.

Currently this is a no-op on most platforms, so they should see no difference.

Reviewed by Jason.
2001-09-10 21:19:08 +00:00