Commit Graph

1098 Commits

Author SHA1 Message Date
phk
447bf5968f Simplify cdevsw registration.
The cdevsw_add() function now finds the major number(s) in the
struct cdevsw passed to it.  cdevsw_add_generic() is no longer
needed, cdevsw_add() does the same thing.

cdevsw_add() will print an message if the d_maj field looks bogus.

Remove nblkdev and nchrdev variables.  Most places they were used
bogusly.  Instead check a dev_t for validity by seeing if devsw()
or bdevsw() returns NULL.

Move bdevsw() and devsw() functions to kern/kern_conf.c

Bump __FreeBSD_version to 400006

This commit removes:
        72 bogus makedev() calls
        26 bogus SYSINIT functions

if_xe.c bogusly accessed cdevsw[], author/maintainer please fix.

I4b and vinum not changed.  Patches emailed to authors.  LINT
probably broken until they catch up.
1999-05-31 11:29:30 +00:00
phk
8def0eb3c8 This commit should be a extensive NO-OP:
Reformat and initialize correctly all "struct cdevsw".

        Initialize the d_maj and d_bmaj fields.

        The d_reset field was not removed, although it is never used.

I used a program to do most of this, so all the files now use the
same consistent format.  Please keep it that way.

Vinum and i4b not modified, patches emailed to respective authors.
1999-05-30 16:53:49 +00:00
kato
9e3964cc57 Merge with sys/i386/isa/wd.c revision 1.192 and 1.193.
Submitted by:	Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>
1999-05-25 10:41:14 +00:00
kato
87f01fc1bb Sync with sys/i386/i386/userconfig.c revision 1.145. 1999-05-25 10:32:10 +00:00
kato
abcbf72c23 Sync with sys/i386/conf/options.i386 revision 1.114. 1999-05-25 10:30:58 +00:00
roger
9818da2629 Added device major 125 for the Advantech PCI-1750 Digital IO card.
A very nice i/o board with 16 open collector outputs (capable of driving 5-40v)
and 16 inputs
Also has 2 16 bit cascadable counters (10Mhz clock) capable of
generating interrupts.

It is a PCI card, and emulates the Intel 8254 timer.
It uses the PLX PCI-9050 PCI bus interface to map the
8254 style hardware and the i/o registers into the IO space.

Developed by Jennifer Clark <jen@vulture.dmem.strath.ac.uk>
Strathclyde University Transparent Telepresence Research Group
1999-05-18 16:18:42 +00:00
kato
911d9a17d4 - Fixed default irq in SMP kernel.
- Removed hardcode IRQ in #ifdef PC98.
1999-05-17 12:38:28 +00:00
kato
97ee551062 Sync with sys/i386/isa/npx.c revision 1.73. 1999-05-17 12:13:28 +00:00
kato
a66981a7b5 Sync with sys/i386/i386/userconfig.c revision 1.144. 1999-05-17 12:09:07 +00:00
kato
d28a72736a Removed ucmpdi2.c 1999-05-17 12:07:00 +00:00
kato
69f7e94a87 Sync with sys/i386/i386/userconfig.c revision 1.143. 1999-05-14 10:05:55 +00:00
kato
eb6f0ca168 Sync with sys/i386/conf/files.i386 revision 1.241. 1999-05-14 10:03:48 +00:00
luoqi
82cd8924f6 Unbreak VESA on SMP. 1999-05-12 21:39:07 +00:00
kato
ae69c9483d Sync with sys/i386/isa/diskslice_machdep.c revision 1.34. 1999-05-12 08:33:22 +00:00
luoqi
28044648ec Yet another place I missed when increasing trapframe size, which causes problem
to SIGFPE handling.

