projects
/
dragonfly.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
ac0a3f3
)
msix: Use msix_table_res to determine whether MSI-X is used or not
author
Sepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Jan 2012 08:03:14 +0000 (16:03 +0800)
committer
Sepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 17 Jan 2012 08:03:14 +0000 (16:03 +0800)
sys/bus/pci/pci.c
patch
|
blob
|
blame
|
history
diff --git
a/sys/bus/pci/pci.c
b/sys/bus/pci/pci.c
index
46a1cea
..
d93b6aa
100644
(file)
--- a/
sys/bus/pci/pci.c
+++ b/
sys/bus/pci/pci.c
@@
-1448,7
+1448,7
@@
pci_resume_msix(device_t dev)
struct pci_devinfo *dinfo = device_get_ivars(dev);
struct pcicfg_msix *msix = &dinfo->cfg.msix;
- if (msix->msix_alloc > 0) {
+ if (msix->msix_table_res != NULL) {
const struct msix_vector *mv;
pci_mask_msix_allvectors(dev);
@@
-1905,7
+1905,7
@@
pci_alloc_msi_method(device_t dev, device_t child, int *rid, int count,
return (ENXIO);
/* Already have allocated messages? */
- if (cfg->msi.msi_alloc != 0 || cfg->msix.msix_alloc != 0)
+ if (cfg->msi.msi_alloc != 0 || cfg->msix.msix_table_res != NULL)
return (ENXIO);
/* If MSI is blacklisted for this system, fail. */