2 * from: FreeBSD: src/sys/tools/fw_stub.awk,v 1.6 2007/03/02 11:42:53 flz
8 #include <sys/kernel.h>
9 #include <sys/module.h>
10 #include <sys/linker.h>
11 #include <sys/firmware.h>
12 #include <sys/systm.h>
13 #include <cxgb_t3fw.h>
14 #include <t3b_protocol_sram.h>
15 #include <t3b_tp_eeprom.h>
16 #include <t3c_protocol_sram.h>
17 #include <t3c_tp_eeprom.h>
20 cxgb_t3fw_modevent(module_t mod, int type, void *unused)
22 const struct firmware *fp;
27 fp = firmware_register("cxgb_t3fw", t3fw,
36 error = firmware_unregister("cxgb_t3fw");
42 static moduledata_t cxgb_t3fw_mod = {
47 DECLARE_MODULE(cxgb_t3fw, cxgb_t3fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
48 MODULE_VERSION(cxgb_t3fw, 1);
49 MODULE_DEPEND(cxgb_t3fw, firmware, 1, 1, 1);
52 cxgb_t3b_protocol_sram_modevent(module_t mod, int type, void *unused)
54 const struct firmware *fp;
59 fp = firmware_register("cxgb_t3b_protocol_sram", t3b_protocol_sram,
60 (size_t)t3b_protocol_sram_length,
68 error = firmware_unregister("cxgb_t3b_protocol_sram");
74 static moduledata_t cxgb_t3b_protocol_sram_mod = {
75 "cxgb_t3b_protocol_sram",
76 cxgb_t3b_protocol_sram_modevent,
79 DECLARE_MODULE(cxgb_t3b_protocol_sram, cxgb_t3b_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
80 MODULE_VERSION(cxgb_t3b_protocol_sram, 1);
81 MODULE_DEPEND(cxgb_t3b_protocol_sram, firmware, 1, 1, 1);
84 cxgb_t3b_tp_eeprom_modevent(module_t mod, int type, void *unused)
86 const struct firmware *fp;
91 fp = firmware_register("cxgb_t3b_tp_eeprom", t3b_tp_eeprom,
92 (size_t)t3b_tp_eeprom_length,
100 error = firmware_unregister("cxgb_t3b_tp_eeprom");
106 static moduledata_t cxgb_t3b_tp_eeprom_mod = {
107 "cxgb_t3b_tp_eeprom",
108 cxgb_t3b_tp_eeprom_modevent,
111 DECLARE_MODULE(cxgb_t3b_tp_eeprom, cxgb_t3b_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
112 MODULE_VERSION(cxgb_t3b_tp_eeprom, 1);
113 MODULE_DEPEND(cxgb_t3b_tp_eeprom, firmware, 1, 1, 1);
116 cxgb_t3c_protocol_sram_modevent(module_t mod, int type, void *unused)
118 const struct firmware *fp;
123 fp = firmware_register("cxgb_t3c_protocol_sram", t3c_protocol_sram,
124 (size_t)t3c_protocol_sram_length,
132 error = firmware_unregister("cxgb_t3c_protocol_sram");
138 static moduledata_t cxgb_t3c_protocol_sram_mod = {
139 "cxgb_t3c_protocol_sram",
140 cxgb_t3c_protocol_sram_modevent,
143 DECLARE_MODULE(cxgb_t3c_protocol_sram, cxgb_t3c_protocol_sram_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
144 MODULE_VERSION(cxgb_t3c_protocol_sram, 1);
145 MODULE_DEPEND(cxgb_t3c_protocol_sram, firmware, 1, 1, 1);
148 cxgb_t3c_tp_eeprom_modevent(module_t mod, int type, void *unused)
150 const struct firmware *fp;
155 fp = firmware_register("cxgb_t3c_tp_eeprom", t3c_tp_eeprom,
156 (size_t)t3c_tp_eeprom_length,
164 error = firmware_unregister("cxgb_t3c_tp_eeprom");
170 static moduledata_t cxgb_t3c_tp_eeprom_mod = {
171 "cxgb_t3c_tp_eeprom",
172 cxgb_t3c_tp_eeprom_modevent,
175 DECLARE_MODULE(cxgb_t3c_tp_eeprom, cxgb_t3c_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
176 MODULE_VERSION(cxgb_t3c_tp_eeprom, 1);
177 MODULE_DEPEND(cxgb_t3c_tp_eeprom, firmware, 1, 1, 1);