Reviewed by:	Bruce Evans	<bde@zeta.org.au>
1999-05-11 16:29:21 +00:00
sos
1e60a48aa9 Make the driver work on HP8100 and the newer Philips that does not
support the rezero command.
1999-05-11 10:39:27 +00:00
kato
1ee99f10af Sync with sys/isa/sio.c revision 1.241. 1999-05-11 08:38:28 +00:00
kato
073c68e720 Sync with sys/i386/isa/fd.c revision 1.143. 1999-05-11 08:37:16 +00:00
kato
001d422970 Sync with sys/i386/i386/usercnofig.c revision 1.142. 1999-05-11 08:36:12 +00:00
kato
195776dcae Fixed for COM_MULTIPORT option. Members flags and unit should be
obtained via appropriate functions.
1999-05-10 09:37:37 +00:00
kato
b1545ac9a9 Sync with sys/isa/sio.c revision 1.240. 1999-05-10 09:14:40 +00:00
kato
4ce2ef6f4e Sync with sys/i386/isa/isa_dma.c revision 1.3. 1999-05-10 09:09:08 +00:00
kato
c2dfce433f Sync with sys/i386/isa/if_ed.c revision 1.152. 1999-05-10 09:06:12 +00:00
kato
5313e49f79 Sync with sys/i386/isa/clock.c revision 1.133. 1999-05-10 09:05:01 +00:00
kato
5cb752a1c4 Sync with sys/i386/conf/options.i386 revision 1.113. 1999-05-10 09:03:10 +00:00
kato
2dd3c6a573 Sync with sys/i386/conf/majors.i386 revision 1.74. 1999-05-10 09:02:23 +00:00
kato
9749459f14 Sync with sys/i386/conf/files.i386 revision 1.239. 1999-05-10 09:01:19 +00:00
kato
4ea2382a85 Sync with sys/i386/conf/GENERIC and Makefile.i386 revisions 1.169 and
1.152, respectively.
1999-05-10 09:00:29 +00:00
phk
c667de5e40 Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference between
a major number for a dev_t.
1999-05-09 13:00:50 +00:00
kato
5590597b0b Removed DRIVER_TYPE_TTY field. 1999-05-09 05:02:26 +00:00
kato
a2dfee47e0 Sync with sys/isa/sio.c revision 1.234. 1999-05-09 05:00:54 +00:00
kato
99d0f26df7 Removed DRIVER_TYPE_TTY field. 1999-05-09 04:56:42 +00:00
kato
1055c7adf2 Sync with sys/isa/atkbd_isa.c revision 1.4. 1999-05-09 04:53:58 +00:00
kato
077760caac Sync with sys/i386/isa/wd.c revision 1.197. 1999-05-09 04:42:10 +00:00
kato
a39c05f614 Sync with sys/i386/isa/pcausio.c revision 1.48. 1999-05-09 04:39:36 +00:00
kato
bb38daa56b Sync with sys/i386/isa/npx.c revision 1.61. 1999-05-09 04:38:27 +00:00
kato
c459512080 Sync with sys/i386/isa/mse.c revision 1.42. 1999-05-09 04:37:17 +00:00
kato
6a177e0469 Sync with sys/i386/isa/fd.c revision 1.142. 1999-05-09 04:34:28 +00:00
kato
e6f4750a60 Sync with sys/i386/i386/userconfig.c revision 1.141. 1999-05-09 04:30:08 +00:00
kato
ba719a7560 Sync with sys/i386/conf/majors.i386 revision 1.72. 1999-05-09 04:28:23 +00:00
kato
4a5d7e338e Sync with sys/i386/conf/files.i386 revision 1.238. 1999-05-09 04:27:30 +00:00
kato
d7b3b8d0c0 Sync with sys/i386/conf/Makefile.i386 revision 1.149. 1999-05-09 04:26:06 +00:00
phk
032245568a Continue where Julian left off in July 1998:
Virtualize bdevsw[] from cdevsw.  bdevsw() is now an (inline)
        function.

        Join CDEV_MODULE and BDEV_MODULE to DEV_MODULE (please pay attention
        to the order of the cmaj/bmaj arguments!)

        Join CDEV_DRIVER_MODULE and BDEV_DRIVER_MODULE to DEV_DRIVER_MODULE
        (ditto!)

(Next step will be to convert all bdev dev_t's to cdev dev_t's
before they get to do any damage^H^H^H^H^H^Hwork in the kernel.)
1999-05-07 10:11:40 +00:00
phk
2ca2ed8f38 Introduce two functions: physread() and physwrite() and use these directly
in *devsw[] rather than the 46 local copies of the same functions.

(grog will do the same for vinum when he has time)
1999-05-07 07:03:47 +00:00
phk
3dce1c9662 remove b_proc from struct buf, it's (now) unused.
Reviewed by:	dillon, bde
1999-05-06 20:00:34 +00:00
peter
9157f69fde Fix a precedence bug in the atapi tape driver. I think it could either
write a filemark where it wasn't needed, or neglect to write one at all,
depending on how the boolean converted to an int value for the &.
1999-05-06 18:50:10 +00:00
peter
36880de539 Fix up a few easy 'assignment used as truth value' and 'suggest parens
around && within ||' type warnings.  I'm pretty sure I have not masked
any problems here, I've committed real problem fixes seperately.
1999-05-06 18:44:42 +00:00
kato
029047fb52 Sync with sys/i386/i386/userconfig.c revision 1.138. 1999-05-06 09:15:20 +00:00
kato
c582a50c5b Sync with sys/i386/conf/files.i386 revision 1.237. 1999-05-06 09:13:56 +00:00
luoqi
7a87284792 Initialize dblfault_tss.tss_fs to the per-cpu private data segment selector. 1999-05-06 00:54:54 +00:00