aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
diff options
context:
space:
mode:
authorHimanshu Madhani <himanshu.madhani@qlogic.com>2013-03-12 05:02:16 -0400
committerDavid S. Miller <davem@davemloft.net>2013-03-13 05:35:05 -0400
commita520030e326a1267fba6babe685ad574174bde27 (patch)
tree3cb388606f065aa7da1bdfc0f47cd33787dd9771 /drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
parent99eee14a14ec8bf36c0705a038fa8d00917fb679 (diff)
qlcnic: Implement flash sysfs callback for 83xx adapter
QLogic applications use these callbacks to perform o NIC Partitioning (NPAR) configuration and management o Diagnostic tests o Flash access and updates Signed-off-by: Himanshu Madhani <himanshu.madhani@qlogic.com> Signed-off-by: Shahed Shaikh <shahed.shaikh@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h')
-rw-r--r--drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
index 648a73f904ee..fbb3d1d9e55c 100644
--- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
+++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_83xx_hw.h
@@ -12,6 +12,8 @@
12#include <linux/etherdevice.h> 12#include <linux/etherdevice.h>
13#include "qlcnic_hw.h" 13#include "qlcnic_hw.h"
14 14
15#define QLCNIC_83XX_BAR0_LENGTH 0x4000
16
15/* Directly mapped registers */ 17/* Directly mapped registers */
16#define QLC_83XX_CRB_WIN_BASE 0x3800 18#define QLC_83XX_CRB_WIN_BASE 0x3800
17#define QLC_83XX_CRB_WIN_FUNC(f) (QLC_83XX_CRB_WIN_BASE+((f)*4)) 19#define QLC_83XX_CRB_WIN_FUNC(f) (QLC_83XX_CRB_WIN_BASE+((f)*4))
@@ -257,8 +259,8 @@ struct qlc_83xx_idc {
257#define QLC_83XX_FLASH_BULK_WRITE_CMD 0xcadcadca 259#define QLC_83XX_FLASH_BULK_WRITE_CMD 0xcadcadca
258#define QLC_83XX_FLASH_READ_RETRY_COUNT 5000 260#define QLC_83XX_FLASH_READ_RETRY_COUNT 5000
259#define QLC_83XX_FLASH_STATUS_READY 0x6 261#define QLC_83XX_FLASH_STATUS_READY 0x6
260#define QLC_83XX_FLASH_BULK_WRITE_MIN 2 262#define QLC_83XX_FLASH_WRITE_MIN 2
261#define QLC_83XX_FLASH_BULK_WRITE_MAX 64 263#define QLC_83XX_FLASH_WRITE_MAX 64
262#define QLC_83XX_FLASH_STATUS_REG_POLL_DELAY 1 264#define QLC_83XX_FLASH_STATUS_REG_POLL_DELAY 1
263#define QLC_83XX_ERASE_MODE 1 265#define QLC_83XX_ERASE_MODE 1
264#define QLC_83XX_WRITE_MODE 2 266#define QLC_83XX_WRITE_MODE 2
@@ -451,4 +453,6 @@ int qlcnic_83xx_loopback_test(struct net_device *, u8);
451int qlcnic_83xx_interrupt_test(struct net_device *); 453int qlcnic_83xx_interrupt_test(struct net_device *);
452int qlcnic_83xx_set_led(struct net_device *, enum ethtool_phys_id_state); 454int qlcnic_83xx_set_led(struct net_device *, enum ethtool_phys_id_state);
453int qlcnic_83xx_flash_test(struct qlcnic_adapter *); 455int qlcnic_83xx_flash_test(struct qlcnic_adapter *);
456int qlcnic_83xx_enable_flash_write(struct qlcnic_adapter *);
457int qlcnic_83xx_disable_flash_write(struct qlcnic_adapter *);
454#endif 458#endif