|
Lines 488-494
Link Here
|
| 488 |
.Fn pci_count_msi |
488 |
.Fn pci_count_msi |
| 489 |
function returns the maximum number of MSI messages supported by the |
489 |
function returns the maximum number of MSI messages supported by the |
| 490 |
device |
490 |
device |
| 491 |
.Fa dev. |
491 |
.Fa dev . |
| 492 |
If the device does not support MSI, |
492 |
If the device does not support MSI, |
| 493 |
then |
493 |
then |
| 494 |
.Fn pci_count_msi |
494 |
.Fn pci_count_msi |
|
Lines 567-573
Link Here
|
| 567 |
returns zero. |
567 |
returns zero. |
| 568 |
For MSI-X messages, |
568 |
For MSI-X messages, |
| 569 |
the resource ID for each |
569 |
the resource ID for each |
| 570 |
.Dv SYS_RES_IRQ resource identifies the index in the MSI-X table of the |
570 |
.Dv SYS_RES_IRQ |
|
|
571 |
resource identifies the index in the MSI-X table of the |
| 571 |
corresponding message. |
572 |
corresponding message. |
| 572 |
A resource ID of one maps to the first index of the MSI-X table; |
573 |
A resource ID of one maps to the first index of the MSI-X table; |
| 573 |
a resource ID two identifies the second index in the table, etc. |
574 |
a resource ID two identifies the second index in the table, etc. |
|
Lines 608-614
Link Here
|
| 608 |
table entries via the |
609 |
table entries via the |
| 609 |
.Fn pci_remap_msix |
610 |
.Fn pci_remap_msix |
| 610 |
function. |
611 |
function. |
| 611 |
Note that this function must be called after a succesful call to |
612 |
Note that this function must be called after a successful call to |
| 612 |
.Fn pci_alloc_msix |
613 |
.Fn pci_alloc_msix |
| 613 |
but before any of the |
614 |
but before any of the |
| 614 |
.Dv SYS_RES_IRQ |
615 |
.Dv SYS_RES_IRQ |
|
Lines 649-655
Link Here
|
| 649 |
.Fn pci_alloc_msix . |
650 |
.Fn pci_alloc_msix . |
| 650 |
MSI-X table entries that with a vector of zero will not have an |
651 |
MSI-X table entries that with a vector of zero will not have an |
| 651 |
associated |
652 |
associated |
| 652 |
.Dv SYS_RES_IRQ resource. |
653 |
.Dv SYS_RES_IRQ |
|
|
654 |
resource. |
| 653 |
Additionally, |
655 |
Additionally, |
| 654 |
if any of the original messages allocated by |
656 |
if any of the original messages allocated by |
| 655 |
.Fn pci_alloc_msix |
657 |
.Fn pci_alloc_msix |