|
@@ -4,6 +4,7 @@
|
4
|
4
|
#include "stdint.h"
|
5
|
5
|
#include "string.h"
|
6
|
6
|
#include "dhcp.h" /* for dhcp_dev_id */
|
|
7
|
+#include "tables.h"
|
7
|
8
|
|
8
|
9
|
/*
|
9
|
10
|
* Forward declarations
|
|
@@ -158,7 +159,7 @@ struct bus_driver {
|
158
|
159
|
const char * ( *name_device ) ( struct bus_dev *bus_dev );
|
159
|
160
|
};
|
160
|
161
|
|
161
|
|
-#define __bus_driver __attribute__ (( used, __section__ ( ".drivers.bus" ) ))
|
|
162
|
+#define __bus_driver __attribute__ (( used, __table_section(bus_driver,01) ))
|
162
|
163
|
|
163
|
164
|
/*
|
164
|
165
|
* A structure fully describing the bus-independent parts of a
|
|
@@ -187,7 +188,7 @@ struct type_driver {
|
187
|
188
|
unsigned int len, int eof ) );
|
188
|
189
|
};
|
189
|
190
|
|
190
|
|
-#define __type_driver __attribute__ (( used, __section__ ( ".drivers.type" ) ))
|
|
191
|
+#define __type_driver __attribute__ (( used, __table_section(type_driver,01) ))
|
191
|
192
|
|
192
|
193
|
/*
|
193
|
194
|
* A driver for a device.
|
|
@@ -205,7 +206,7 @@ struct device_driver {
|
205
|
206
|
};
|
206
|
207
|
|
207
|
208
|
#define __device_driver \
|
208
|
|
- __attribute__ (( used, __section__ ( ".drivers.device" ) ))
|
|
209
|
+ __attribute__ (( used, __table_section(device_driver,01) ))
|
209
|
210
|
|
210
|
211
|
#define DRIVER(_name,_type_driver,_bus_driver,_bus_info, \
|
211
|
212
|
_probe,_disable) \
|
|
@@ -283,12 +284,4 @@ static inline int load ( struct dev *dev,
|
283
|
284
|
return dev->type_driver->load ( dev->type_dev, process );
|
284
|
285
|
}
|
285
|
286
|
|
286
|
|
-/* Linker symbols for the various tables */
|
287
|
|
-extern struct bus_driver bus_drivers[];
|
288
|
|
-extern struct bus_driver bus_drivers_end[];
|
289
|
|
-extern struct type_driver type_drivers[];
|
290
|
|
-extern struct type_driver type_drivers_end[];
|
291
|
|
-extern struct device_driver device_drivers[];
|
292
|
|
-extern struct device_driver device_drivers_end[];
|
293
|
|
-
|
294
|
287
|
#endif /* DEV_H */
|