diff options
author | sos <sos@FreeBSD.org> | 2004-01-20 16:51:02 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2004-01-20 16:51:02 +0000 |
commit | dcc245d4e9f22fba713be7f55c68ec2398baa64a (patch) | |
tree | dda22f8a55b393bdce980e9502c4c1b067681898 /sys/dev/ata | |
parent | f6f5d6c39de34f012f19ec48ade95bfe7e0cb7ba (diff) | |
download | FreeBSD-src-dcc245d4e9f22fba713be7f55c68ec2398baa64a.zip FreeBSD-src-dcc245d4e9f22fba713be7f55c68ec2398baa64a.tar.gz |
Update the support for the VIA 8237 southbridge.
Diffstat (limited to 'sys/dev/ata')
-rw-r--r-- | sys/dev/ata/ata-chipset.c | 4 | ||||
-rw-r--r-- | sys/dev/ata/ata-pci.h | 3 |
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index c86cb9a..0ed1b19 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -2134,12 +2134,12 @@ ata_via_ident(device_t dev) { ATA_VIA8237, 0x00, VIA133, 0x00, ATA_UDMA6, "VIA 8237" }, { 0, 0, 0, 0, 0, 0 }}; static struct ata_chip_id new_ids[] = - {{ ATA_VIA8237, 0x00, 0x00, 0x00, ATA_SA150, "VIA 8237" }, + {{ ATA_VIA8237_1, 0x00, 0x00, 0x00, ATA_SA150, "VIA 8237" }, { 0, 0, 0, 0, 0, 0 }}; char buffer[64]; if (pci_get_devid(dev) == ATA_VIA82C571) { - if (!(idx = ata_find_chip(dev, ids, pci_get_slot(dev)))) + if (!(idx = ata_find_chip(dev, ids, -99))) return ENXIO; } else { diff --git a/sys/dev/ata/ata-pci.h b/sys/dev/ata/ata-pci.h index 09eb53c..fc2a82c 100644 --- a/sys/dev/ata/ata-pci.h +++ b/sys/dev/ata/ata-pci.h @@ -221,7 +221,8 @@ struct ata_pci_controller { #define ATA_VIA8233A 0x31471106 #define ATA_VIA8233C 0x31091106 #define ATA_VIA8235 0x31771106 -#define ATA_VIA8237 0x31491106 +#define ATA_VIA8237 0x32271106 +#define ATA_VIA8237_1 0x31491106 #define ATA_VIA8361 0x31121106 #define ATA_VIA8363 0x03051106 #define ATA_VIA8371 0x03911106 |