diff options
| author | Michael Brown | 2005-04-13 00:43:25 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-13 00:43:25 +0200 |
| commit | 95da907d5f1f7c404c1ed597c27cbfde6e5327cd (patch) | |
| tree | d4b1e462c945fb05a6983dd852bcdfca36d4a785 | |
| parent | We now record a pointer to the struct pci_device, since it's carried (diff) | |
| download | ipxe-95da907d5f1f7c404c1ed597c27cbfde6e5327cd.tar.gz ipxe-95da907d5f1f7c404c1ed597c27cbfde6e5327cd.tar.xz ipxe-95da907d5f1f7c404c1ed597c27cbfde6e5327cd.zip | |
Add print_info method to dev_operations.
| -rw-r--r-- | src/include/dev.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/include/dev.h b/src/include/dev.h index 3c029b913..e77c763d2 100644 --- a/src/include/dev.h +++ b/src/include/dev.h @@ -33,6 +33,7 @@ struct dev { struct dev_operations { void ( *disable ) ( struct dev * ); + void ( *print_info ) ( struct dev * ); int ( *load_configuration ) ( struct dev * ); int ( *load ) ( struct dev * ); }; @@ -53,6 +54,9 @@ struct boot_driver { extern void print_drivers ( void ); extern int probe ( struct dev *dev ); extern void disable ( struct dev *dev ); +static inline void print_info ( struct dev *dev ) { + dev->dev_op->print_info ( dev ); +} static inline int load_configuration ( struct dev *dev ) { return dev->dev_op->load_configuration ( dev ); } |
