driver: init device driver from PCI layer

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-08-11 22:05:31 -04:00
commit 2340c41a37
6 changed files with 57 additions and 11 deletions

View file

@ -16,8 +16,10 @@ struct pci_host {
struct pci_device {
struct pci_host *host;
u16 class_major;
u16 class_minor;
u8 class_major;
u8 class_minor;
u8 prog_if;
u8 revision;
u16 vendor;
u16 device_id;
@ -37,5 +39,6 @@ void pci_register_host(struct pci_host *host);
u32 pci_config_read(struct pci_host *host, u32 bus, u32 slot, u32 func, u32 offset);
void pci_config_write(struct pci_host *host, u32 bus, u32 slot, u32 func, u32 offset, u32 val);
size_t pci_find_device(u16 major, u16 minor, list_t *out);
u32 pci_driver_class(u8 major, u8 minor, u8 prog_if);
#endif /* _PCI_H_ */