Commit Graph

15 Commits

Author SHA1 Message Date
tsutsui 764da5a461 - Prepare common structures for interrupt handler and share them between
Hyper-bus and AP-bus.
- Use LIST rather than static array for interrupt dispatcher.
2003-05-10 09:46:24 +00:00
tsutsui fb67a7f5f5 Call zshard() twice in zshard_hb() interrupt handler for workaround
otherwise news3400 sometimes losts zs interrupts.

This should fix "serial console hiccups on sysinst" problem
reported by Mauricio <raub at kudria.com> on port-newsmips.
2003-05-10 03:27:33 +00:00
tsutsui dac2b81da3 Remove bogus comments. 2003-05-09 17:39:12 +00:00
tsutsui f69620555a - Define and use struct hb_attach_args rather than struct confargs
for hb devices.
- Move declarations for hb functions and macros to dev/hbvar.h.
- Define and use hb_badaddr() macro for hb devices.
- Declare news3400_badaddr() in machine/cpu.h rather than machine/autoconf.h.
- Remove unused stuff from machine/autoconf.h.
2003-05-09 13:36:39 +00:00
tsutsui f08b4ccb7c - Move some common declarations into z8530var.h.
- Fix struct consdev properly.
- Remove register declarations.
- some more KNF.
2003-04-26 18:43:19 +00:00
tsutsui 397febeb94 Backout previous. <sys/lock.h> is pulled from <sys/tty.h>. 2003-02-11 17:25:14 +00:00
tsutsui ff77623786 MI z8530sc driver now requires <sys/lock.h>. 2003-02-10 11:38:30 +00:00
pk be1188e00d Provide locking required by the interrupt handlers running at IPL_SERIAL. 2003-01-28 12:35:31 +00:00
thorpej d52d005f78 Use CFATTACH_DECL(). 2002-10-02 04:27:51 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +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
thorpej a183d34f04 - Implement cnbell() -- ring the console bell. The cn_bell entrypoint
is optional.
- Add cn_bell to statically allocated consdevs as appropriate.
2000-03-06 21:36:05 +00:00
tsubai d9d54bf806 Use flags to determine PCLK rather than use unit number. 2000-01-23 15:27:43 +00:00
tsubai fa34872358 Use software interrupt. 1999-12-26 09:05:38 +00:00
tsubai 70289b0f99 First cut of news5000 support.
Mostly from SHIMIZU Ryo <dejiko@di.gi.charat.org>.
1999-12-22 05:55:24 +00:00