aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/qla4xxx/ql4_fw.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/qla4xxx/ql4_fw.h')
-rw-r--r--drivers/scsi/qla4xxx/ql4_fw.h46
1 files changed, 39 insertions, 7 deletions
diff --git a/drivers/scsi/qla4xxx/ql4_fw.h b/drivers/scsi/qla4xxx/ql4_fw.h
index 9cd7a608df38..855226e08665 100644
--- a/drivers/scsi/qla4xxx/ql4_fw.h
+++ b/drivers/scsi/qla4xxx/ql4_fw.h
@@ -215,6 +215,7 @@ union external_hw_config_reg {
215/* Mailbox command definitions */ 215/* Mailbox command definitions */
216#define MBOX_CMD_ABOUT_FW 0x0009 216#define MBOX_CMD_ABOUT_FW 0x0009
217#define MBOX_CMD_PING 0x000B 217#define MBOX_CMD_PING 0x000B
218#define MBOX_CMD_ABORT_TASK 0x0015
218#define MBOX_CMD_LUN_RESET 0x0016 219#define MBOX_CMD_LUN_RESET 0x0016
219#define MBOX_CMD_TARGET_WARM_RESET 0x0017 220#define MBOX_CMD_TARGET_WARM_RESET 0x0017
220#define MBOX_CMD_GET_MANAGEMENT_DATA 0x001E 221#define MBOX_CMD_GET_MANAGEMENT_DATA 0x001E
@@ -258,13 +259,15 @@ union external_hw_config_reg {
258/* Mailbox 1 */ 259/* Mailbox 1 */
259#define FW_STATE_READY 0x0000 260#define FW_STATE_READY 0x0000
260#define FW_STATE_CONFIG_WAIT 0x0001 261#define FW_STATE_CONFIG_WAIT 0x0001
261#define FW_STATE_WAIT_LOGIN 0x0002 262#define FW_STATE_WAIT_AUTOCONNECT 0x0002
262#define FW_STATE_ERROR 0x0004 263#define FW_STATE_ERROR 0x0004
263#define FW_STATE_DHCP_IN_PROGRESS 0x0008 264#define FW_STATE_CONFIGURING_IP 0x0008
264 265
265/* Mailbox 3 */ 266/* Mailbox 3 */
266#define FW_ADDSTATE_OPTICAL_MEDIA 0x0001 267#define FW_ADDSTATE_OPTICAL_MEDIA 0x0001
267#define FW_ADDSTATE_DHCP_ENABLED 0x0002 268#define FW_ADDSTATE_DHCPv4_ENABLED 0x0002
269#define FW_ADDSTATE_DHCPv4_LEASE_ACQUIRED 0x0004
270#define FW_ADDSTATE_DHCPv4_LEASE_EXPIRED 0x0008
268#define FW_ADDSTATE_LINK_UP 0x0010 271#define FW_ADDSTATE_LINK_UP 0x0010
269#define FW_ADDSTATE_ISNS_SVC_ENABLED 0x0020 272#define FW_ADDSTATE_ISNS_SVC_ENABLED 0x0020
270#define MBOX_CMD_GET_DATABASE_ENTRY_DEFAULTS 0x006B 273#define MBOX_CMD_GET_DATABASE_ENTRY_DEFAULTS 0x006B
@@ -320,6 +323,8 @@ union external_hw_config_reg {
320/* Host Adapter Initialization Control Block (from host) */ 323/* Host Adapter Initialization Control Block (from host) */
321struct addr_ctrl_blk { 324struct addr_ctrl_blk {
322 uint8_t version; /* 00 */ 325 uint8_t version; /* 00 */
326#define IFCB_VER_MIN 0x01
327#define IFCB_VER_MAX 0x02
323 uint8_t control; /* 01 */ 328 uint8_t control; /* 01 */
324 329
325 uint16_t fw_options; /* 02-03 */ 330 uint16_t fw_options; /* 02-03 */
@@ -351,11 +356,16 @@ struct addr_ctrl_blk {
351 uint16_t iscsi_opts; /* 30-31 */ 356 uint16_t iscsi_opts; /* 30-31 */
352 uint16_t ipv4_tcp_opts; /* 32-33 */ 357 uint16_t ipv4_tcp_opts; /* 32-33 */
353 uint16_t ipv4_ip_opts; /* 34-35 */ 358 uint16_t ipv4_ip_opts; /* 34-35 */
359#define IPOPT_IPv4_PROTOCOL_ENABLE 0x8000
354 360
355 uint16_t iscsi_max_pdu_size; /* 36-37 */ 361 uint16_t iscsi_max_pdu_size; /* 36-37 */
356 uint8_t ipv4_tos; /* 38 */ 362 uint8_t ipv4_tos; /* 38 */
357 uint8_t ipv4_ttl; /* 39 */ 363 uint8_t ipv4_ttl; /* 39 */
358 uint8_t acb_version; /* 3A */ 364 uint8_t acb_version; /* 3A */
365#define ACB_NOT_SUPPORTED 0x00
366#define ACB_SUPPORTED 0x02 /* Capable of ACB Version 2
367 Features */
368
359 uint8_t res2; /* 3B */ 369 uint8_t res2; /* 3B */
360 uint16_t def_timeout; /* 3C-3D */ 370 uint16_t def_timeout; /* 3C-3D */
361 uint16_t iscsi_fburst_len; /* 3E-3F */ 371 uint16_t iscsi_fburst_len; /* 3E-3F */
@@ -397,16 +407,35 @@ struct addr_ctrl_blk {
397 uint32_t cookie; /* 200-203 */ 407 uint32_t cookie; /* 200-203 */
398 uint16_t ipv6_port; /* 204-205 */ 408 uint16_t ipv6_port; /* 204-205 */
399 uint16_t ipv6_opts; /* 206-207 */ 409 uint16_t ipv6_opts; /* 206-207 */
410#define IPV6_OPT_IPV6_PROTOCOL_ENABLE 0x8000
411
400 uint16_t ipv6_addtl_opts; /* 208-209 */ 412 uint16_t ipv6_addtl_opts; /* 208-209 */
413#define IPV6_ADDOPT_NEIGHBOR_DISCOVERY_ADDR_ENABLE 0x0002 /* Pri ACB
414 Only */
415#define IPV6_ADDOPT_AUTOCONFIG_LINK_LOCAL_ADDR 0x0001
416
401 uint16_t ipv6_tcp_opts; /* 20A-20B */ 417 uint16_t ipv6_tcp_opts; /* 20A-20B */
402 uint8_t ipv6_tcp_wsf; /* 20C */ 418 uint8_t ipv6_tcp_wsf; /* 20C */
403 uint16_t ipv6_flow_lbl; /* 20D-20F */ 419 uint16_t ipv6_flow_lbl; /* 20D-20F */
404 uint8_t ipv6_gw_addr[16]; /* 210-21F */ 420 uint8_t ipv6_dflt_rtr_addr[16]; /* 210-21F */
405 uint16_t ipv6_vlan_tag; /* 220-221 */ 421 uint16_t ipv6_vlan_tag; /* 220-221 */
406 uint8_t ipv6_lnk_lcl_addr_state;/* 222 */ 422 uint8_t ipv6_lnk_lcl_addr_state;/* 222 */
407 uint8_t ipv6_addr0_state; /* 223 */ 423 uint8_t ipv6_addr0_state; /* 223 */
408 uint8_t ipv6_addr1_state; /* 224 */ 424 uint8_t ipv6_addr1_state; /* 224 */
409 uint8_t ipv6_gw_state; /* 225 */ 425#define IP_ADDRSTATE_UNCONFIGURED 0
426#define IP_ADDRSTATE_INVALID 1
427#define IP_ADDRSTATE_ACQUIRING 2
428#define IP_ADDRSTATE_TENTATIVE 3
429#define IP_ADDRSTATE_DEPRICATED 4
430#define IP_ADDRSTATE_PREFERRED 5
431#define IP_ADDRSTATE_DISABLING 6
432
433 uint8_t ipv6_dflt_rtr_state; /* 225 */
434#define IPV6_RTRSTATE_UNKNOWN 0
435#define IPV6_RTRSTATE_MANUAL 1
436#define IPV6_RTRSTATE_ADVERTISED 3
437#define IPV6_RTRSTATE_STALE 4
438
410 uint8_t ipv6_traffic_class; /* 226 */ 439 uint8_t ipv6_traffic_class; /* 226 */
411 uint8_t ipv6_hop_limit; /* 227 */ 440 uint8_t ipv6_hop_limit; /* 227 */
412 uint8_t ipv6_if_id[8]; /* 228-22F */ 441 uint8_t ipv6_if_id[8]; /* 228-22F */
@@ -424,7 +453,7 @@ struct addr_ctrl_blk {
424 453
425struct init_fw_ctrl_blk { 454struct init_fw_ctrl_blk {
426 struct addr_ctrl_blk pri; 455 struct addr_ctrl_blk pri;
427 struct addr_ctrl_blk sec; 456/* struct addr_ctrl_blk sec;*/
428}; 457};
429 458
430/*************************************************************************/ 459/*************************************************************************/
@@ -433,6 +462,9 @@ struct dev_db_entry {
433 uint16_t options; /* 00-01 */ 462 uint16_t options; /* 00-01 */
434#define DDB_OPT_DISC_SESSION 0x10 463#define DDB_OPT_DISC_SESSION 0x10
435#define DDB_OPT_TARGET 0x02 /* device is a target */ 464#define DDB_OPT_TARGET 0x02 /* device is a target */
465#define DDB_OPT_IPV6_DEVICE 0x100
466#define DDB_OPT_IPV6_NULL_LINK_LOCAL 0x800 /* post connection */
467#define DDB_OPT_IPV6_FW_DEFINED_LINK_LOCAL 0x800 /* pre connection */
436 468
437 uint16_t exec_throttle; /* 02-03 */ 469 uint16_t exec_throttle; /* 02-03 */
438 uint16_t exec_count; /* 04-05 */ 470 uint16_t exec_count; /* 04-05 */
@@ -468,7 +500,7 @@ struct dev_db_entry {
468 * pointer to a string so we 500 * pointer to a string so we
469 * don't have to reserve soooo 501 * don't have to reserve soooo
470 * much RAM */ 502 * much RAM */
471 uint8_t ipv6_addr[0x10];/* 1A0-1AF */ 503 uint8_t link_local_ipv6_addr[0x10]; /* 1A0-1AF */
472 uint8_t res5[0x10]; /* 1B0-1BF */ 504 uint8_t res5[0x10]; /* 1B0-1BF */
473 uint16_t ddb_link; /* 1C0-1C1 */ 505 uint16_t ddb_link; /* 1C0-1C1 */
474 uint16_t chap_tbl_idx; /* 1C2-1C3 */ 506 uint16_t chap_tbl_idx; /* 1C2-1C3 */