Commit Graph

195 Commits

Author SHA1 Message Date
phk
32b7c9a433 Device megapatch 2/6:
This commit adds a couple of functions for pseudodrivers to use for
implementing cloning in a manner we will be able to lock down (shortly).

Basically what happens is that pseudo drivers get a way to ask for
"give me the dev_t with this unit number" or alternatively "give
me a dev_t with the lowest guaranteed free unit number" (there is
unfortunately a lot of non-POLA in the exact numeric value of this
number, just live with it for now)

Managing the unit number space this way removes the need to use
rman(9) to do so in the drivers this greatly simplifies the code in
the drivers because even using rman(9) they still needed to manage
their dev_t's anyway.

I have taken the if_tun, if_tap, snp and nmdm drivers through the
mill, partly because they (ab)used makedev(), but mostly because
together they represent three different problems for device-cloning:

if_tun and snp is the plain case: just give me a device.

if_tap has two kinds of devices, with a flag for device type.

nmdm has paired devices (ala pty) can you can clone either of them.
2004-02-21 20:29:52 +00:00
phk
df397dedea Device megapatch 1/6:
Free approx 86 major numbers with a mostly automatically generated patch.

A number of strategic drivers have been left behind by caution, and a few
because they still (ab)use their major number.
2004-02-21 19:42:58 +00:00
scottl
3dde037c1b Remove the static major assignment for iir(4).
Submitted by:	phk (partially)
2004-02-14 23:18:58 +00:00
scottl
03b5ef9526 Remove the static major assignment for ips(4).
Submitted by:	phk, inspired by others.
2004-02-14 23:11:03 +00:00
scottl
c8b12491b1 Remove the reservation for the I2O device. The code never materialized, and
if it does in the future, it won't need a static major.
2004-02-14 23:07:24 +00:00
tjr
76d728479b Un-reserve major 144 (nsmb) now that we are using automatic allocation. 2004-02-11 12:58:06 +00:00
scottl
ebd7964f02 Allow amr(4) to get a dynamic major number instead of a static one.
Submitted by:	Andre Guibert de Bruet
2004-02-08 16:07:22 +00:00
ps
03d2a71777 Reserve 187 (twa) for the new 3ware ATA RAID controller. 2004-02-02 20:00:56 +00:00
rwatson
6d7e46b260 Release audit device major number reservation. The new audit
implementation writes directly to a file, similar to the Darwin,
Solaris, and whoever else implementations, rather than buffering
through a pseudo-device.
2004-01-11 06:24:34 +00:00
phk
1d294b5b46 Fix a locking problem with MD_ROOT_SIZE.
Retire md(4)'s static major number.
2003-12-13 18:12:58 +00:00
imp
a7899e4b16 Remote meteor driver. It hasn't compiled in over 3 years. If someone
makes it compile again, and can test it, we can restore the driver to
the tree.
2003-12-07 04:41:11 +00:00
imp
87db7e9542 The dgb driver is redundant with the digi driver in the tree. It uses
lots of old interfaces, and digi now supports all cards that dgb
supported.  The author of the driver says that this is no longer
necessary.

Approved by: babkin@
2003-12-07 04:18:52 +00:00
imp
b2c171d63c Major 186 for sx driver (for Specialix I/O8+) by frank@exit.com 2003-12-02 04:40:33 +00:00
imp
a201b89fc0 New major number:
185 ce Cronyx Tau-32 E1 adapter <rik@cronyx.ru>

(likely unneeded for current, but required for older versions of FreeBSD).

Approved by: re@ (scottl)
2003-11-21 21:03:42 +00:00
phk
ea16f6fe64 Free major#100 2003-11-03 10:19:33 +00:00
phk
892a2cd235 Free the SCSI cd major number 2003-10-06 09:13:08 +00:00
scottl
8d536de07e Remove the static reservations for the raid and raidctl devices. 2003-09-29 14:15:57 +00:00
scottl
153fcd0ee9 aac no longer uses a static major number. 2003-09-29 14:11:23 +00:00
simokawa
ba8a2688d0 Reserve 184 for dumb console driver(dcons) which can be found in
ports/devel/dcons.
2003-08-27 07:35:12 +00:00
phk
aed7f951ea As warned: Initiate deorbit burn for the pcaudio driver. 2003-08-15 14:56:05 +00:00
tmm
58baf8f0d2 Deallocate major 177; the openfirm device does not use a fixed major
any more.
2003-06-11 18:34:50 +00:00
scottl
25a029e229 garbage collect the reserved major for the ips disk device. GEOM makes
it unneeded.
2003-05-11 06:18:33 +00:00
phk
2fe1f6204d Note that MAJOR_AUTO is now the default if d_maj is not initialized. This
is more robust and prevents the hijacking of /dev/console for the typical
mistake.

