diff options
author | marius <marius@FreeBSD.org> | 2012-03-21 08:57:15 +0000 |
---|---|---|
committer | marius <marius@FreeBSD.org> | 2012-03-21 08:57:15 +0000 |
commit | 7bb0bdde2aed9f58ebdd5abcb420f0ee56889988 (patch) | |
tree | 66c819f0be7ba838256f4040de6ff1668299d3a5 /sys/dev/ata/ata-pci.c | |
parent | 2212d818f3c973321979ab28ae07330eb759d324 (diff) | |
download | FreeBSD-src-7bb0bdde2aed9f58ebdd5abcb420f0ee56889988.zip FreeBSD-src-7bb0bdde2aed9f58ebdd5abcb420f0ee56889988.tar.gz |
Remove remnants of ATA_LOCKING uses in the ATA_CAM case and wrap it
along with functions, SYSCTLs and tunables that are not used with
ATA_CAM in #ifndef ATA_CAM, similar to the existing #ifdef'ed ATA_CAM
code for the other way around. This makes it easier to understand
which parts of ata(4) actually are used in the new world order and
to later on remove the !ATA_CAM bits. It also makes it obvious that
there is something fishy with the C-bus front-end as well as in the
ATP850 support, as these used ATA_LOCKING which is defunct in the
ATA_CAM case. When fixing the former, ATA_LOCKING probably needs to
be brought back in some form or other.
Reviewed by: mav
MFC after: 1 week
Diffstat (limited to 'sys/dev/ata/ata-pci.c')
-rw-r--r-- | sys/dev/ata/ata-pci.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index 73f051b..b22b5e2 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -699,6 +699,7 @@ ata_pcichannel_resume(device_t dev) } +#ifndef ATA_CAM static int ata_pcichannel_locking(device_t dev, int mode) { @@ -710,6 +711,7 @@ ata_pcichannel_locking(device_t dev, int mode) else return ch->unit; } +#endif static void ata_pcichannel_reset(device_t dev) @@ -766,7 +768,9 @@ static device_method_t ata_pcichannel_methods[] = { /* ATA methods */ DEVMETHOD(ata_setmode, ata_pcichannel_setmode), DEVMETHOD(ata_getrev, ata_pcichannel_getrev), +#ifndef ATA_CAM DEVMETHOD(ata_locking, ata_pcichannel_locking), +#endif DEVMETHOD(ata_reset, ata_pcichannel_reset), { 0, 0 } |