opnsense-src/sys/dev
Poul-Henning Kamp bfbb9ce670 Divorce "dev_t" from the "major|minor" bitmap, which is now called
udev_t in the kernel but still called dev_t in userland.

Provide functions to manipulate both types:
        major()         umajor()
        minor()         uminor()
        makedev()       umakedev()
        dev2udev()      udev2dev()

For now they're functions, they will become in-line functions
after one of the next two steps in this process.

Return major/minor/makedev to macro-hood for userland.

Register a name in cdevsw[] for the "filedescriptor" driver.

In the kernel the udev_t appears in places where we have the
major/minor number combination, (ie: a potential device: we
may not have the driver nor the device), like in inodes, vattr,
cdevsw registration and so on, whereas the dev_t appears where
we carry around a reference to a actual device.

In the future the cdevsw and the aliased-from vnode will be hung
directly from the dev_t, along with up to two softc pointers for
the device driver and a few houskeeping bits.  This will essentially
replace the current "alias" check code (same buck, bigger bang).

A little stunt has been provided to try to catch places where the
wrong type is being used (dev_t vs udev_t), if you see something
not working, #undef DEVT_FASCIST in kern/kern_conf.c and see if
it makes a difference.  If it does, please try to track it down
(many hands make light work) or at least try to reproduce it
as simply as possible, and describe how to do that.

Without DEVT_FASCIST I belive this patch is a no-op.

Stylistic/posixoid comments about the userland view of the <sys/*.h>
files welcome now, from userland they now contain the end result.

Next planned step: make all dev_t's refer to the same devsw[] which
means convert BLK's to CHR's at the perimeter of the vnodes and
other places where they enter the game (bootdev, mknod, sysctl).
1999-05-11 19:55:07 +00:00
..
advansys Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
aha Add another kludge to the card identification probe. It appears that 1999-05-11 08:12:11 +00:00
ahb Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
aic7xxx Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
ar Fix 'signed char as array index' warnings and an unused variable. 1999-05-06 18:58:05 +00:00
ata Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
atkbdc Remove hackish foot protection.. If you ask for an atkbd on an isa bus 1999-05-09 20:45:53 +00:00
bktr Support LifeView FlyVideo 98 cards. Use EEPROM for card autodetection.Use 1999-05-10 10:10:13 +00:00
buslogic Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
ccd Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
cs Bring the 'new-bus' to the i386. This extensively changes the way the 1999-04-16 21:22:55 +00:00
cy Detect PCI device IDs for latest boards. Simplified the ID comparisons. 1999-05-10 10:23:40 +00:00
de #include "pci.h" for the build dir, not <pci.h> 1999-05-10 14:12:26 +00:00
dec Add semicolon to INTERFACE declarations 1998-11-08 18:35:53 +00:00
dgb Fix some of the places where too much inside knowledge about major/minor 1999-05-08 07:02:41 +00:00
dpt During probe, the page lockdown code in dpt_control.c does some 1999-05-11 11:03:18 +00:00
ed #ifdef BRIDGE around a goto label used by the bridge code to silcence a 1999-05-09 23:24:47 +00:00
eisa Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
en Missing revision markers. 1999-05-09 17:12:25 +00:00
ep Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
ex Set ifq_maxlen to default value. (This should be safe, it's not clear 1999-05-02 22:01:24 +00:00
fb PCX loader for pseudo-device splash. 1999-04-12 13:39:11 +00:00
fdc Fixed reset handling for motor off resets. I first fixed this together 1999-05-11 04:58:30 +00:00
fe Replace misused FE_D6_BBW with FE_D6_SBW. 1999-05-04 12:59:59 +00:00
fxp Fix two warnings. 1999-05-09 10:45:54 +00:00
hea Allow configuration of up to 256 network interfaces per physical interface - 1999-05-10 23:02:29 +00:00
hfa Allow configuration of up to 256 network interfaces per physical interface - 1999-05-10 23:02:29 +00:00
ic Implemented sending of BREAKs. This is quite complicated because the 1998-12-17 17:40:13 +00:00
ie Fix warnings in preparation for adding -Wall -Wcast-qual to the 1999-01-28 01:59:53 +00:00
iicbus Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference between 1999-05-09 13:00:50 +00:00
isp A large set of changes to handle dual bus adapters. 1999-05-11 05:10:06 +00:00
joy The joypart() macro had a precedence bug. Add seatbelts for UNIT() too. 1999-05-06 18:39:32 +00:00
kbd Don't confuse cursor keys with numpad keys when composing a char code. 1999-05-09 05:00:19 +00:00
lnc Set the bus master bit. 1999-05-10 22:39:37 +00:00
mc146818 Major changes to the generic device framework for FreeBSD/alpha: 1998-06-14 13:46:10 +00:00
mcd Fix some of the places where too much inside knowledge about major/minor 1999-05-08 07:02:41 +00:00
mse Fix up a few easy 'assignment used as truth value' and 'suggest parens 1999-05-06 18:44:42 +00:00
pcf Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
pci Use the probe priority mechanism to make sure the chip* probes do not 1999-05-11 07:55:32 +00:00
pcm/isa Quiet a warning, put a #if 0 around some (I believe) unused static structs. 1999-05-09 13:21:06 +00:00
pdq Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
ppbus Move the declaration of the interrupt type from the driver structure 1999-05-08 21:59:43 +00:00
ppc Return the port size from the probe. 1999-04-22 13:10:43 +00:00
rc Add brackets around && within || to quieten egcs. I've checked the code 1999-05-08 17:52:03 +00:00
rp Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
scd don't confuse units and devices. 1999-05-09 20:29:04 +00:00
si Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
sio Adjust console stuff now that makedev is no longer a macro. 1999-05-10 14:01:35 +00:00
smbus Unconfuse DEV_MODULE() and DEV_DRIVER_MODULE() about the difference between 1999-05-09 13:00:50 +00:00
snp Use NODEV instead of -1 1999-05-10 18:10:08 +00:00
sound/isa Quiet a warning, put a #if 0 around some (I believe) unused static structs. 1999-05-09 13:21:06 +00:00
speaker Fixed printf format errors. Only one left in LINT on i386's. 1998-08-24 02:28:16 +00:00
sr Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
streams ``fix'' the devfs_add_devswf() calls, the printf string wasn't factoring 1999-05-06 22:21:31 +00:00
syscons MFS: indent-assisted style cleanup. 1999-05-10 15:25:50 +00:00
ti Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
tx #if 0 some unused code (debug?) to quiet a warning. 1999-05-10 00:20:46 +00:00
usb Enable the support for a file interface on the HID driver for 1999-05-09 20:13:51 +00:00
vinum Fix a bogon which stopped Vinum from recognizing half its keywords. 1999-05-11 03:55:35 +00:00
vn Divorce "dev_t" from the "major|minor" bitmap, which is now called 1999-05-11 19:55:07 +00:00
vr Simplify the COMPAT_PCI_DRIVER/DATA_SET hack. We can add: 1999-05-09 17:07:30 +00:00
vx Missing revision markers. 1999-05-09 17:12:25 +00:00
wi Add support to wicontrol(8) and wi(4) for enabling and configuring 1999-05-07 03:28:54 +00:00
wl Suser() simplification: 1999-04-27 11:18:52 +00:00