driver: init device driver from PCI layer
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
6340e5d450
commit
2340c41a37
6 changed files with 57 additions and 11 deletions
|
|
@ -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_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue