Add a way to store a new interrupt_line value to the PCI module. It both updates

the cached pci_info and writes the new value into PCI config space. Drivers
using either mechanism to enumerate devices will therefore get the updated
value.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@41364 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2011-05-07 16:40:32 +00:00
parent f8dac47aab
commit 63cffb7ee3
5 changed files with 56 additions and 1 deletions
+7
View File
@@ -155,6 +155,7 @@ struct pci_module_info {
uchar cap_id,
uchar *offset
);
status_t (*reserve_device) (
uchar bus,
uchar device,
@@ -167,6 +168,12 @@ struct pci_module_info {
uchar function,
const char *driver_name,
void *cookie);
status_t (*update_interrupt_line) (
uchar bus,
uchar device,
uchar function,
uchar newInterruptLineValue);
};
#define B_PCI_MODULE_NAME "bus_managers/pci/v1"