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
|
|
@ -14,14 +14,12 @@ typedef int (*pci_init_t)(struct pci_device *dev);
|
|||
|
||||
struct driver {
|
||||
char name[32];
|
||||
u64 type;
|
||||
u32 type;
|
||||
void *init_device;
|
||||
void *deinit_device;
|
||||
u64 major;
|
||||
u64 minor;
|
||||
};
|
||||
|
||||
int driver_register(const char *name, u64 type, void *init, void *deinit, u64 major, u64 minor);
|
||||
struct driver *driver_find(const char *name);
|
||||
int driver_register(const char *name, u32 type, void *init, void *deinit, u32 class);
|
||||
struct driver *driver_find(u32 type, u32 class);
|
||||
|
||||
#endif /* _DRIVER_H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue