freebsd-nq/sys/dev
Poul-Henning Kamp 21144e3bf1 Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new
field in struct buf: b_iocmd.  The b_iocmd is enforced to have
exactly one bit set.

B_WRITE was bogusly defined as zero giving rise to obvious coding
mistakes.

Also eliminate the redundant struct buf flag B_CALL, it can just
as efficiently be done by comparing b_iodone to NULL.

Should you get a panic or drop into the debugger, complaining about
"b_iocmd", don't continue.  It is likely to write on your disk
where it should have been reading.

This change is a step in the direction towards a stackable BIO capability.

A lot of this patch were machine generated (Thanks to style(9) compliance!)

Vinum users:  Greg has not had time to test this yet, be careful.
2000-03-20 10:44:49 +00:00
..
advansys adv_pci.c: 2000-03-02 00:08:35 +00:00
aha Fix plug and play support: 2000-01-24 07:08:40 +00:00
ahb Remove #include "eisa.h" and #if NEISA > 0 2000-01-29 18:22:33 +00:00
aic Add support to aic for pccard attachments. Reports from testers have 2000-01-14 23:42:36 +00:00
aic7xxx o Correct the offsets into the syncrate table for paritcular 2000-03-18 22:28:20 +00:00
amd The error status for a scsi status error is "CAM_SCSI_STATUS_ERROR", not 0. 2000-01-14 03:39:30 +00:00
amr Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
an Fix an instance of rman_get_start() than should be rman_get_bushandle(). 2000-01-16 06:41:49 +00:00
ar Remove definition of the unimplemented "control" hook. 2000-01-21 01:39:40 +00:00
ata Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
atkbdc Missing pieces of the last commit ;-( 2000-03-19 04:37:18 +00:00
bktr The Leadtek Winfast TV2000 has one of the FM capable Tuners. Don't 2000-02-12 08:49:21 +00:00
buslogic Remove #include "eisa.h" and #if NEISA > 0 - this is guaranteed by config. 2000-01-29 14:27:26 +00:00
cardbus Sync to latest cardbusdevs file 1999-11-18 07:22:59 +00:00
ccd Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
cs Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
cy Clean up some more loose ends.. 2000-01-23 11:50:43 +00:00
dc Teach the 'dc' driver how to pick up settings left over by the 2000-03-11 05:20:56 +00:00
de A fairly simple newbusification of if_de 2000-03-20 09:18:46 +00:00
dec Ho, ho, ho... this clock chip is not y2k compliant. Motorola 2000-01-04 03:22:04 +00:00
dgb Remove #if NDGB > 0 and #if NDGM > 0 2000-01-29 18:42:45 +00:00
dpt Remove #include "eisa.h" and #if NEISA > 0 as it's only ever compiled 2000-01-29 14:31:57 +00:00
ed Noriyoshi Kawano-san reported in nomads another OUI for linksys. 4 is 2000-03-20 07:09:32 +00:00
eisa Pre 4.0 tidy up. 2000-01-14 07:14:17 +00:00
en Remove #if NEN > 0 in the name of FreeBSD - it's not required as config 2000-01-29 14:38:04 +00:00
ep Copy how everyone else is doing packet transmission. (NetBSD mostly) 2000-03-13 11:59:21 +00:00
ex Add 'bootverbose' debug messages to assist with tracking down problems 2000-03-13 12:27:21 +00:00
fb Remove #include "vga.h" and #if NVGA > 0 as it's implied by config. 2000-01-29 14:43:47 +00:00
fdc Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
fe Make release is now falling over in if_fe.c due to Warner's pccard changes: 1999-10-25 17:04:17 +00:00
fxp Make the fxp driver work on alpha, rather than panic the machine on boot 1999-09-30 19:03:12 +00:00
hea Remove un-needed #include's. 2000-01-17 20:49:59 +00:00
hfa Ensure that DMA mappings are freed in error situations. 2000-01-15 21:01:04 +00:00
ic $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
ida Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
ie Remove #if NIE > 0 test, it's guaranteed to be true by config. 2000-01-29 14:41:52 +00:00
iicbus Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
isp roll platform versions to 5.0 2000-03-15 18:49:44 +00:00
joy Add ADS7182 as a known Joystick. 2000-01-18 08:38:35 +00:00
kbd - Properly keep track of I/O port resources. 2000-03-19 03:25:13 +00:00
lnc Update the copyright. Remove the advertising clause. 2000-03-20 00:53:46 +00:00
mc146818
mca Set the RF_SHAREABLE flage when we allocate an IRQ. 2000-03-13 11:43:53 +00:00
mcd Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
md Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
mii Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
mlx Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
mse - `Newbus'ified the driver. 2000-03-18 15:13:30 +00:00
pccard Propagate MAC address in CIS tupple to dev/ed/ driver. 2000-01-21 03:08:46 +00:00
pcf Port of ppbus standalone framework to the newbus system. 2000-01-14 00:18:06 +00:00
pci Unused definitions. 2000-03-20 08:21:52 +00:00
pcic Correct PnP ids for pcic-like cards. 2000-03-10 05:26:32 +00:00
pdq Pre 4.0 tidy up. 2000-01-14 07:14:17 +00:00
ppbus I _HATE_ crashes. The lptread() call needs to check LP_BYPASS, because 2000-03-15 03:23:04 +00:00
ppc Remove #include "ppc.h" and #if NPPC > 0 - this is always true as it is 2000-01-29 14:02:30 +00:00
ray * add the start_join_net - done 2000-03-12 22:54:29 +00:00
rc Remove #if NFOO > 0 (it's not required in most cases) and also where it 2000-01-29 16:00:34 +00:00
rp Introduce ttyread() and ttywrite() which do the canonical thing. 1999-09-28 11:45:31 +00:00
scd Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
sf Modify the Adaptec "starfire" driver to reset the PHY on the MII bus 1999-12-05 20:02:45 +00:00
si Always leave SP_DCEN on (monitor DCD). Otherwise the firmware *really* 2000-01-25 16:45:54 +00:00
sio Fix crashes on card eject for pccard modems. We check for NULL when 2000-03-11 20:22:09 +00:00
sk Call sk_start() at the end of sk_intr() if there's packets in the 1999-09-25 04:50:27 +00:00
smbus Remove the 'ivars' arguement to device_add_child() and 1999-12-03 08:41:24 +00:00
sn Don't execute MAC address initialization for non-pccard sn devices. 2000-01-22 17:24:16 +00:00
snp Remove cdevsw_add() - the make_dev() calls are already there. 1999-11-18 06:39:47 +00:00
sound Spelling mistake 2000-03-15 22:11:00 +00:00
speaker Remove #if NFOO > 0 (it's not required in most cases) and also where it 2000-01-29 16:00:34 +00:00
sr Remove definition of the unimplemented "control" hook. 2000-01-21 01:39:40 +00:00
streams Rename remove_dev() to destroy_dev(). 1999-11-08 07:44:01 +00:00
sym Simplifications: 2000-02-13 12:14:07 +00:00
syscons White-space-only change. The file originally had screwed indentation. 2000-03-20 08:18:00 +00:00
ti Update Tigon firmware yet again, this time to version 12.3.20. 2000-03-18 01:30:36 +00:00
tx Change incorrect NULLs to 0s 1999-12-21 11:14:12 +00:00
usb The completely rewritten USB Mass Storage driver. It supports the following 2000-03-18 17:33:41 +00:00
vinum Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
vn Remove B_READ, B_WRITE and B_FREEBUF and replace them with a new 2000-03-20 10:44:49 +00:00
vr Change contigmalloc() lower memory bound from 1MB to 0 to improve 1999-09-25 17:29:02 +00:00
vx Remove #if NVX > 0 and #if NEISA > 0 (and #include "eisa.h") as it's not 2000-01-29 14:50:32 +00:00
wi Modify if_wi.c to call bpfdetach(ifp) before if_detach(ifp), so as to 2000-03-19 05:46:50 +00:00
wl Remove NBPF conditionality of bpf calls in most of our network drivers. 1999-09-25 12:06:01 +00:00
xe Remove #if 0'ed reference to isa_device->id_alive 2000-01-23 18:21:20 +00:00