Commit Graph

96 Commits

Author SHA1 Message Date
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
yamt a3da5d94f3 constify. 2002-06-08 16:34:06 +00:00
yamt 737ffe3619 make auto const variables static. 2002-06-08 16:03:55 +00:00
uch ba21cf86c0 obsolete intrcnt[]. 2002-05-15 15:19:54 +00:00
takemura f8cb4c37a0 Fixed debug print. 2002-05-03 07:31:23 +00:00
takemura 090be59325 Fixed dev/hpc/hpcfb.c to set RI_BSWAP flag in 8bpp for rasops8.c
and backout changes 'fix LCD byte-order setting':
        arch/hpcsh/dev/hd64461/hd64461video.c   Rev. 1.7 to 1.8
        arch/hpcmips/dev/plumvideo.c            Rev. 1.23 to 1.24
        arch/hpcmips/tx/tx3912video.c           Rev. 1.24 to 1.25
2002-04-13 09:29:53 +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
uch a752b69bfa make this compile with DIAGNOSTIC 2002-03-06 15:02:04 +00:00
uch f35aa9c904 don't attach bivideo. 2002-03-06 15:01:05 +00:00
uch a3757d3ba3 fix LCD byte-order setting. 2002-02-19 14:21:47 +00:00
uch ace35e63ce clean up header file. 2002-01-31 17:56:33 +00:00
uch 7d17099353 clean up debug print and configuration. 2002-01-29 18:53:01 +00:00
uch 0cc2d5d9dd make this compile without DIAGNOSTIC. 2002-01-28 05:40:58 +00:00
uch cead686281 fix memory size calcuration bug. 2002-01-05 04:47:30 +00:00
uch 91fd1d80b7 VR41XX/TX3922 common kernel. 2002-01-02 13:13:18 +00:00
uch f96ef6a094 fix memory probe sequence.
fix bootstrap stack violation. (code are moved to machdep.c)
2002-01-02 13:08:05 +00:00
uch bd9aab9cb5 make this compile again. 2001-12-02 10:37:53 +00:00
takemura 1d1d5c87af Rewrite bus stuff with method table in the bus tags. 2001-11-18 08:19:39 +00:00
uch 6c1c0aff9c improve interrupt response. 2001-09-23 14:32:52 +00:00
uch 5c4a9c8761 remove dev/dec/clockvar.h from hpcmips source tree. 2001-09-18 17:37:26 +00:00
uch 87a75cec20 clean up "mainbus" related code. 2001-09-17 17:03:44 +00:00
uch 6a9bbffc4d rearrange struct platform@sysconf.h suitable for hpcmips.
overhaul hpcmips/hpcmips/. no actual changes.
2001-09-16 15:45:42 +00:00
uch 80d8d09cd7 switch from splvec to ipl_sr_bits. 2001-09-15 19:51:38 +00:00
shin ad4858224a make this file compilable without TX39IRDEBUG. 2001-08-02 04:30:01 +00:00
uch ea54d618ea ANSI KNF. and change my copyright to TNF copyright. 2001-06-14 11:09:55 +00:00
uch 0774d04303 (TX39) switch from TX local I/O manager to hpcio 2001-06-13 19:09:07 +00:00
shin 6fbde674dd don't define TAILQ_EMPTY here. TAILQ_EMPTY is defined in <sys/queue.h>. 2001-05-09 11:57:05 +00:00
scw 2963ff5c58 Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.
2001-05-02 10:32:08 +00:00
uch f0df5e196f delete noisy debug message. 2001-04-24 17:09:54 +00:00
sato 9d92917cd6 check platid if 'options VR41XX' and 'options TX39XX' are both defined.
XXX: currently this case is missconfiguration and not compilable.
XXX: because all codes are not supported this case yet.
2001-04-18 10:42:39 +00:00
thorpej 316dcc474b splvec.splimp -> splvec.splvm 2001-04-12 19:21:20 +00:00
uch 659f65e0ee hpc common files are moved to dev/hpc. 2001-02-22 18:37:54 +00:00
sato 3131dc2c04 make compilable. 2001-01-04 05:01:59 +00:00
takemura 1021bf4bf1 Change hf_baseaddr usage. Now it potins frame buffer start address instead
of hf_baseadd + hf_offset. You should use hf_baseaddr only in kernel and
you should use hf_offset only with mmap system call from userland.
2000-12-03 13:43:40 +00:00
eeh 5d8e9b343a Adapt to the new line discipline scheme. 2000-11-02 00:35:04 +00:00
uch b84e48b8bd forgot to set HPCFB_ACCESS_REVERSE. 2000-10-22 12:49:27 +00:00
uch fc9212e594 new I/O modules framework for TX based system. 2000-10-22 10:42:31 +00:00
uch c3ceefe48c reverse color support. 2000-10-22 10:33:01 +00:00
uch 478ab76ca3 experimental power management support for TX3912/TX3922 based model. 2000-10-04 13:53:54 +00:00
uch f88fbde7ac don't reset RTC in tx39clock_set() 2000-10-01 18:12:04 +00:00
uch 154f1e86b1 fix tx39clock_alarm_refill bug. 2000-09-28 16:18:26 +00:00
sato d5b133164a - disable warning: add missing argument. 2000-08-18 07:33:14 +00:00
cgd b63ed164a1 convert PRID handling to use macros on an int, not bit-fields.
there's no reason to use bit-fields, and they just complexity to
the header.
2000-07-27 17:29:05 +00:00
deberg 23f2392b19 don't define TAILQ_FOREACH, it's in sys/queue.h now. 2000-07-20 03:44:46 +00:00
mrg 28d898391b remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h> 2000-06-29 08:10:45 +00:00
simonb 889c658b5b Change the kernel mmap interface so that the offset to map is an
"off_t" and the return value is a "paddr_t" to allow mappings
at offsets past 2^31 bytes.  Somewhat inspired by FreeBSD, which
only changed the offset to a "vm_offset_t".

Includes updates for the i386, pc532 and sh3 mmmmap from Jason Thorpe.
2000-06-26 04:55:19 +00:00
uch 27a7fbff47 debug frame buffer draw routines moved to video_subr.c.
plumvideo also use it.
2000-05-22 17:17:44 +00:00
uch 7b768bd6e8 recognize 32MByte D-RAM. 2000-05-21 11:24:45 +00:00
uch f02836787f fix CLUT index bug. 2000-05-12 18:09:55 +00:00
uch 742429ff1e #undef'ed debug routine. 2000-05-10 23:57:13 +00:00