diff options
author | 2006-05-31 03:38:32 +0000 | |
---|---|---|
committer | 2006-05-31 03:38:32 +0000 | |
commit | 795d2b79bbcfed8523169546cf7cfaf36f0718f1 (patch) | |
tree | 39b95102dbcb492951759ccc3b2f23445436572d /sys/dev/pci/mpi_pci.c | |
parent | fix tree (diff) | |
download | wireguard-openbsd-795d2b79bbcfed8523169546cf7cfaf36f0718f1.tar.xz wireguard-openbsd-795d2b79bbcfed8523169546cf7cfaf36f0718f1.zip |
allow mpi to attach to the scsi controllers again. however, mpt will attach
to them by default, so disable mpt to get mpi to attach.
requested by deraadt@
Diffstat (limited to 'sys/dev/pci/mpi_pci.c')
-rw-r--r-- | sys/dev/pci/mpi_pci.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/mpi_pci.c b/sys/dev/pci/mpi_pci.c index 0c9aace36e9..2a181c0b88d 100644 --- a/sys/dev/pci/mpi_pci.c +++ b/sys/dev/pci/mpi_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpi_pci.c,v 1.3 2006/05/31 03:16:16 dlg Exp $ */ +/* $OpenBSD: mpi_pci.c,v 1.4 2006/05/31 03:38:32 dlg Exp $ */ /* * Copyright (c) 2005 David Gwynne <dlg@openbsd.org> @@ -59,9 +59,7 @@ struct cfattach mpi_pci_ca = { #define MPP_DUAL 0x01 /* Dual port adapter */ static const struct pci_matchid mpi_devices[] = { -#ifdef notyet { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_1030 }, -#endif { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_FC909 }, { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_FC909A }, { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_FC919 }, @@ -77,8 +75,12 @@ mpi_pci_match(struct device *parent, void *match, void *aux) { struct pci_attach_args *pa = aux; + if (PCI_VENDOR(pa->pa_id) == PCI_VENDOR_SYMBIOS && + PCI_PRODUCT(pa->pa_id) == PCI_PRODUCT_SYMBIOS_1030) + return (1); + return (pci_matchbyid(pa, mpi_devices, - sizeof(mpi_devices) / sizeof(mpi_devices[0])) * 2); + sizeof(mpi_devices) / sizeof(mpi_devices[0])) * 3); } void |