diff options
author | peter <peter@FreeBSD.org> | 1999-04-13 19:38:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1999-04-13 19:38:12 +0000 |
commit | 7d0299e0a54d7a75324ab8c53af872c54a8cb175 (patch) | |
tree | 721a4a6c49e2837082092fa69e5e8d565b19106a /sys/pci | |
parent | dfdcc6233207986cb1e4fdc12bd940925c5f19c6 (diff) | |
download | FreeBSD-src-7d0299e0a54d7a75324ab8c53af872c54a8cb175.zip FreeBSD-src-7d0299e0a54d7a75324ab8c53af872c54a8cb175.tar.gz |
Shoot the LKM support in the old wd/wdc/atapi driver set in the head and
perform a cleanup/unifdef sweep over it to tidy things up. The atapi
code is permanently attached to the wd driver and is always probed.
I will add an extra option bit in the flags to disable an atapi probe on
either the master or slave if needed, if people want this.
Remember, this driver is destined to die some time. It's possible that
it will loose all atapi support down the track and only be used for
dumb non-ATA disks and all ata/atapi devices will be handled by the new
ata system.
ATAPI, ATAPI_STATIC and CMD640 are no longer options, all are implicit.
Previously discussed with: sos
Diffstat (limited to 'sys/pci')
-rw-r--r-- | sys/pci/ide_pci.c | 11 | ||||
-rw-r--r-- | sys/pci/wdc_p.c | 5 |
2 files changed, 4 insertions, 12 deletions
diff --git a/sys/pci/ide_pci.c b/sys/pci/ide_pci.c index 51de2c1..feb54ee 100644 --- a/sys/pci/ide_pci.c +++ b/sys/pci/ide_pci.c @@ -26,12 +26,11 @@ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ide_pci.c,v 1.28 1999/01/17 05:46:25 bde Exp $ + * $Id: ide_pci.c,v 1.29 1999/03/28 05:05:12 grog Exp $ */ #include "pci.h" #if NPCI > 0 -#include "opt_wd.h" #include "wd.h" #if NWDC > 0 @@ -1387,16 +1386,12 @@ ide_pci_probe(pcici_t tag, pcidi_t type) return ("Acer Aladdin IV/V (M5229) Bus-master IDE controller"); if (type == 0x55131039) return ("SiS 5591 Bus-master IDE Controller"); + if (type == 0x06401095) /* CMD 640B IDE */ + return NULL; /* Let wdc_p "find" it. */ if (data & 0x8000) return ("PCI IDE controller (busmaster capable)"); -#ifndef CMD640 - /* - * XXX the CMD640B hack should be better integrated, or - * something. - */ else return ("PCI IDE controller (not busmaster capable)"); -#endif }; return ((char*)0); } diff --git a/sys/pci/wdc_p.c b/sys/pci/wdc_p.c index f8ca641..018908f 100644 --- a/sys/pci/wdc_p.c +++ b/sys/pci/wdc_p.c @@ -16,7 +16,7 @@ * 4. Modifications may be freely made to this file if the above conditions * are met. * - * $Id: wdc_p.c,v 1.3 1997/08/02 14:33:14 bde Exp $ + * $Id: wdc_p.c,v 1.4 1998/12/14 06:32:57 dillon Exp $ */ /* @@ -26,8 +26,6 @@ #include "pci.h" #if NPCI > 0 -#include "opt_wd.h" -#ifdef CMD640 #include <sys/param.h> #include <sys/kernel.h> @@ -72,5 +70,4 @@ wdc_pci_attach(pcici_t config_id, int unit) wdc_pci(Q_CMD640B); } -#endif /* CMD640 */ #endif /* NPCI > 0 */ |