summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2007-06-20 04:11:00 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2007-06-20 04:11:00 +0000
commit2c65e007f49588715f8ed6d9791487a8e8975a73 (patch)
treec8f1f595667158a177c2fc356349ae2ee1c8ca1a /sys
parent71c2cb7118046745b4c0b2460e4a0060420abce9 (diff)
Add support for VIA CX700/VX700 IDE.
Tested by jcs@ on a model 2 oqo.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pciide.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 29b61509012..10dc03f6abb 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.269 2007/06/02 18:44:44 jsg Exp $ */
+/* $OpenBSD: pciide.c,v 1.270 2007/06/20 04:10:59 jsg Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -602,6 +602,10 @@ const struct pciide_product_desc pciide_via_products[] = {
IDE_PCI_CLASS_OVERRIDE,
apollo_chip_map
},
+ { PCI_PRODUCT_VIATECH_CX700_IDE, /* VIA CX700 IDE */
+ 0,
+ apollo_chip_map
+ },
{ PCI_PRODUCT_VIATECH_VT6420_SATA, /* VIA VT6420 SATA */
IDE_PCI_CLASS_OVERRIDE,
sata_chip_map
@@ -2965,7 +2969,8 @@ apollo_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa)
PCIIDE_INTERFACE_PCI(0) | PCIIDE_INTERFACE_PCI(1);
}
- if (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_VIATECH_VT6410) {
+ if ((PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_VIATECH_VT6410) ||
+ (PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_VIATECH_CX700_IDE)) {
printf(": ATA133");
sc->sc_wdcdev.UDMA_cap = 6;
} else {