From 84419f715cc0ae1676ac0f1479bd443857f6f4f4 Mon Sep 17 00:00:00 2001 From: Alexander Yurchenko Date: Mon, 2 Feb 2004 00:21:57 +0000 Subject: ite is a yet another ``raid'' device, fake interface for it. --- sys/dev/pci/pciide.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'sys') 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", -- cgit v1.2.3