pci: add set_powerstate and get_powerstate legacy hooks

Change-Id: I827112ffb1a65ada99605671b112d8fd0e6db4b5
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4976
Tested-by: Commit checker robot <[email protected]>
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2022-02-19 08:19:24 +00:00
parent 2d0d5cb55e
commit cba67843b0
5 changed files with 64 additions and 1 deletions
+3
View File
@@ -182,6 +182,9 @@ struct pci_module_info {
uint16 cap_id,
uint16 *offset
);
status_t (*get_powerstate)(uint8 bus, uint8 device, uint8 function, uint8* state);
status_t (*set_powerstate)(uint8 bus, uint8 device, uint8 function, uint8 newState);
};
#define B_PCI_MODULE_NAME "bus_managers/pci/v1"