Permalink
Browse files

PCI: the x86 module now exports an MSI-X API.

  • Loading branch information...
korli committed Jul 9, 2013
1 parent 8cd7d43 commit 25b723638df76e0c47d02a0e1c1b3c3534735189
Showing with 33 additions and 1 deletion.
  1. +27 −0 headers/os/drivers/PCI_x86.h
  2. +6 −1 src/add-ons/kernel/bus_managers/pci/arch/x86/pci_arch_module.cpp
@@ -35,6 +35,33 @@ typedef struct pci_x86_module_info {
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function); /* function # in device */
uint8 (*get_msix_count)(
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function); /* function # in device */
status_t (*configure_msix)(
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function, /* function # in device */
uint8 count, /* count of vectors desired */
uint8 *startVector); /* first configured vector */
status_t (*unconfigure_msix)(
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function); /* function # in device */
status_t (*enable_msix)(
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function); /* function # in device */
status_t (*disable_msix)(
uint8 bus, /* bus number */
uint8 device, /* device # on bus */
uint8 function); /* function # in device */
} pci_x86_module_info;
#define B_PCI_X86_MODULE_NAME "bus_managers/pci/x86/v1"
@@ -42,5 +42,10 @@ pci_x86_module_info gPCIArchModule = {
&pci_configure_msi,
&pci_unconfigure_msi,
&pci_enable_msi,
&pci_disable_msi
&pci_disable_msi,
&pci_get_msix_count,
&pci_configure_msix,
&pci_unconfigure_msix,
&pci_enable_msix,
&pci_disable_msix
};

0 comments on commit 25b7236

Please sign in to comment.