PCI_INTR_TYPE_MSI
case PCI_INTR_TYPE_MSI:
msi_count = counts[PCI_INTR_TYPE_MSI];
counts[PCI_INTR_TYPE_MSI] = msi_count;
return PCI_INTR_TYPE_MSI;
return PCI_INTR_TYPE_MSI;
cnt[PCI_INTR_TYPE_MSI] = 1;
case PCI_INTR_TYPE_MSI:
cnt[PCI_INTR_TYPE_MSI] = counts[PCI_INTR_TYPE_MSI];
if (cnt[PCI_INTR_TYPE_MSI] == -1) /* use hardware max */
cnt[PCI_INTR_TYPE_MSI] = pci_msi_count(pa->pa_pc, pa->pa_tag);
if (cnt[PCI_INTR_TYPE_MSI] > 0) {
error = pci_msi_alloc_exact(pa, ihps, cnt[PCI_INTR_TYPE_MSI]);
counts[PCI_INTR_TYPE_MSI] =
cnt[PCI_INTR_TYPE_MSI];
return PCI_INTR_TYPE_MSI;
case PCI_INTR_TYPE_MSI:
msi_count = counts[PCI_INTR_TYPE_MSI];
counts[PCI_INTR_TYPE_MSI] = msi_count;
[PCI_INTR_TYPE_MSI] = 1,
[PCI_INTR_TYPE_MSI] = 0,
counts[PCI_INTR_TYPE_MSI] = counts[PCI_INTR_TYPE_MSIX] = 1;
error = aq_setup_legacy(sc, pa, PCI_INTR_TYPE_MSI);
(inttype == PCI_INTR_TYPE_MSI) ? " MSI" : "");
[PCI_INTR_TYPE_MSI] = 1,
case PCI_INTR_TYPE_MSI:
[PCI_INTR_TYPE_MSI] = 0,
counts[PCI_INTR_TYPE_MSI] = 0;
counts[PCI_INTR_TYPE_MSI] = 1;
if (pci_intr_alloc(pa, &psc->sc_intrs, counts, PCI_INTR_TYPE_MSI) != 0)
counts[PCI_INTR_TYPE_MSI] = 0;
[PCI_INTR_TYPE_MSI] = 1,
case PCI_INTR_TYPE_MSI:
max_type = PCI_INTR_TYPE_MSI;
counts[PCI_INTR_TYPE_MSI] = 1;
counts[PCI_INTR_TYPE_MSI] = 0;
max_type = PCI_INTR_TYPE_MSI;
max_type = PCI_INTR_TYPE_MSI;
counts[PCI_INTR_TYPE_MSI] = 1;
} else if (pci_intr_type(pc, sc->sc_intrs[0]) == PCI_INTR_TYPE_MSI) {
counts[PCI_INTR_TYPE_MSI]);
== PCI_INTR_TYPE_MSI) ? "MSI" : "INTx");
sc->sc_intr_type = PCI_INTR_TYPE_MSI;
case PCI_INTR_TYPE_MSI:
== PCI_INTR_TYPE_MSI) ? "MSI" : "INTx");
if (pci_intr_type(pa->pa_pc, sc->sc_pihp[0]) == PCI_INTR_TYPE_MSI)
max_type = PCI_INTR_TYPE_MSI;
counts[PCI_INTR_TYPE_MSI] =
(intr_type == PCI_INTR_TYPE_MSI) ? "MSI" : "INTx");
case PCI_INTR_TYPE_MSI:
counts[PCI_INTR_TYPE_MSI] = pci_msi_count(pa->pa_pc, pa->pa_tag);
if (counts[PCI_INTR_TYPE_MSI] > 0) {
while (counts[PCI_INTR_TYPE_MSI] > ncpu + 1) {
if (counts[PCI_INTR_TYPE_MSI] / 2 <= ncpu + 1)
counts[PCI_INTR_TYPE_MSI] /= 2;
if (counts[PCI_INTR_TYPE_MSI] < 1) {
counts[PCI_INTR_TYPE_MSI] = 0;
if (counts[PCI_INTR_TYPE_MSI] > 2)
counts[PCI_INTR_TYPE_MSI] = 2; /* adminq + 1 ioq */
if (intr_type == PCI_INTR_TYPE_MSI) {
counts[PCI_INTR_TYPE_MSI] = 0;
[PCI_INTR_TYPE_MSI] = 1,
counts[PCI_INTR_TYPE_MSI] = 0;
counts[PCI_INTR_TYPE_MSI] = 0;