freebsd-skq/sys/dev
Robert Watson 6d4d944e33 Get Vinum up and running with GEOM:
(1) Use namei() and devfs to discover devices rather than a hard-coded
    MAKEDEV implementation.  Once rootfs is in place, this will allow
    Vinum to be used for the root file system partition.

(2) Pass FREAD to device opens so that GEOM will return sector size
    rather than an error on attempts to read label data.

(3) Avoid clobbering return values from close_drive() and masking this
    failure, resulting in a later divide by zero due to not having
    updated the Vinum-cached sector size.

(4) Ignore failures from DIOCWLABEL as that appears not to be required
    in the GEOM environment.

We've done testing in simple Vinum environments, but those with more
complex environments might want to give this a spin in DP2 and make
sure everything is up to speed.

Fixes in collaboration with:	iedowse
Reviewed by:			grog
2002-10-05 03:44:00 +00:00
..
aac Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
acpica Make sure that ACPI PCI driver probe routine call pci_cfgregopen() 2002-10-05 02:16:49 +00:00
advansys Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
agp Correct an indentation. 2002-10-03 06:10:54 +00:00
aha Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanly 2002-05-24 05:21:36 +00:00
ahb Fix new gcc-3.1 warnings. I think this gets GENERIC compiling cleanly 2002-05-24 05:21:36 +00:00
aic Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
aic7xxx Remove a left over '&' from the conversion to using our 2002-09-30 19:55:42 +00:00
amd
amr Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
an Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
ar Use if_printf(ifp, "blah") instead of printf("ar%d: blah", ifp->if_unit). 2002-10-01 00:42:51 +00:00
asr Replace (ab)uses of "NULL" where "0" is really meant. 2002-08-22 21:24:01 +00:00
ata Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
atkbdc Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
awi Remove empty #if*/#endif clauses. 2002-09-21 08:44:51 +00:00
bge Fix a typo in BGE_BIGENDIAN_INIT. 2002-10-01 22:33:40 +00:00
bktr Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
buslogic Remove #if 0'ed abuse of NPCI 2002-07-21 05:16:56 +00:00
cardbus Don't leak the bar list for each thing we allocate. 2002-09-29 18:07:29 +00:00
ccd - Use vrefcnt() instead of v_usecount. 2002-09-25 02:42:43 +00:00
ciss Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
cm Use if_printf(ifp, "blah") instead of 2002-10-01 00:44:31 +00:00
cnw Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
cs Use if_printf(ifp, "blah") instead of 2002-10-01 00:46:41 +00:00
ct This file does not <sys/disklabel.h> 2002-09-20 18:15:40 +00:00
cy Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
dc Fix the support for the AN985/983 chips, which do not set the 2002-09-20 15:18:13 +00:00
de Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
dec
dgb Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
digi Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
dpt Fix a couple of bogus enums. 2002-01-08 06:47:55 +00:00
drm In an SMP environment post-Giant it is no longer safe to blindly 2002-10-03 02:13:00 +00:00
ed Use if_printf() instead of printf() to print "ed#: blah". 2002-10-01 00:49:28 +00:00
eisa Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead of 2002-09-26 18:40:06 +00:00
em Corrected license in the source files. It should say "MUST" instead of "MAY". 2002-09-24 16:27:59 +00:00
en Rename "struct device" to "struct midway_device" to avoid clashing 2002-09-28 21:59:59 +00:00
ep Fix build breakage on my pccard related commit. 2002-05-31 01:08:49 +00:00
ex Remove __P. 2002-03-20 02:08:01 +00:00
exca MFp4: 2002-07-26 08:01:08 +00:00
fb Fix rare and probably inconsequential memory leak. 2002-10-02 20:34:23 +00:00
fdc Fix a probably rare and inconsequential memory leak. 2002-10-02 20:29:54 +00:00
fe Use if_printf(ifp, "blah") instead of printf("fe%d: blah", ifp->if_unit). 2002-10-01 00:52:58 +00:00
firewire don't include bus_dma.h which doesn't need. 2002-09-21 15:05:22 +00:00
fxp Add some PCI id's for fxp. I've only tested 0x103B, but the Intel 2002-09-24 23:13:38 +00:00
gem Fix warning. 2002-07-24 01:09:38 +00:00
gfb Turn on TGA support. 2002-04-13 22:34:16 +00:00
gx Replace (ab)uses of "NULL" where "0" is really meant. 2002-08-22 21:24:01 +00:00
hea Create/destroy memory zones on module load/unload, not on device 2002-10-02 04:42:24 +00:00
hfa Use more standard variable names for modevent functions. 2002-10-02 04:47:52 +00:00
hifn Crypto device driver for hifn-based cards. Tested with 7951-, and 7811-based 2002-10-04 20:32:37 +00:00
hme Call bpf_mtap() on output, to catch outgoing packets for e.g. tcpdump . 2002-07-30 21:47:14 +00:00
ic Move the com_scr register address definition over with the other seven. 2002-09-22 08:51:31 +00:00
ichsmb Add PCI ID for ICH4 SMBus controller. 2002-08-12 16:22:12 +00:00
ida use __packed. 2002-09-23 18:54:32 +00:00
idt Use more standard variable names for modevent functions. 2002-10-02 04:47:52 +00:00
ie Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
iicbus move <machine/iic.h> and <machine/smb.h> to <dev/iicbus/iic.h> and 2002-09-19 03:25:46 +00:00
iir Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
isp Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
ispfw Upgrade to latest QLogic f/w from their intranet site for 2100, 2200 and 2002-09-01 02:28:36 +00:00
joy Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
kbd Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
lge Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
lmc Remove #include <pci.h> - there is no abuse of NPCI here 2002-07-21 05:16:14 +00:00
lnc Fix mis-indentation. 2002-10-02 09:09:25 +00:00
mc146818
mca Argh, isa(4), eisa(4) and mca(4) now attach to legacy(4) instead of 2002-09-26 18:40:06 +00:00
mcd newbus & bus_space the mcd(4) driver. 2002-10-04 07:14:19 +00:00
md Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
mii Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
mk48txx Add a driver back end for the Mostek MK48T02, MK48T08 and MK48T59 2002-04-04 23:44:42 +00:00
mlx use __packed. 2002-09-23 18:54:32 +00:00
mly use __packed. 2002-09-23 18:54:32 +00:00
mpt Code cleanup: use mpt_prt instead of device_printf. 2002-09-24 21:33:43 +00:00
mse Fixed some style bugs in the removal of __P(()). The main ones were 2002-03-23 16:01:49 +00:00
musycc
my Add missing unlock 2002-05-30 23:41:51 +00:00
ncv Remove #include of <sys/disklabel.h> (and a few other unused #includes I 2002-09-20 16:49:36 +00:00
nge Add support for SX cards using TBI such as Netgear GA621. 2002-08-08 18:33:28 +00:00
nmdm Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
nsp Remove unused #includes. Looks amacingly like the exact same set 2002-09-20 16:51:09 +00:00
null Everywhere else, an argument passed to a device containing flags 2002-09-21 17:28:17 +00:00
ofw Add missing semicolon 2002-09-20 23:26:07 +00:00
pccard o Dike out the bogus reprobe stuff. It was getting in the way of newbus' own 2002-09-10 06:32:18 +00:00
pccbb Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
pcf Fix bktr and pcf compilation with LINT 2002-03-25 21:22:35 +00:00
pci Removed the only PCI_DEBUG ifdef in the kernel. PCI_DEBUG was not a 2002-10-01 13:28:24 +00:00
pcic Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
pdq Replace various spelling with FALLTHROUGH which is lint()able 2002-08-25 13:23:09 +00:00
ppbus Remove empty #if*/#endif clauses. 2002-09-21 08:44:51 +00:00
ppc Restore the original copyright 2002-03-23 15:36:13 +00:00
pst Fix so it compiles with the new disklabel stuff. 2002-09-27 21:56:35 +00:00
puc Add "missing scratch-pad register" to the first of the two ports 2002-09-27 22:02:46 +00:00
random Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
ray s/__attribute__((__packed__))/__packed/g 2002-09-23 06:25:08 +00:00
rc Off-by-128 error in the cuam* device node numbers. 2002-05-20 05:12:56 +00:00
rp Change the suser() API to take advantage of td_ucred as well as do a 2002-04-01 21:31:13 +00:00
sab Make this driver work a whole lot better. 2002-09-08 04:45:16 +00:00
sbni Use if_printf() instead of printf() to print "sbni#: blah". 2002-10-01 00:55:22 +00:00
scd Remove duplicate make_dev() calls. 2002-10-04 08:33:10 +00:00
sf add missing \n to printf 2002-09-09 17:39:48 +00:00
si Do not try and probe random PNP devices, This Is Bad. 2002-07-27 08:46:28 +00:00
sio Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
sk style: 2002-08-23 23:49:02 +00:00
smbus Cleanup of amdpm(4). 2002-09-21 21:43:49 +00:00
sn Use if_printf(ifp, "blah") instead of printf("sn%d: blah", ifp->if_unit). 2002-10-01 00:56:39 +00:00
snc Remove __P. 2002-03-20 02:08:01 +00:00
snp Treat input on the snp device as an `unsigned char'. According to the 2002-04-10 03:51:49 +00:00
sound Fixed breakage from removing the used include of <sys/buf.h> in the 2002-09-15 08:21:14 +00:00
speaker Remove __P. 2002-03-20 07:51:46 +00:00
sr Use if_printf(ifp, "blah") instead of printf("sr%d: blah", ifp->if_unit). 2002-10-01 00:58:16 +00:00
stg Remove even more Copy&Pasted sets of #includes. 2002-09-20 16:53:19 +00:00
streams Remove __P. 2002-03-20 02:08:01 +00:00
sym Move the new byte order function prototypes from <sys/param.h> to 2002-04-26 22:48:23 +00:00
syscons Be consistent about "static" functions: if the function is marked 2002-09-28 17:15:38 +00:00
tdfx Disabuse this driver of the notion that it needs to include 2002-09-28 20:56:32 +00:00
tga
ti Static'ify a variable. 2002-10-03 06:44:01 +00:00
twe use __packed. 2002-09-23 18:54:32 +00:00
tx Stop trying to align malloc()ed memory. Rely on malloc() instead, just like 2002-08-19 20:36:08 +00:00
txp Change callers of mtx_init() to pass in an appropriate lock type name. In 2002-04-04 21:03:38 +00:00
ubsec Crypto device driver for Broadcom-based cards. Known to work with 582x-based 2002-10-04 20:33:20 +00:00
usb Some kernel threads try to do significant work, and the default KSTACK_PAGES 2002-10-02 07:44:29 +00:00
vinum Get Vinum up and running with GEOM: 2002-10-05 03:44:00 +00:00
vr style: put return types on a line by themselves. 2002-08-24 00:02:03 +00:00
vx Fix mis-indentation. 2002-10-02 09:09:25 +00:00
wds
wi Fix comment 2002-09-29 18:42:14 +00:00
wl Fix typo in the BSD copyright: s/withough/without/ 2002-06-02 20:05:59 +00:00
xe Use if_printf(ifp, "foo") instead of printf("xe%d: foo", ifp->it_unit). 2002-10-01 01:03:02 +00:00