qlcnic_83xx_hw.h 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. /*
  2. * QLogic qlcnic NIC Driver
  3. * Copyright (c) 2009-2013 QLogic Corporation
  4. *
  5. * See LICENSE.qlcnic for copyright and licensing details.
  6. */
  7. #ifndef __QLCNIC_83XX_HW_H
  8. #define __QLCNIC_83XX_HW_H
  9. #include <linux/types.h>
  10. #include <linux/etherdevice.h>
  11. #include "qlcnic_hw.h"
  12. /* Directly mapped registers */
  13. #define QLC_83XX_CRB_WIN_BASE 0x3800
  14. #define QLC_83XX_CRB_WIN_FUNC(f) (QLC_83XX_CRB_WIN_BASE+((f)*4))
  15. #define QLC_83XX_SEM_LOCK_BASE 0x3840
  16. #define QLC_83XX_SEM_UNLOCK_BASE 0x3844
  17. #define QLC_83XX_SEM_LOCK_FUNC(f) (QLC_83XX_SEM_LOCK_BASE+((f)*8))
  18. #define QLC_83XX_SEM_UNLOCK_FUNC(f) (QLC_83XX_SEM_UNLOCK_BASE+((f)*8))
  19. #define QLC_83XX_LINK_STATE(f) (0x3698+((f) > 7 ? 4 : 0))
  20. #define QLC_83XX_LINK_SPEED(f) (0x36E0+(((f) >> 2) * 4))
  21. #define QLC_83XX_LINK_SPEED_FACTOR 10
  22. #define QLC_83xx_FUNC_VAL(v, f) ((v) & (1 << (f * 4)))
  23. #define QLC_83XX_INTX_PTR 0x38C0
  24. #define QLC_83XX_INTX_TRGR 0x38C4
  25. #define QLC_83XX_INTX_MASK 0x38C8
  26. #define QLC_83XX_DRV_LOCK_WAIT_COUNTER 100
  27. #define QLC_83XX_DRV_LOCK_WAIT_DELAY 20
  28. #define QLC_83XX_NEED_DRV_LOCK_RECOVERY 1
  29. #define QLC_83XX_DRV_LOCK_RECOVERY_IN_PROGRESS 2
  30. #define QLC_83XX_MAX_DRV_LOCK_RECOVERY_ATTEMPT 3
  31. #define QLC_83XX_DRV_LOCK_RECOVERY_DELAY 200
  32. #define QLC_83XX_DRV_LOCK_RECOVERY_STATUS_MASK 0x3
  33. #define QLC_83XX_NO_NIC_RESOURCE 0x5
  34. #define QLC_83XX_MAC_PRESENT 0xC
  35. #define QLC_83XX_MAC_ABSENT 0xD
  36. #define QLC_83XX_FLASH_SECTOR_SIZE (64 * 1024)
  37. /* PEG status definitions */
  38. #define QLC_83XX_CMDPEG_COMPLETE 0xff01
  39. #define QLC_83XX_VALID_INTX_BIT30(val) ((val) & BIT_30)
  40. #define QLC_83XX_VALID_INTX_BIT31(val) ((val) & BIT_31)
  41. #define QLC_83XX_INTX_FUNC(val) ((val) & 0xFF)
  42. #define QLC_83XX_LEGACY_INTX_MAX_RETRY 100
  43. #define QLC_83XX_LEGACY_INTX_DELAY 4
  44. #define QLC_83XX_REG_DESC 1
  45. #define QLC_83XX_LRO_DESC 2
  46. #define QLC_83XX_CTRL_DESC 3
  47. #define QLC_83XX_FW_CAPABILITY_TSO BIT_6
  48. #define QLC_83XX_FW_CAP_LRO_MSS BIT_17
  49. #define QLC_83XX_HOST_RDS_MODE_UNIQUE 0
  50. #define QLC_83XX_HOST_SDS_MBX_IDX 8
  51. #define QLCNIC_HOST_RDS_MBX_IDX 88
  52. #define QLCNIC_MAX_RING_SETS 8
  53. /* Pause control registers */
  54. #define QLC_83XX_SRE_SHIM_REG 0x0D200284
  55. #define QLC_83XX_PORT0_THRESHOLD 0x0B2003A4
  56. #define QLC_83XX_PORT1_THRESHOLD 0x0B2013A4
  57. #define QLC_83XX_PORT0_TC_MC_REG 0x0B200388
  58. #define QLC_83XX_PORT1_TC_MC_REG 0x0B201388
  59. #define QLC_83XX_PORT0_TC_STATS 0x0B20039C
  60. #define QLC_83XX_PORT1_TC_STATS 0x0B20139C
  61. #define QLC_83XX_PORT2_IFB_THRESHOLD 0x0B200704
  62. #define QLC_83XX_PORT3_IFB_THRESHOLD 0x0B201704
  63. /* Peg PC status registers */
  64. #define QLC_83XX_CRB_PEG_NET_0 0x3400003c
  65. #define QLC_83XX_CRB_PEG_NET_1 0x3410003c
  66. #define QLC_83XX_CRB_PEG_NET_2 0x3420003c
  67. #define QLC_83XX_CRB_PEG_NET_3 0x3430003c
  68. #define QLC_83XX_CRB_PEG_NET_4 0x34b0003c
  69. /* Firmware image definitions */
  70. #define QLC_83XX_BOOTLOADER_FLASH_ADDR 0x10000
  71. #define QLC_83XX_FW_FILE_NAME "83xx_fw.bin"
  72. #define QLC_83XX_BOOT_FROM_FLASH 0
  73. #define QLC_83XX_BOOT_FROM_FILE 0x12345678
  74. #define QLC_83XX_MAX_RESET_SEQ_ENTRIES 16
  75. struct qlcnic_intrpt_config {
  76. u8 type;
  77. u8 enabled;
  78. u16 id;
  79. u32 src;
  80. };
  81. struct qlcnic_macvlan_mbx {
  82. u8 mac[ETH_ALEN];
  83. u16 vlan;
  84. };
  85. struct qlc_83xx_fw_info {
  86. const struct firmware *fw;
  87. u16 major_fw_version;
  88. u8 minor_fw_version;
  89. u8 sub_fw_version;
  90. u8 fw_build_num;
  91. u8 load_from_file;
  92. };
  93. struct qlc_83xx_reset {
  94. struct qlc_83xx_reset_hdr *hdr;
  95. int seq_index;
  96. int seq_error;
  97. int array_index;
  98. u32 array[QLC_83XX_MAX_RESET_SEQ_ENTRIES];
  99. u8 *buff;
  100. u8 *stop_offset;
  101. u8 *start_offset;
  102. u8 *init_offset;
  103. u8 seq_end;
  104. u8 template_end;
  105. };
  106. #define QLC_83XX_IDC_DISABLE_FW_RESET_RECOVERY 0x1
  107. #define QLC_83XX_IDC_GRACEFULL_RESET 0x2
  108. #define QLC_83XX_IDC_TIMESTAMP 0
  109. #define QLC_83XX_IDC_DURATION 1
  110. #define QLC_83XX_IDC_INIT_TIMEOUT_SECS 30
  111. #define QLC_83XX_IDC_RESET_ACK_TIMEOUT_SECS 10
  112. #define QLC_83XX_IDC_RESET_TIMEOUT_SECS 10
  113. #define QLC_83XX_IDC_QUIESCE_ACK_TIMEOUT_SECS 20
  114. #define QLC_83XX_IDC_FW_POLL_DELAY (1 * HZ)
  115. #define QLC_83XX_IDC_FW_FAIL_THRESH 2
  116. #define QLC_83XX_IDC_MAX_FUNC_PER_PARTITION_INFO 8
  117. #define QLC_83XX_IDC_MAX_CNA_FUNCTIONS 16
  118. #define QLC_83XX_IDC_MAJOR_VERSION 1
  119. #define QLC_83XX_IDC_MINOR_VERSION 0
  120. #define QLC_83XX_IDC_FLASH_PARAM_ADDR 0x3e8020
  121. struct qlcnic_adapter;
  122. struct qlc_83xx_idc {
  123. int (*state_entry) (struct qlcnic_adapter *);
  124. u64 sec_counter;
  125. u64 delay;
  126. unsigned long status;
  127. int err_code;
  128. int collect_dump;
  129. u8 curr_state;
  130. u8 prev_state;
  131. u8 vnic_state;
  132. u8 vnic_wait_limit;
  133. u8 quiesce_req;
  134. char **name;
  135. };
  136. #define QLCNIC_MBX_RSP(reg) LSW(reg)
  137. #define QLCNIC_MBX_NUM_REGS(reg) (MSW(reg) & 0x1FF)
  138. #define QLCNIC_MBX_STATUS(reg) (((reg) >> 25) & 0x7F)
  139. #define QLCNIC_MBX_HOST(ahw, i) ((ahw)->pci_base0 + ((i) * 4))
  140. #define QLCNIC_MBX_FW(ahw, i) ((ahw)->pci_base0 + 0x800 + ((i) * 4))
  141. /* Mailbox process AEN count */
  142. #define QLC_83XX_IDC_COMP_AEN 3
  143. #define QLC_83XX_MBX_AEN_CNT 5
  144. #define QLC_83XX_MODULE_LOADED 1
  145. #define QLC_83XX_MBX_READY 2
  146. #define QLC_83XX_MBX_AEN_ACK 3
  147. #define QLC_83XX_SFP_PRESENT(data) ((data) & 3)
  148. #define QLC_83XX_SFP_ERR(data) (((data) >> 2) & 3)
  149. #define QLC_83XX_SFP_MODULE_TYPE(data) (((data) >> 4) & 0x1F)
  150. #define QLC_83XX_SFP_CU_LENGTH(data) (LSB((data) >> 16))
  151. #define QLC_83XX_SFP_TX_FAULT(data) ((data) & BIT_10)
  152. #define QLC_83XX_SFP_10G_CAPABLE(data) ((data) & BIT_11)
  153. #define QLC_83XX_LINK_STATS(data) ((data) & BIT_0)
  154. #define QLC_83XX_CURRENT_LINK_SPEED(data) (((data) >> 3) & 7)
  155. #define QLC_83XX_LINK_PAUSE(data) (((data) >> 6) & 3)
  156. #define QLC_83XX_LINK_LB(data) (((data) >> 8) & 7)
  157. #define QLC_83XX_LINK_FEC(data) ((data) & BIT_12)
  158. #define QLC_83XX_LINK_EEE(data) ((data) & BIT_13)
  159. #define QLC_83XX_DCBX(data) (((data) >> 28) & 7)
  160. #define QLC_83XX_AUTONEG(data) ((data) & BIT_15)
  161. #define QLC_83XX_CFG_STD_PAUSE (1 << 5)
  162. #define QLC_83XX_CFG_STD_TX_PAUSE (1 << 20)
  163. #define QLC_83XX_CFG_STD_RX_PAUSE (2 << 20)
  164. #define QLC_83XX_CFG_STD_TX_RX_PAUSE (3 << 20)
  165. #define QLC_83XX_ENABLE_AUTONEG (1 << 15)
  166. #define QLC_83XX_CFG_LOOPBACK_HSS (2 << 1)
  167. #define QLC_83XX_CFG_LOOPBACK_PHY (3 << 1)
  168. #define QLC_83XX_CFG_LOOPBACK_EXT (4 << 1)
  169. /* LED configuration settings */
  170. #define QLC_83XX_ENABLE_BEACON 0xe
  171. #define QLC_83XX_LED_RATE 0xff
  172. #define QLC_83XX_LED_ACT (1 << 10)
  173. #define QLC_83XX_LED_MOD (0 << 13)
  174. #define QLC_83XX_LED_CONFIG (QLC_83XX_LED_RATE | QLC_83XX_LED_ACT | \
  175. QLC_83XX_LED_MOD)
  176. #define QLC_83XX_10M_LINK 1
  177. #define QLC_83XX_100M_LINK 2
  178. #define QLC_83XX_1G_LINK 3
  179. #define QLC_83XX_10G_LINK 4
  180. #define QLC_83XX_STAT_TX 3
  181. #define QLC_83XX_STAT_RX 2
  182. #define QLC_83XX_STAT_MAC 1
  183. #define QLC_83XX_TX_STAT_REGS 14
  184. #define QLC_83XX_RX_STAT_REGS 40
  185. #define QLC_83XX_MAC_STAT_REGS 80
  186. #define QLC_83XX_GET_FUNC_PRIVILEGE(VAL, FN) (0x3 & ((VAL) >> (FN * 2)))
  187. #define QLC_83XX_SET_FUNC_OPMODE(VAL, FN) ((VAL) << (FN * 2))
  188. #define QLC_83XX_DEFAULT_OPMODE 0x55555555
  189. #define QLC_83XX_PRIVLEGED_FUNC 0x1
  190. #define QLC_83XX_VIRTUAL_FUNC 0x2
  191. #define QLC_83XX_LB_MAX_FILTERS 2048
  192. #define QLC_83XX_LB_BUCKET_SIZE 256
  193. #define QLC_83XX_MINIMUM_VECTOR 3
  194. #define QLC_83XX_GET_FUNC_MODE_FROM_NPAR_INFO(val) (val & 0x80000000)
  195. #define QLC_83XX_GET_LRO_CAPABILITY(val) (val & 0x20)
  196. #define QLC_83XX_GET_LSO_CAPABILITY(val) (val & 0x40)
  197. #define QLC_83XX_GET_LSO_CAPABILITY(val) (val & 0x40)
  198. #define QLC_83XX_GET_HW_LRO_CAPABILITY(val) (val & 0x400)
  199. #define QLC_83XX_GET_VLAN_ALIGN_CAPABILITY(val) (val & 0x4000)
  200. #define QLC_83XX_GET_FW_LRO_MSS_CAPABILITY(val) (val & 0x20000)
  201. #define QLC_83XX_VIRTUAL_NIC_MODE 0xFF
  202. #define QLC_83XX_DEFAULT_MODE 0x0
  203. #define QLCNIC_BRDTYPE_83XX_10G 0x0083
  204. #define QLC_83XX_FLASH_SPI_STATUS 0x2808E010
  205. #define QLC_83XX_FLASH_SPI_CONTROL 0x2808E014
  206. #define QLC_83XX_FLASH_STATUS 0x42100004
  207. #define QLC_83XX_FLASH_CONTROL 0x42110004
  208. #define QLC_83XX_FLASH_ADDR 0x42110008
  209. #define QLC_83XX_FLASH_WRDATA 0x4211000C
  210. #define QLC_83XX_FLASH_RDDATA 0x42110018
  211. #define QLC_83XX_FLASH_DIRECT_WINDOW 0x42110030
  212. #define QLC_83XX_FLASH_DIRECT_DATA(DATA) (0x42150000 | (0x0000FFFF&DATA))
  213. #define QLC_83XX_FLASH_SECTOR_ERASE_CMD 0xdeadbeef
  214. #define QLC_83XX_FLASH_WRITE_CMD 0xdacdacda
  215. #define QLC_83XX_FLASH_BULK_WRITE_CMD 0xcadcadca
  216. #define QLC_83XX_FLASH_READ_RETRY_COUNT 5000
  217. #define QLC_83XX_FLASH_STATUS_READY 0x6
  218. #define QLC_83XX_FLASH_BULK_WRITE_MIN 2
  219. #define QLC_83XX_FLASH_BULK_WRITE_MAX 64
  220. #define QLC_83XX_FLASH_STATUS_REG_POLL_DELAY 1
  221. #define QLC_83XX_ERASE_MODE 1
  222. #define QLC_83XX_WRITE_MODE 2
  223. #define QLC_83XX_BULK_WRITE_MODE 3
  224. #define QLC_83XX_FLASH_FDT_WRITE_DEF_SIG 0xFD0100
  225. #define QLC_83XX_FLASH_FDT_ERASE_DEF_SIG 0xFD0300
  226. #define QLC_83XX_FLASH_FDT_READ_MFG_ID_VAL 0xFD009F
  227. #define QLC_83XX_FLASH_OEM_ERASE_SIG 0xFD03D8
  228. #define QLC_83XX_FLASH_OEM_WRITE_SIG 0xFD0101
  229. #define QLC_83XX_FLASH_OEM_READ_SIG 0xFD0005
  230. #define QLC_83XX_FLASH_ADDR_TEMP_VAL 0x00800000
  231. #define QLC_83XX_FLASH_ADDR_SECOND_TEMP_VAL 0x00800001
  232. #define QLC_83XX_FLASH_WRDATA_DEF 0x0
  233. #define QLC_83XX_FLASH_READ_CTRL 0x3F
  234. #define QLC_83XX_FLASH_SPI_CTRL 0x4
  235. #define QLC_83XX_FLASH_FIRST_ERASE_MS_VAL 0x2
  236. #define QLC_83XX_FLASH_SECOND_ERASE_MS_VAL 0x5
  237. #define QLC_83XX_FLASH_LAST_ERASE_MS_VAL 0x3D
  238. #define QLC_83XX_FLASH_FIRST_MS_PATTERN 0x43
  239. #define QLC_83XX_FLASH_SECOND_MS_PATTERN 0x7F
  240. #define QLC_83XX_FLASH_LAST_MS_PATTERN 0x7D
  241. #define QLC_83xx_FLASH_MAX_WAIT_USEC 100
  242. #define QLC_83XX_FLASH_LOCK_TIMEOUT 10000
  243. /* Additional registers in 83xx */
  244. enum qlc_83xx_ext_regs {
  245. QLCNIC_GLOBAL_RESET = 0,
  246. QLCNIC_WILDCARD,
  247. QLCNIC_INFORMANT,
  248. QLCNIC_HOST_MBX_CTRL,
  249. QLCNIC_FW_MBX_CTRL,
  250. QLCNIC_BOOTLOADER_ADDR,
  251. QLCNIC_BOOTLOADER_SIZE,
  252. QLCNIC_FW_IMAGE_ADDR,
  253. QLCNIC_MBX_INTR_ENBL,
  254. QLCNIC_DEF_INT_MASK,
  255. QLCNIC_DEF_INT_ID,
  256. QLC_83XX_IDC_MAJ_VERSION,
  257. QLC_83XX_IDC_DEV_STATE,
  258. QLC_83XX_IDC_DRV_PRESENCE,
  259. QLC_83XX_IDC_DRV_ACK,
  260. QLC_83XX_IDC_CTRL,
  261. QLC_83XX_IDC_DRV_AUDIT,
  262. QLC_83XX_IDC_MIN_VERSION,
  263. QLC_83XX_RECOVER_DRV_LOCK,
  264. QLC_83XX_IDC_PF_0,
  265. QLC_83XX_IDC_PF_1,
  266. QLC_83XX_IDC_PF_2,
  267. QLC_83XX_IDC_PF_3,
  268. QLC_83XX_IDC_PF_4,
  269. QLC_83XX_IDC_PF_5,
  270. QLC_83XX_IDC_PF_6,
  271. QLC_83XX_IDC_PF_7,
  272. QLC_83XX_IDC_PF_8,
  273. QLC_83XX_IDC_PF_9,
  274. QLC_83XX_IDC_PF_10,
  275. QLC_83XX_IDC_PF_11,
  276. QLC_83XX_IDC_PF_12,
  277. QLC_83XX_IDC_PF_13,
  278. QLC_83XX_IDC_PF_14,
  279. QLC_83XX_IDC_PF_15,
  280. QLC_83XX_IDC_DEV_PARTITION_INFO_1,
  281. QLC_83XX_IDC_DEV_PARTITION_INFO_2,
  282. QLC_83XX_DRV_OP_MODE,
  283. QLC_83XX_VNIC_STATE,
  284. QLC_83XX_DRV_LOCK,
  285. QLC_83XX_DRV_UNLOCK,
  286. QLC_83XX_DRV_LOCK_ID,
  287. QLC_83XX_ASIC_TEMP,
  288. };
  289. /* 83xx funcitons */
  290. int qlcnic_83xx_get_fw_version(struct qlcnic_adapter *);
  291. int qlcnic_83xx_mbx_op(struct qlcnic_adapter *, struct qlcnic_cmd_args *);
  292. int qlcnic_83xx_setup_intr(struct qlcnic_adapter *, u8);
  293. void qlcnic_83xx_get_func_no(struct qlcnic_adapter *);
  294. int qlcnic_83xx_cam_lock(struct qlcnic_adapter *);
  295. void qlcnic_83xx_cam_unlock(struct qlcnic_adapter *);
  296. int qlcnic_send_ctrl_op(struct qlcnic_adapter *, struct qlcnic_cmd_args *, u32);
  297. void qlcnic_83xx_add_sysfs(struct qlcnic_adapter *);
  298. void qlcnic_83xx_remove_sysfs(struct qlcnic_adapter *);
  299. void qlcnic_83xx_write_crb(struct qlcnic_adapter *, char *, loff_t, size_t);
  300. void qlcnic_83xx_read_crb(struct qlcnic_adapter *, char *, loff_t, size_t);
  301. int qlcnic_83xx_rd_reg_indirect(struct qlcnic_adapter *, ulong);
  302. int qlcnic_83xx_wrt_reg_indirect(struct qlcnic_adapter *, ulong, u32);
  303. void qlcnic_83xx_process_rcv_diag(struct qlcnic_adapter *, int, u64 []);
  304. int qlcnic_83xx_nic_set_promisc(struct qlcnic_adapter *, u32);
  305. int qlcnic_83xx_set_lb_mode(struct qlcnic_adapter *, u8);
  306. int qlcnic_83xx_clear_lb_mode(struct qlcnic_adapter *, u8);
  307. int qlcnic_83xx_config_hw_lro(struct qlcnic_adapter *, int);
  308. int qlcnic_83xx_config_rss(struct qlcnic_adapter *, int);
  309. int qlcnic_83xx_config_intr_coalesce(struct qlcnic_adapter *);
  310. void qlcnic_83xx_change_l2_filter(struct qlcnic_adapter *, u64 *, __le16);
  311. int qlcnic_83xx_get_pci_info(struct qlcnic_adapter *, struct qlcnic_pci_info *);
  312. int qlcnic_83xx_set_nic_info(struct qlcnic_adapter *, struct qlcnic_info *);
  313. void qlcnic_83xx_register_nic_idc_func(struct qlcnic_adapter *, int);
  314. int qlcnic_83xx_napi_add(struct qlcnic_adapter *, struct net_device *);
  315. void qlcnic_83xx_napi_del(struct qlcnic_adapter *);
  316. void qlcnic_83xx_napi_enable(struct qlcnic_adapter *);
  317. void qlcnic_83xx_napi_disable(struct qlcnic_adapter *);
  318. int qlcnic_83xx_config_led(struct qlcnic_adapter *, u32, u32);
  319. void qlcnic_ind_wr(struct qlcnic_adapter *, u32, u32);
  320. int qlcnic_ind_rd(struct qlcnic_adapter *, u32);
  321. int qlcnic_83xx_create_rx_ctx(struct qlcnic_adapter *);
  322. int qlcnic_83xx_create_tx_ctx(struct qlcnic_adapter *,
  323. struct qlcnic_host_tx_ring *, int);
  324. int qlcnic_83xx_get_nic_info(struct qlcnic_adapter *, struct qlcnic_info *, u8);
  325. int qlcnic_83xx_setup_link_event(struct qlcnic_adapter *, int);
  326. void qlcnic_83xx_process_rcv_ring_diag(struct qlcnic_host_sds_ring *);
  327. int qlcnic_83xx_config_intrpt(struct qlcnic_adapter *, bool);
  328. int qlcnic_83xx_sre_macaddr_change(struct qlcnic_adapter *, u8 *, __le16, u8);
  329. int qlcnic_83xx_get_mac_address(struct qlcnic_adapter *, u8 *);
  330. void qlcnic_83xx_configure_mac(struct qlcnic_adapter *, u8 *, u8,
  331. struct qlcnic_cmd_args *);
  332. int qlcnic_83xx_alloc_mbx_args(struct qlcnic_cmd_args *,
  333. struct qlcnic_adapter *, u32);
  334. void qlcnic_free_mbx_args(struct qlcnic_cmd_args *);
  335. void qlcnic_set_npar_data(struct qlcnic_adapter *, const struct qlcnic_info *,
  336. struct qlcnic_info *);
  337. void qlcnic_83xx_config_intr_coal(struct qlcnic_adapter *);
  338. irqreturn_t qlcnic_83xx_handle_aen(int, void *);
  339. int qlcnic_83xx_get_port_info(struct qlcnic_adapter *);
  340. void qlcnic_83xx_enable_mbx_intrpt(struct qlcnic_adapter *);
  341. irqreturn_t qlcnic_83xx_clear_legacy_intr(struct qlcnic_adapter *);
  342. irqreturn_t qlcnic_83xx_intr(int, void *);
  343. irqreturn_t qlcnic_83xx_tmp_intr(int, void *);
  344. void qlcnic_83xx_enable_intr(struct qlcnic_adapter *,
  345. struct qlcnic_host_sds_ring *);
  346. void qlcnic_83xx_disable_intr(struct qlcnic_adapter *,
  347. struct qlcnic_host_sds_ring *);
  348. void qlcnic_83xx_check_vf(struct qlcnic_adapter *,
  349. const struct pci_device_id *);
  350. void qlcnic_83xx_process_aen(struct qlcnic_adapter *);
  351. int qlcnic_83xx_get_port_config(struct qlcnic_adapter *);
  352. int qlcnic_83xx_set_port_config(struct qlcnic_adapter *);
  353. int qlcnic_enable_eswitch(struct qlcnic_adapter *, u8, u8);
  354. int qlcnic_83xx_get_nic_configuration(struct qlcnic_adapter *);
  355. int qlcnic_83xx_config_default_opmode(struct qlcnic_adapter *);
  356. int qlcnic_83xx_setup_mbx_intr(struct qlcnic_adapter *);
  357. void qlcnic_83xx_free_mbx_intr(struct qlcnic_adapter *);
  358. void qlcnic_83xx_register_map(struct qlcnic_hardware_context *);
  359. void qlcnic_83xx_idc_aen_work(struct work_struct *);
  360. void qlcnic_83xx_config_ipaddr(struct qlcnic_adapter *, __be32, int);
  361. int qlcnic_83xx_erase_flash_sector(struct qlcnic_adapter *, u32);
  362. int qlcnic_83xx_flash_bulk_write(struct qlcnic_adapter *, u32, u32 *, int);
  363. int qlcnic_83xx_flash_write32(struct qlcnic_adapter *, u32, u32 *);
  364. int qlcnic_83xx_lock_flash(struct qlcnic_adapter *);
  365. void qlcnic_83xx_unlock_flash(struct qlcnic_adapter *);
  366. int qlcnic_83xx_save_flash_status(struct qlcnic_adapter *);
  367. int qlcnic_83xx_restore_flash_status(struct qlcnic_adapter *, int);
  368. int qlcnic_83xx_read_flash_mfg_id(struct qlcnic_adapter *);
  369. int qlcnic_83xx_read_flash_descriptor_table(struct qlcnic_adapter *);
  370. int qlcnic_83xx_flash_read32(struct qlcnic_adapter *, u32, u8 *, int);
  371. int qlcnic_83xx_lockless_flash_read32(struct qlcnic_adapter *,
  372. u32, u8 *, int);
  373. int qlcnic_83xx_init(struct qlcnic_adapter *);
  374. int qlcnic_83xx_idc_ready_state_entry(struct qlcnic_adapter *);
  375. int qlcnic_83xx_check_hw_status(struct qlcnic_adapter *p_dev);
  376. void qlcnic_83xx_idc_poll_dev_state(struct work_struct *);
  377. int qlcnic_83xx_get_reset_instruction_template(struct qlcnic_adapter *);
  378. void qlcnic_83xx_idc_exit(struct qlcnic_adapter *);
  379. void qlcnic_83xx_idc_request_reset(struct qlcnic_adapter *, u32);
  380. int qlcnic_83xx_lock_driver(struct qlcnic_adapter *);
  381. void qlcnic_83xx_unlock_driver(struct qlcnic_adapter *);
  382. int qlcnic_83xx_set_default_offload_settings(struct qlcnic_adapter *);
  383. int qlcnic_83xx_ms_mem_write128(struct qlcnic_adapter *, u64, u32 *, u32);
  384. int qlcnic_83xx_idc_vnic_pf_entry(struct qlcnic_adapter *);
  385. int qlcnic_83xx_enable_vnic_mode(struct qlcnic_adapter *, int);
  386. int qlcnic_83xx_disable_vnic_mode(struct qlcnic_adapter *, int);
  387. int qlcnic_83xx_config_vnic_opmode(struct qlcnic_adapter *);
  388. int qlcnic_83xx_get_vnic_vport_info(struct qlcnic_adapter *,
  389. struct qlcnic_info *, u8);
  390. int qlcnic_83xx_get_vnic_pf_info(struct qlcnic_adapter *, struct qlcnic_info *);
  391. void qlcnic_83xx_get_minidump_template(struct qlcnic_adapter *);
  392. void qlcnic_83xx_get_stats(struct qlcnic_adapter *adapter, u64 *data);
  393. int qlcnic_83xx_get_settings(struct qlcnic_adapter *);
  394. int qlcnic_83xx_set_settings(struct qlcnic_adapter *, struct ethtool_cmd *);
  395. void qlcnic_83xx_get_pauseparam(struct qlcnic_adapter *,
  396. struct ethtool_pauseparam *);
  397. int qlcnic_83xx_set_pauseparam(struct qlcnic_adapter *,
  398. struct ethtool_pauseparam *);
  399. int qlcnic_83xx_test_link(struct qlcnic_adapter *);
  400. int qlcnic_83xx_reg_test(struct qlcnic_adapter *);
  401. int qlcnic_83xx_get_regs_len(struct qlcnic_adapter *);
  402. int qlcnic_83xx_get_registers(struct qlcnic_adapter *, u32 *);
  403. int qlcnic_83xx_loopback_test(struct net_device *, u8);
  404. int qlcnic_83xx_interrupt_test(struct net_device *);
  405. int qlcnic_83xx_flash_test(struct qlcnic_adapter *);
  406. #endif