diff options
author | Michael Chan <mchan@broadcom.com> | 2009-10-10 09:46:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-10-12 02:30:16 -0400 |
commit | e251306556d30c9c678feca60204acaaa0784cbd (patch) | |
tree | c096958b132085d77a744bfb7facb7755846df64 /drivers/net/bnx2x_hsi.h | |
parent | 86b53606ebec06b16be81c30fabdf8decc2be6b2 (diff) |
cnic: Add bnx2x data structures.
Add hardware and software structures for bnx2x devices.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Acked-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bnx2x_hsi.h')
-rw-r--r-- | drivers/net/bnx2x_hsi.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h index 8e2261fad485..994743d892ea 100644 --- a/drivers/net/bnx2x_hsi.h +++ b/drivers/net/bnx2x_hsi.h | |||
@@ -7,6 +7,20 @@ | |||
7 | * the Free Software Foundation. | 7 | * the Free Software Foundation. |
8 | */ | 8 | */ |
9 | 9 | ||
10 | struct license_key { | ||
11 | u32 reserved[6]; | ||
12 | |||
13 | #if defined(__BIG_ENDIAN) | ||
14 | u16 max_iscsi_init_conn; | ||
15 | u16 max_iscsi_trgt_conn; | ||
16 | #elif defined(__LITTLE_ENDIAN) | ||
17 | u16 max_iscsi_trgt_conn; | ||
18 | u16 max_iscsi_init_conn; | ||
19 | #endif | ||
20 | |||
21 | u32 reserved_a[6]; | ||
22 | }; | ||
23 | |||
10 | 24 | ||
11 | #define PORT_0 0 | 25 | #define PORT_0 0 |
12 | #define PORT_1 1 | 26 | #define PORT_1 1 |
@@ -881,7 +895,7 @@ struct shmem_region { /* SharedMem Offset (size) */ | |||
881 | 895 | ||
882 | struct shm_dev_info dev_info; /* 0x8 (0x438) */ | 896 | struct shm_dev_info dev_info; /* 0x8 (0x438) */ |
883 | 897 | ||
884 | u8 reserved[52*PORT_MAX]; | 898 | struct license_key drv_lic_key[PORT_MAX]; /* 0x440 (52*2=0x68) */ |
885 | 899 | ||
886 | /* FW information (for internal FW use) */ | 900 | /* FW information (for internal FW use) */ |
887 | u32 fw_info_fio_offset; /* 0x4a8 (0x4) */ | 901 | u32 fw_info_fio_offset; /* 0x4a8 (0x4) */ |