aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhananjay Phadke <dhananjay@netxen.com>2009-10-24 12:04:02 -0400
committerDavid S. Miller <davem@davemloft.net>2009-10-28 07:11:10 -0400
commit7e8e5d9718744b817bfea6f020586d7035cc89f4 (patch)
tree96758702e19bd3143bbfda21fcb1f94d2c2d777a
parentc25c0b9b33f681972e0b2abc96b9debdd1ef32a5 (diff)
netxen: module firmware hints
Add MODULE_FIRMWARE hints for various firmware file types, required by different chip revisions. Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/netxen/netxen_nic.h6
-rw-r--r--drivers/net/netxen/netxen_nic_init.c6
-rw-r--r--drivers/net/netxen/netxen_nic_main.c4
3 files changed, 15 insertions, 1 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h
index 5d0810f28a01..5982dacd1e41 100644
--- a/drivers/net/netxen/netxen_nic.h
+++ b/drivers/net/netxen/netxen_nic.h
@@ -517,6 +517,12 @@ struct uni_data_desc{
517#define NX_FLASH_ROMIMAGE 4 517#define NX_FLASH_ROMIMAGE 4
518#define NX_UNKNOWN_ROMIMAGE 0xff 518#define NX_UNKNOWN_ROMIMAGE 0xff
519 519
520#define NX_P2_MN_ROMIMAGE_NAME "nxromimg.bin"
521#define NX_P3_CT_ROMIMAGE_NAME "nx3fwct.bin"
522#define NX_P3_MN_ROMIMAGE_NAME "nx3fwmn.bin"
523#define NX_UNIFIED_ROMIMAGE_NAME "phanfw.bin"
524#define NX_FLASH_ROMIMAGE_NAME "flash"
525
520extern char netxen_nic_driver_name[]; 526extern char netxen_nic_driver_name[];
521 527
522/* Number of status descriptors to handle per interrupt */ 528/* Number of status descriptors to handle per interrupt */
diff --git a/drivers/net/netxen/netxen_nic_init.c b/drivers/net/netxen/netxen_nic_init.c
index e84a3bae779b..6ee27a630d89 100644
--- a/drivers/net/netxen/netxen_nic_init.c
+++ b/drivers/net/netxen/netxen_nic_init.c
@@ -822,7 +822,11 @@ netxen_need_fw_reset(struct netxen_adapter *adapter)
822} 822}
823 823
824static char *fw_name[] = { 824static char *fw_name[] = {
825 "nxromimg.bin", "nx3fwct.bin", "nx3fwmn.bin", "phanfw.bin", "flash", 825 NX_P2_MN_ROMIMAGE_NAME,
826 NX_P3_CT_ROMIMAGE_NAME,
827 NX_P3_MN_ROMIMAGE_NAME,
828 NX_UNIFIED_ROMIMAGE_NAME,
829 NX_FLASH_ROMIMAGE_NAME,
826}; 830};
827 831
828int 832int
diff --git a/drivers/net/netxen/netxen_nic_main.c b/drivers/net/netxen/netxen_nic_main.c
index 23e5264c8ae6..12d1037cd81b 100644
--- a/drivers/net/netxen/netxen_nic_main.c
+++ b/drivers/net/netxen/netxen_nic_main.c
@@ -39,6 +39,10 @@
39MODULE_DESCRIPTION("QLogic/NetXen (1/10) GbE Converged Ethernet Driver"); 39MODULE_DESCRIPTION("QLogic/NetXen (1/10) GbE Converged Ethernet Driver");
40MODULE_LICENSE("GPL"); 40MODULE_LICENSE("GPL");
41MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID); 41MODULE_VERSION(NETXEN_NIC_LINUX_VERSIONID);
42MODULE_FIRMWARE(NX_P2_MN_ROMIMAGE_NAME);
43MODULE_FIRMWARE(NX_P3_CT_ROMIMAGE_NAME);
44MODULE_FIRMWARE(NX_P3_MN_ROMIMAGE_NAME);
45MODULE_FIRMWARE(NX_UNIFIED_ROMIMAGE_NAME);
42 46
43char netxen_nic_driver_name[] = "netxen_nic"; 47char netxen_nic_driver_name[] = "netxen_nic";
44static char netxen_nic_driver_string[] = "QLogic/NetXen Network Driver v" 48static char netxen_nic_driver_string[] = "QLogic/NetXen Network Driver v"