summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-02 00:21:57 +0000
committerAlexander Yurchenko <grange@cvs.openbsd.org>2004-02-02 00:21:57 +0000
commit84419f715cc0ae1676ac0f1479bd443857f6f4f4 (patch)
tree96623dd503e0fe18ba719e67ea1518acc71df81a
parent5caca1a199f4766773fde619d3eb866a3f515955 (diff)
ite is a yet another ``raid'' device, fake interface for it.
-rw-r--r--sys/dev/pci/pciide.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/sys/dev/pci/pciide.c b/sys/dev/pci/pciide.c
index f6ec3dca60d..e9b413a07ca 100644
--- a/sys/dev/pci/pciide.c
+++ b/sys/dev/pci/pciide.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pciide.c,v 1.158 2004/01/31 20:01:42 grange Exp $ */
+/* $OpenBSD: pciide.c,v 1.159 2004/02/02 00:21:56 grange Exp $ */
/* $NetBSD: pciide.c,v 1.127 2001/08/03 01:31:08 tsutsui Exp $ */
/*
@@ -6109,10 +6109,16 @@ ite_chip_map(struct pciide_softc *sc, struct pci_attach_args *pa)
{
struct pciide_channel *cp;
int channel;
- pcireg_t interface = PCI_INTERFACE(pa->pa_class);
+ pcireg_t interface;
bus_size_t cmdsize, ctlsize;
pcireg_t cfg, modectl;
+ /*
+ * Fake interface since IT8212F is claimed to be a ``RAID'' device.
+ */
+ interface = PCIIDE_INTERFACE_BUS_MASTER_DMA |
+ PCIIDE_INTERFACE_PCI(0) | PCIIDE_INTERFACE_PCI(1);
+
cfg = pci_conf_read(sc->sc_pc, sc->sc_tag, IT_CFG);
modectl = pci_conf_read(sc->sc_pc, sc->sc_tag, IT_MODE);
WDCDEBUG_PRINT(("%s: cfg=0x%x, modectl=0x%x\n",