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 <dev/cxgb/cxgb_t3fw.h>
14 #include <dev/cxgb/t3b_protocol_sram.h>
15 #include <dev/cxgb/t3b_tp_eeprom.h>
18 cxgb_t3fw_modevent(module_t mod, int type, void *unused)
20 const struct firmware *fp, *parent;
25 fp = firmware_register("cxgb_t3fw", t3fw,
35 error = firmware_unregister("cxgb_t3fw");
41 static moduledata_t cxgb_t3fw_mod = {
46 DECLARE_MODULE(cxgb_t3fw, cxgb_t3fw_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
47 MODULE_VERSION(cxgb_t3fw, 1);
48 MODULE_DEPEND(cxgb_t3fw, firmware, 1, 1, 1);
51 cxgb_t3b_protocol_sram_modevent(module_t mod, int type, void *unused)
53 const struct firmware *fp, *parent;
58 fp = firmware_register("cxgb_t3b_protocol_sram", t3b_protocol_sram,
59 (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);
85 cxgb_t3b_tp_eeprom_modevent(module_t mod, int type, void *unused)
87 const struct firmware *fp, *parent;
92 fp = firmware_register("cxgb_t3b_tp_eeprom", t3b_tp_eeprom,
93 (size_t)t3b_tp_eeprom_length,
102 error = firmware_unregister("cxgb_t3b_tp_eeprom");
108 static moduledata_t cxgb_t3b_tp_eeprom_mod = {
109 "cxgb_t3b_tp_eeprom",
110 cxgb_t3b_tp_eeprom_modevent,
113 DECLARE_MODULE(cxgb_t3b_tp_eeprom, cxgb_t3b_tp_eeprom_mod, SI_SUB_DRIVERS, SI_ORDER_FIRST);
114 MODULE_VERSION(cxgb_t3b_tp_eeprom, 1);
115 MODULE_DEPEND(cxgb_t3b_tp_eeprom, firmware, 1, 1, 1);