Remove unneeded MAJOR_AUTO uses, it is only needed explicitly now if the
driver source has cross-branch compatibility to old releases.
2003-03-09 11:03:45 +00:00
mux
cf140b70b7 GC the major number for the network entries. 2003-02-28 19:56:10 +00:00
imp
fc9094c44a 86 ufm: it now uses MAJOR_AUTO. 2003-02-28 13:25:06 +00:00
phk
7324f4d690 NO_GEOM cleanup:
Convert to "struct disk *" centric API.

OK'ed by:	sos
2003-02-28 09:53:36 +00:00
phk
c185d224a8 Retire #3: wd. 2003-02-28 09:48:59 +00:00
phk
1cf8cd9f37 Attempt to mark the majors which are used by drivers checked into the
CVS tree.
2003-02-28 07:49:57 +00:00
imp
5058936161 pccard isn't picky about WHAT major it gets. 2003-02-28 05:56:06 +00:00
jake
a95892f08b Use MAJOR_AUTO. GC statically assigned majors. 2003-02-28 04:21:13 +00:00
phk
5c7b43870b Update the comment to reflect new reality.
GC more entries.
2003-02-27 15:34:12 +00:00
phk
b84b299fef GC some more major numbers. 2003-02-27 15:18:56 +00:00
phk
f3d3aadd6f Use MAJOR_AUTO. 2003-02-27 15:05:28 +00:00
phk
7ea4339cac Mark comments with '#' to make this machine-readable 2003-02-27 07:57:00 +00:00
scottl
9f8fe272f6 Retire the aacd major (151) now that it's no longer needed. 2003-02-26 02:52:14 +00:00
phk
ed93a50e90 NO_GEOM cleanup:
Retire major #13 (da), #116 (ad), #157 (ar)
2003-02-25 22:09:10 +00:00
phk
6a119a04ae NO_GEOM cleanup:
Move to new "struct disk *" centric API.
Retire major #147 (twed)
2003-02-25 07:41:51 +00:00
phk
7cf176c689 NO_GEOM cleanup:
Move to "struct disk*" centric API.
Retire major #131 (mlxd)
2003-02-25 07:35:41 +00:00
phk
339189c122 Retire major #133 (amrd). 2003-02-25 07:24:51 +00:00
phk
bc0387ab5b NO_GEOM cleanup:
Move to "struct disk *" centered API.

Fix some minor nits.
2003-02-23 19:15:34 +00:00
phk
479f597455 NO_GEOM cleanup:
Move ida driver to "struct disk *" centric api.

Retire major number 109.
2003-02-23 18:45:50 +00:00
phk
89e4bfc84d Mark major 102 unused now that the fla driver no longer needs a major number. 2003-02-23 18:12:41 +00:00
mdodd
67dc3cf7fb - Add a major for SMAPI.
- Claim a few majors I have responsibility for.
2003-01-17 08:01:35 +00:00
jake
6cb8c58cce Reserve major 182 for the zs driver. 2002-12-31 06:54:52 +00:00
rwatson
28d6af6981 Reclaim major number 182 which I allocated for mdsio. It was decided
that this should become a line discipline for sio rather than a
separate driver.
2002-11-28 04:29:52 +00:00
peter
1b75e8e7ed Major #46 was also MIA. 2002-11-13 01:42:59 +00:00
peter
04df5327c4 Note that 101 is unused, rather than leave it out of the file.
Add some historical information.  This can be removed as majors
are recycled.
2002-11-13 00:25:01 +00:00
rwatson
1fbc6da3c8 Reserve a major number for the mdsio driver: RS-485 driver for 8250-family
UARTs.

Requested by:	doconnor@gsoft.com.au
2002-11-06 02:19:28 +00:00
peter
e45ebe30a8 Grab 181 for HP/Compaq ProLiant advanced server management driver 2002-11-05 16:12:31 +00:00
mdodd
3397b88e7e Reserve a major number for NVIDIA. 2002-10-22 16:42:16 +00:00