From 6595b49405391899b288e86d97755d6c780ba3ab Mon Sep 17 00:00:00 2001 From: Søren Schmidt Date: Mon, 2 Feb 2004 14:05:57 +0000 Subject: Fix support for the Promise TX4 on amd64. Somehow the bridge on there shows up with another PCI id than it does on x86, no idea why... --- sys/dev/ata/ata-chipset.c | 2 +- sys/dev/ata/ata-pci.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/dev/ata') diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index daff30beab53..48233aa7264e 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -1107,7 +1107,7 @@ ata_promise_ident(device_t dev) if ((idx->cfg2 & PRTX4) && pci_get_class(GRANDPARENT(dev))==PCIC_BRIDGE && !BUS_READ_IVAR(device_get_parent(GRANDPARENT(dev)), GRANDPARENT(dev), PCI_IVAR_DEVID, &devid) && - devid == ATA_DEC_21150) { + ((devid == ATA_DEC_21150) || (devid == ATA_DEC_21150_1))) { static long start = 0, end = 0; if (pci_get_slot(dev) == 1) { diff --git a/sys/dev/ata/ata-pci.h b/sys/dev/ata/ata-pci.h index 48acb25a22c4..b11a8210cc9f 100644 --- a/sys/dev/ata/ata-pci.h +++ b/sys/dev/ata/ata-pci.h @@ -88,6 +88,7 @@ struct ata_pci_controller { #define ATA_CYPRESS_82C693 0xc6931080 #define ATA_DEC_21150 0x00221011 +#define ATA_DEC_21150_1 0x00231011 #define ATA_HIGHPOINT_ID 0x1103 #define ATA_HPT366 0x00041103 -- cgit v1.3