improve pci driver
This commit is contained in:
parent
adfa24dd1e
commit
9ac63f29dd
6 changed files with 75 additions and 33 deletions
|
|
@ -109,8 +109,8 @@ struct pci_header_type_1 {
|
|||
} PACKED;
|
||||
|
||||
void pci_init();
|
||||
uint16_t pci_config_read_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset);
|
||||
void pci_config_write_word(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset, uint16_t data);
|
||||
uint32_t pci_config_read_long(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset);
|
||||
void pci_config_write_long(uint8_t bus, uint8_t slot, uint8_t func, uint8_t offset, uint16_t data);
|
||||
struct pci_device *pci_find_device(uint8_t class, uint8_t subclass);
|
||||
|
||||
#endif /* _PCI_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue