diff options
| author | Michael Brown | 2005-04-27 14:20:54 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-27 14:20:54 +0200 |
| commit | f37e0a06d7c8cc87f6db33103249e10ffa965251 (patch) | |
| tree | 13ca6f6ecf1d3858f79f75bb9194471aeb4a1b93 /src/include | |
| parent | Missing include (diff) | |
| download | ipxe-f37e0a06d7c8cc87f6db33103249e10ffa965251.tar.gz ipxe-f37e0a06d7c8cc87f6db33103249e10ffa965251.tar.xz ipxe-f37e0a06d7c8cc87f6db33103249e10ffa965251.zip | |
dev.c uses the new tables infrastructure.
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/dev.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/src/include/dev.h b/src/include/dev.h index e441da5ea..8bf173554 100644 --- a/src/include/dev.h +++ b/src/include/dev.h @@ -4,6 +4,7 @@ #include "stdint.h" #include "string.h" #include "dhcp.h" /* for dhcp_dev_id */ +#include "tables.h" /* * Forward declarations @@ -158,7 +159,7 @@ struct bus_driver { const char * ( *name_device ) ( struct bus_dev *bus_dev ); }; -#define __bus_driver __attribute__ (( used, __section__ ( ".drivers.bus" ) )) +#define __bus_driver __attribute__ (( used, __table_section(bus_driver,01) )) /* * A structure fully describing the bus-independent parts of a @@ -187,7 +188,7 @@ struct type_driver { unsigned int len, int eof ) ); }; -#define __type_driver __attribute__ (( used, __section__ ( ".drivers.type" ) )) +#define __type_driver __attribute__ (( used, __table_section(type_driver,01) )) /* * A driver for a device. @@ -205,7 +206,7 @@ struct device_driver { }; #define __device_driver \ - __attribute__ (( used, __section__ ( ".drivers.device" ) )) + __attribute__ (( used, __table_section(device_driver,01) )) #define DRIVER(_name,_type_driver,_bus_driver,_bus_info, \ _probe,_disable) \ @@ -283,12 +284,4 @@ static inline int load ( struct dev *dev, return dev->type_driver->load ( dev->type_dev, process ); } -/* Linker symbols for the various tables */ -extern struct bus_driver bus_drivers[]; -extern struct bus_driver bus_drivers_end[]; -extern struct type_driver type_drivers[]; -extern struct type_driver type_drivers_end[]; -extern struct device_driver device_drivers[]; -extern struct device_driver device_drivers_end[]; - #endif /* DEV_H */ |
