aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2004-01-20 16:51:02 +0000
committerSøren Schmidt <sos@FreeBSD.org>2004-01-20 16:51:02 +0000
commit8a1bddb753271c842f8895ae89d8b2d7233fcb62 (patch)
treedda22f8a55b393bdce980e9502c4c1b067681898 /sys/dev/ata
parent19c53c53f9c0b977bbe7bb279b7f525b8f1237a5 (diff)
Notes
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-chipset.c4
-rw-r--r--sys/dev/ata/ata-pci.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c
index c86cb9a11594..0ed1b19297af 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 09eb53c9eca9..fc2a82c97cae 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