diff options
author | Mithlesh Thukral <mithlesh@netxen.com> | 2007-06-07 07:36:36 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-06-09 18:25:35 -0400 |
commit | 0d04761d17976ce560a22d9a21af575cd0d1bc21 (patch) | |
tree | 16b15581443757002991e1a2a614552844f3df7d /drivers/net/netxen/netxen_nic_hw.c | |
parent | 3e2facef86a1665d64961b541aa0773f5ca22125 (diff) |
NetXen: Fix compile failure seen on PPC architecture
NetXen: Add NETXEN prefixes to macros to clean them up.
This is a cleanup patch which adds NETXEN prefix to some stand
alone macro names.
These posed compile errors when NetXen driver was backported to 2.6.9
on PPC architecture as macros like USER_START are defined in file
arch/ppc64/mm/hash_utils.c
Signed-off-by: Andy Gospodarek <andy@greyhouse.net>
Signed-off by: Wen Xiong <wenxiong@us.ibm.com>
Acked-off by: Mithlesh Thukral <mithlesh@netxen.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/netxen/netxen_nic_hw.c')
-rw-r--r-- | drivers/net/netxen/netxen_nic_hw.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/net/netxen/netxen_nic_hw.c b/drivers/net/netxen/netxen_nic_hw.c index baff17a24d63..c012764d1145 100644 --- a/drivers/net/netxen/netxen_nic_hw.c +++ b/drivers/net/netxen/netxen_nic_hw.c | |||
@@ -257,7 +257,7 @@ u64 ctx_addr_sig_regs[][3] = { | |||
257 | #define ADDR_IN_RANGE(addr, low, high) \ | 257 | #define ADDR_IN_RANGE(addr, low, high) \ |
258 | (((addr) <= (high)) && ((addr) >= (low))) | 258 | (((addr) <= (high)) && ((addr) >= (low))) |
259 | 259 | ||
260 | #define NETXEN_FLASH_BASE (BOOTLD_START) | 260 | #define NETXEN_FLASH_BASE (NETXEN_BOOTLD_START) |
261 | #define NETXEN_PHANTOM_MEM_BASE (NETXEN_FLASH_BASE) | 261 | #define NETXEN_PHANTOM_MEM_BASE (NETXEN_FLASH_BASE) |
262 | #define NETXEN_MAX_MTU 8000 + NETXEN_ENET_HEADER_SIZE + NETXEN_ETH_FCS_SIZE | 262 | #define NETXEN_MAX_MTU 8000 + NETXEN_ENET_HEADER_SIZE + NETXEN_ETH_FCS_SIZE |
263 | #define NETXEN_MIN_MTU 64 | 263 | #define NETXEN_MIN_MTU 64 |
@@ -611,7 +611,7 @@ int netxen_get_flash_mac_addr(struct netxen_adapter *adapter, u64 mac[]) | |||
611 | u32 *pmac = (u32 *) & mac[0]; | 611 | u32 *pmac = (u32 *) & mac[0]; |
612 | 612 | ||
613 | if (netxen_get_flash_block(adapter, | 613 | if (netxen_get_flash_block(adapter, |
614 | USER_START + | 614 | NETXEN_USER_START + |
615 | offsetof(struct netxen_new_user_info, | 615 | offsetof(struct netxen_new_user_info, |
616 | mac_addr), | 616 | mac_addr), |
617 | FLASH_NUM_PORTS * sizeof(u64), pmac) == -1) { | 617 | FLASH_NUM_PORTS * sizeof(u64), pmac) == -1) { |
@@ -619,7 +619,7 @@ int netxen_get_flash_mac_addr(struct netxen_adapter *adapter, u64 mac[]) | |||
619 | } | 619 | } |
620 | if (*mac == ~0ULL) { | 620 | if (*mac == ~0ULL) { |
621 | if (netxen_get_flash_block(adapter, | 621 | if (netxen_get_flash_block(adapter, |
622 | USER_START_OLD + | 622 | NETXEN_USER_START_OLD + |
623 | offsetof(struct netxen_user_old_info, | 623 | offsetof(struct netxen_user_old_info, |
624 | mac_addr), | 624 | mac_addr), |
625 | FLASH_NUM_PORTS * sizeof(u64), | 625 | FLASH_NUM_PORTS * sizeof(u64), |
@@ -942,7 +942,7 @@ netxen_nic_pci_set_window(struct netxen_adapter *adapter, | |||
942 | int | 942 | int |
943 | netxen_nic_erase_pxe(struct netxen_adapter *adapter) | 943 | netxen_nic_erase_pxe(struct netxen_adapter *adapter) |
944 | { | 944 | { |
945 | if (netxen_rom_fast_write(adapter, PXE_START, 0) == -1) { | 945 | if (netxen_rom_fast_write(adapter, NETXEN_PXE_START, 0) == -1) { |
946 | printk(KERN_ERR "%s: erase pxe failed\n", | 946 | printk(KERN_ERR "%s: erase pxe failed\n", |
947 | netxen_nic_driver_name); | 947 | netxen_nic_driver_name); |
948 | return -1; | 948 | return -1; |
@@ -953,7 +953,7 @@ netxen_nic_erase_pxe(struct netxen_adapter *adapter) | |||
953 | int netxen_nic_get_board_info(struct netxen_adapter *adapter) | 953 | int netxen_nic_get_board_info(struct netxen_adapter *adapter) |
954 | { | 954 | { |
955 | int rv = 0; | 955 | int rv = 0; |
956 | int addr = BRDCFG_START; | 956 | int addr = NETXEN_BRDCFG_START; |
957 | struct netxen_board_info *boardinfo; | 957 | struct netxen_board_info *boardinfo; |
958 | int index; | 958 | int index; |
959 | u32 *ptr32; | 959 | u32 *ptr32; |
@@ -1115,7 +1115,7 @@ void netxen_nic_flash_print(struct netxen_adapter *adapter) | |||
1115 | u32 fw_build = 0; | 1115 | u32 fw_build = 0; |
1116 | char brd_name[NETXEN_MAX_SHORT_NAME]; | 1116 | char brd_name[NETXEN_MAX_SHORT_NAME]; |
1117 | struct netxen_new_user_info user_info; | 1117 | struct netxen_new_user_info user_info; |
1118 | int i, addr = USER_START; | 1118 | int i, addr = NETXEN_USER_START; |
1119 | __le32 *ptr32; | 1119 | __le32 *ptr32; |
1120 | 1120 | ||
1121 | struct netxen_board_info *board_info = &(adapter->ahw.boardcfg); | 1121 | struct netxen_board_info *board_info = &(adapter->ahw.boardcfg); |