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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user