summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2003-03-29 11:02:10 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2003-03-29 11:02:10 +0000
commit9085fb972e97fd917644604f6100a04b987b2ae9 (patch)
tree10da48b9ce43c84ba3a61ce99a3fb9bedf72c652 /sys
parentb0d4fa8b5f144cbe6f7f975e85bc963246bdc37f (diff)
Very limited support for Promise PDC20376 SATA. Only parallel ATA
compatibility mode works for now. Based on tests by Jedi/Sector One <j@pureftpd.org>.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/pciide.c15
1 files changed, 11 insertions, 4 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index 7022668a862..5677f915121 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.119 2003/03/28 23:49:48 millert Exp $ */
+/* $OpenBSD: pciide.c,v 1.120 2003/03/29 11:02:09 grange Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -497,6 +497,10 @@ const struct pciide_product_desc pciide_promise_products[] = {
{ PCI_PRODUCT_PROMISE_PDC20277,
IDE_PCI_CLASS_OVERRIDE,
pdc202xx_chip_map,
+ },
+ { PCI_PRODUCT_PROMISE_PDC20376, /* PDC20376 SATA */
+ IDE_PCI_CLASS_OVERRIDE, /* XXX: subclass RAID */
+ pdc202xx_chip_map,
}
};
@@ -4033,7 +4037,8 @@ hpt_pci_intr(arg)
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 || \
- (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277 || \
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20376)
#define PDC_IS_268(sc) \
((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20268 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20268R || \
@@ -4041,13 +4046,15 @@ hpt_pci_intr(arg)
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 || \
- (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277 || \
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20376)
#define PDC_IS_269(sc) \
((sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20269 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20271 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20275 || \
(sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20276 || \
- (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277)
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20277 || \
+ (sc)->sc_pp->ide_product == PCI_PRODUCT_PROMISE_PDC20376)
static __inline u_int8_t
pdc268_config_read(struct channel_softc *chp, int index)