summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgrange <grange@openbsd.org>2004-02-02 00:21:56 +0000
committergrange <grange@openbsd.org>2004-02-02 00:21:56 +0000
commit84299de042310c833aeaf6c355e932281443f1e1 (patch)
treec9f517ad899ed15173060309f95491e88c43aea6
parentMore work in attempt to get interrupts working reliably: (diff)
downloadwireguard-openbsd-84299de042310c833aeaf6c355e932281443f1e1.tar.xz
wireguard-openbsd-84299de042310c833aeaf6c355e932281443f1e1.zip
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",