diff options
author | mav <mav@FreeBSD.org> | 2013-04-04 07:12:24 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2013-04-04 07:12:24 +0000 |
commit | 7c2b81b0e97e507aa2b3b3fac77056edcdf18669 (patch) | |
tree | 942cf38be24f7762b9c2eb69d37326ad19bf5fec /sys/dev/ata/ata-pci.c | |
parent | 8f86323b516396dac627133e46a94b9db684dc7f (diff) | |
download | FreeBSD-src-7c2b81b0e97e507aa2b3b3fac77056edcdf18669.zip FreeBSD-src-7c2b81b0e97e507aa2b3b3fac77056edcdf18669.tar.gz |
Remove all legacy ATA code parts, not used since options ATA_CAM enabled in
most kernels before FreeBSD 9.0. Remove such modules and respective kernel
options: atadisk, ataraid, atapicd, atapifd, atapist, atapicam. Remove the
atacontrol utility and some man pages. Remove useless now options ATA_CAM.
No objections: current@, stable@
MFC after: never
Diffstat (limited to 'sys/dev/ata/ata-pci.c')
-rw-r--r-- | sys/dev/ata/ata-pci.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/sys/dev/ata/ata-pci.c b/sys/dev/ata/ata-pci.c index f47ea82..876e1ff 100644 --- a/sys/dev/ata/ata-pci.c +++ b/sys/dev/ata/ata-pci.c @@ -698,21 +698,6 @@ ata_pcichannel_resume(device_t dev) return ata_resume(dev); } - -#ifndef ATA_CAM -static int -ata_pcichannel_locking(device_t dev, int mode) -{ - struct ata_pci_controller *ctlr = device_get_softc(device_get_parent(dev)); - struct ata_channel *ch = device_get_softc(dev); - - if (ctlr->locking) - return ctlr->locking(dev, mode); - else - return ch->unit; -} -#endif - static void ata_pcichannel_reset(device_t dev) { @@ -768,9 +753,6 @@ 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), DEVMETHOD_END |