device_printf(dev, "MSIX count : %d\n", msixc);
device_printf(dev, "MSI count : %d\n", msic);
}
+
+#if 0
/* Prefer MSIX over MSI. */
if (msix_disable == 0 || msi_disable == 0) {
if (msix_disable == 0 && msixc == ALC_MSIX_MESSAGES &&
pci_release_msi(dev);
}
}
+#endif
error = bus_alloc_resources(dev, sc->alc_irq_spec, sc->alc_irq);
if (error != 0) {
static int
igb_setup_msix(struct adapter *adapter)
{
+#if 0
device_t dev = adapter->dev;
int rid, want, queues, msgs;
if (msgs == 1 && pci_alloc_msi(dev, &msgs) == 0)
device_printf(adapter->dev,"Using MSI interrupt\n");
return (msgs);
+#else
+ return 0;
+#endif
}
/*********************************************************************
sc->sc_st = rman_get_bustag(sc->mem);
sc->sc_sh = rman_get_bushandle(sc->mem);
sc->irq_rid = 0;
+#if 0
if ((result = pci_msi_count(dev)) == 1 &&
pci_alloc_msi(dev, &result) == 0)
sc->irq_rid = 1;
+#endif
sc->irq = bus_alloc_resource_any(dev, SYS_RES_IRQ, &sc->irq_rid,
RF_ACTIVE | RF_SHAREABLE);
if (sc->irq == NULL) {
int count, err, rid;
count = pci_msi_count(sc->dev);
- if (count == 1 && pci_alloc_msi(sc->dev, &count) == 0) {
+ if (/* count == 1 && pci_alloc_msi(sc->dev, &count) == 0 */0) {
rid = 1;
} else {
rid = 0;