diff options
author | Dhananjay Phadke <dhananjay@netxen.com> | 2009-04-07 18:50:45 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-08 18:58:29 -0400 |
commit | f98a9f693b5f4919d9c4085a2fd8d67c7e152f3e (patch) | |
tree | ef0acb778f9bdb7fed66de7f099f772ef7af1175 /drivers/net/netxen/netxen_nic.h | |
parent | 1fbe63235893e5dce28fe91d8465dd231b0cb3d9 (diff) |
netxen: sanitize function names
Replace superfluous wrapper functions with two macros:
NXWR32 replaces netxen_nic_reg_write, netxen_nic_write_w0,
netxen_nic_read_w1, netxen_crb_writelit_adapter.
NXRD32 replaces netxen_nic_reg_read, netxen_nic_read_w0,
netxen_nic_read_w1.
Signed-off-by: Dhananjay Phadke <dhananjay@netxen.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/netxen/netxen_nic.h')
-rw-r--r-- | drivers/net/netxen/netxen_nic.h | 19 |
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/net/netxen/netxen_nic.h b/drivers/net/netxen/netxen_nic.h index 1e4190dd0c16..f13fd0282f55 100644 --- a/drivers/net/netxen/netxen_nic.h +++ b/drivers/net/netxen/netxen_nic.h | |||
@@ -1312,12 +1312,11 @@ int netxen_niu_gbe_phy_write(struct netxen_adapter *adapter, | |||
1312 | /* Functions available from netxen_nic_hw.c */ | 1312 | /* Functions available from netxen_nic_hw.c */ |
1313 | int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu); | 1313 | int netxen_nic_set_mtu_xgb(struct netxen_adapter *adapter, int new_mtu); |
1314 | int netxen_nic_set_mtu_gb(struct netxen_adapter *adapter, int new_mtu); | 1314 | int netxen_nic_set_mtu_gb(struct netxen_adapter *adapter, int new_mtu); |
1315 | void netxen_nic_reg_write(struct netxen_adapter *adapter, u64 off, u32 val); | 1315 | |
1316 | int netxen_nic_reg_read(struct netxen_adapter *adapter, u64 off); | 1316 | #define NXRD32(adapter, off) \ |
1317 | void netxen_nic_write_w0(struct netxen_adapter *adapter, u32 index, u32 value); | 1317 | (adapter->hw_read_wx(adapter, off)) |
1318 | u32 netxen_nic_read_w0(struct netxen_adapter *adapter, u32 index); | 1318 | #define NXWR32(adapter, off, val) \ |
1319 | void netxen_nic_write_w1(struct netxen_adapter *adapter, u32 index, u32 value); | 1319 | (adapter->hw_write_wx(adapter, off, val)) |
1320 | u32 netxen_nic_read_w1(struct netxen_adapter *adapter, u32 index); | ||
1321 | 1320 | ||
1322 | int netxen_nic_get_board_info(struct netxen_adapter *adapter); | 1321 | int netxen_nic_get_board_info(struct netxen_adapter *adapter); |
1323 | void netxen_nic_get_firmware_info(struct netxen_adapter *adapter); | 1322 | void netxen_nic_get_firmware_info(struct netxen_adapter *adapter); |
@@ -1348,8 +1347,6 @@ int netxen_nic_pci_mem_read_2M(struct netxen_adapter *adapter, | |||
1348 | u64 off, void *data, int size); | 1347 | u64 off, void *data, int size); |
1349 | int netxen_nic_pci_mem_write_2M(struct netxen_adapter *adapter, | 1348 | int netxen_nic_pci_mem_write_2M(struct netxen_adapter *adapter, |
1350 | u64 off, void *data, int size); | 1349 | u64 off, void *data, int size); |
1351 | void netxen_crb_writelit_adapter(struct netxen_adapter *adapter, | ||
1352 | unsigned long off, int data); | ||
1353 | int netxen_nic_pci_write_immediate_2M(struct netxen_adapter *adapter, | 1350 | int netxen_nic_pci_write_immediate_2M(struct netxen_adapter *adapter, |
1354 | u64 off, u32 data); | 1351 | u64 off, u32 data); |
1355 | u32 netxen_nic_pci_read_immediate_2M(struct netxen_adapter *adapter, u64 off); | 1352 | u32 netxen_nic_pci_read_immediate_2M(struct netxen_adapter *adapter, u64 off); |
@@ -1478,8 +1475,7 @@ dma_watchdog_shutdown_request(struct netxen_adapter *adapter) | |||
1478 | 1475 | ||
1479 | /* Send the disable request */ | 1476 | /* Send the disable request */ |
1480 | netxen_set_dma_watchdog_disable_req(ctrl); | 1477 | netxen_set_dma_watchdog_disable_req(ctrl); |
1481 | netxen_crb_writelit_adapter(adapter, | 1478 | NXWR32(adapter, NETXEN_CAM_RAM(NETXEN_CAM_RAM_DMA_WATCHDOG_CTRL), ctrl); |
1482 | NETXEN_CAM_RAM(NETXEN_CAM_RAM_DMA_WATCHDOG_CTRL), ctrl); | ||
1483 | 1479 | ||
1484 | return 0; | 1480 | return 0; |
1485 | } | 1481 | } |
@@ -1509,8 +1505,7 @@ dma_watchdog_wakeup(struct netxen_adapter *adapter) | |||
1509 | /* send the wakeup request */ | 1505 | /* send the wakeup request */ |
1510 | netxen_set_dma_watchdog_enable_req(ctrl); | 1506 | netxen_set_dma_watchdog_enable_req(ctrl); |
1511 | 1507 | ||
1512 | netxen_crb_writelit_adapter(adapter, | 1508 | NXWR32(adapter, NETXEN_CAM_RAM(NETXEN_CAM_RAM_DMA_WATCHDOG_CTRL), ctrl); |
1513 | NETXEN_CAM_RAM(NETXEN_CAM_RAM_DMA_WATCHDOG_CTRL), ctrl); | ||
1514 | 1509 | ||
1515 | return 0; | 1510 | return 0; |
1516 | } | 1511 | } |