aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2x_hsi.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2x_hsi.h')
-rw-r--r--drivers/net/bnx2x_hsi.h178
1 files changed, 89 insertions, 89 deletions
diff --git a/drivers/net/bnx2x_hsi.h b/drivers/net/bnx2x_hsi.h
index 88b2aa3180ed..c779999444c1 100644
--- a/drivers/net/bnx2x_hsi.h
+++ b/drivers/net/bnx2x_hsi.h
@@ -1201,12 +1201,12 @@ struct host_func_stats {
1201 * attention bits 1201 * attention bits
1202 */ 1202 */
1203struct atten_def_status_block { 1203struct atten_def_status_block {
1204 u32 attn_bits; 1204 __le32 attn_bits;
1205 u32 attn_bits_ack; 1205 __le32 attn_bits_ack;
1206 u8 status_block_id; 1206 u8 status_block_id;
1207 u8 reserved0; 1207 u8 reserved0;
1208 u16 attn_bits_index; 1208 __le16 attn_bits_index;
1209 u32 reserved1; 1209 __le32 reserved1;
1210}; 1210};
1211 1211
1212 1212
@@ -1279,7 +1279,7 @@ struct igu_ack_register {
1279 * Parser parsing flags field 1279 * Parser parsing flags field
1280 */ 1280 */
1281struct parsing_flags { 1281struct parsing_flags {
1282 u16 flags; 1282 __le16 flags;
1283#define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE (0x1<<0) 1283#define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE (0x1<<0)
1284#define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE_SHIFT 0 1284#define PARSING_FLAGS_ETHERNET_ADDRESS_TYPE_SHIFT 0
1285#define PARSING_FLAGS_VLAN (0x1<<1) 1285#define PARSING_FLAGS_VLAN (0x1<<1)
@@ -1310,8 +1310,8 @@ struct parsing_flags {
1310 1310
1311 1311
1312struct regpair { 1312struct regpair {
1313 u32 lo; 1313 __le32 lo;
1314 u32 hi; 1314 __le32 hi;
1315}; 1315};
1316 1316
1317 1317
@@ -1470,16 +1470,16 @@ struct ustorm_eth_st_context_config {
1470 * The eth Rx Buffer Descriptor 1470 * The eth Rx Buffer Descriptor
1471 */ 1471 */
1472struct eth_rx_bd { 1472struct eth_rx_bd {
1473 u32 addr_lo; 1473 __le32 addr_lo;
1474 u32 addr_hi; 1474 __le32 addr_hi;
1475}; 1475};
1476 1476
1477/* 1477/*
1478 * The eth Rx SGE Descriptor 1478 * The eth Rx SGE Descriptor
1479 */ 1479 */
1480struct eth_rx_sge { 1480struct eth_rx_sge {
1481 u32 addr_lo; 1481 __le32 addr_lo;
1482 u32 addr_hi; 1482 __le32 addr_hi;
1483}; 1483};
1484 1484
1485/* 1485/*
@@ -1882,11 +1882,11 @@ struct eth_tx_bd_flags {
1882 * The eth Tx Buffer Descriptor 1882 * The eth Tx Buffer Descriptor
1883 */ 1883 */
1884struct eth_tx_bd { 1884struct eth_tx_bd {
1885 u32 addr_lo; 1885 __le32 addr_lo;
1886 u32 addr_hi; 1886 __le32 addr_hi;
1887 u16 nbd; 1887 __le16 nbd;
1888 u16 nbytes; 1888 __le16 nbytes;
1889 u16 vlan; 1889 __le16 vlan;
1890 struct eth_tx_bd_flags bd_flags; 1890 struct eth_tx_bd_flags bd_flags;
1891 u8 general_data; 1891 u8 general_data;
1892#define ETH_TX_BD_HDR_NBDS (0x3F<<0) 1892#define ETH_TX_BD_HDR_NBDS (0x3F<<0)
@@ -1929,11 +1929,11 @@ struct eth_tx_parse_bd {
1929#define ETH_TX_PARSE_BD_CWR_FLG_SHIFT 7 1929#define ETH_TX_PARSE_BD_CWR_FLG_SHIFT 7
1930 u8 ip_hlen; 1930 u8 ip_hlen;
1931 s8 cs_offset; 1931 s8 cs_offset;
1932 u16 total_hlen; 1932 __le16 total_hlen;
1933 u16 lso_mss; 1933 __le16 lso_mss;
1934 u16 tcp_pseudo_csum; 1934 __le16 tcp_pseudo_csum;
1935 u16 ip_id; 1935 __le16 ip_id;
1936 u32 tcp_send_seq; 1936 __le32 tcp_send_seq;
1937}; 1937};
1938 1938
1939/* 1939/*
@@ -2049,44 +2049,44 @@ struct eth_tx_doorbell {
2049 * ustorm status block 2049 * ustorm status block
2050 */ 2050 */
2051struct ustorm_def_status_block { 2051struct ustorm_def_status_block {
2052 u16 index_values[HC_USTORM_DEF_SB_NUM_INDICES]; 2052 __le16 index_values[HC_USTORM_DEF_SB_NUM_INDICES];
2053 u16 status_block_index; 2053 __le16 status_block_index;
2054 u8 func; 2054 u8 func;
2055 u8 status_block_id; 2055 u8 status_block_id;
2056 u32 __flags; 2056 __le32 __flags;
2057}; 2057};
2058 2058
2059/* 2059/*
2060 * cstorm status block 2060 * cstorm status block
2061 */ 2061 */
2062struct cstorm_def_status_block { 2062struct cstorm_def_status_block {
2063 u16 index_values[HC_CSTORM_DEF_SB_NUM_INDICES]; 2063 __le16 index_values[HC_CSTORM_DEF_SB_NUM_INDICES];
2064 u16 status_block_index; 2064 __le16 status_block_index;
2065 u8 func; 2065 u8 func;
2066 u8 status_block_id; 2066 u8 status_block_id;
2067 u32 __flags; 2067 __le32 __flags;
2068}; 2068};
2069 2069
2070/* 2070/*
2071 * xstorm status block 2071 * xstorm status block
2072 */ 2072 */
2073struct xstorm_def_status_block { 2073struct xstorm_def_status_block {
2074 u16 index_values[HC_XSTORM_DEF_SB_NUM_INDICES]; 2074 __le16 index_values[HC_XSTORM_DEF_SB_NUM_INDICES];
2075 u16 status_block_index; 2075 __le16 status_block_index;
2076 u8 func; 2076 u8 func;
2077 u8 status_block_id; 2077 u8 status_block_id;
2078 u32 __flags; 2078 __le32 __flags;
2079}; 2079};
2080 2080
2081/* 2081/*
2082 * tstorm status block 2082 * tstorm status block
2083 */ 2083 */
2084struct tstorm_def_status_block { 2084struct tstorm_def_status_block {
2085 u16 index_values[HC_TSTORM_DEF_SB_NUM_INDICES]; 2085 __le16 index_values[HC_TSTORM_DEF_SB_NUM_INDICES];
2086 u16 status_block_index; 2086 __le16 status_block_index;
2087 u8 func; 2087 u8 func;
2088 u8 status_block_id; 2088 u8 status_block_id;
2089 u32 __flags; 2089 __le32 __flags;
2090}; 2090};
2091 2091
2092/* 2092/*
@@ -2105,22 +2105,22 @@ struct host_def_status_block {
2105 * ustorm status block 2105 * ustorm status block
2106 */ 2106 */
2107struct ustorm_status_block { 2107struct ustorm_status_block {
2108 u16 index_values[HC_USTORM_SB_NUM_INDICES]; 2108 __le16 index_values[HC_USTORM_SB_NUM_INDICES];
2109 u16 status_block_index; 2109 __le16 status_block_index;
2110 u8 func; 2110 u8 func;
2111 u8 status_block_id; 2111 u8 status_block_id;
2112 u32 __flags; 2112 __le32 __flags;
2113}; 2113};
2114 2114
2115/* 2115/*
2116 * cstorm status block 2116 * cstorm status block
2117 */ 2117 */
2118struct cstorm_status_block { 2118struct cstorm_status_block {
2119 u16 index_values[HC_CSTORM_SB_NUM_INDICES]; 2119 __le16 index_values[HC_CSTORM_SB_NUM_INDICES];
2120 u16 status_block_index; 2120 __le16 status_block_index;
2121 u8 func; 2121 u8 func;
2122 u8 status_block_id; 2122 u8 status_block_id;
2123 u32 __flags; 2123 __le32 __flags;
2124}; 2124};
2125 2125
2126/* 2126/*
@@ -2186,12 +2186,12 @@ struct eth_fast_path_rx_cqe {
2186#define ETH_FAST_PATH_RX_CQE_L4_XSUM_NO_VALIDATION_FLG_SHIFT 7 2186#define ETH_FAST_PATH_RX_CQE_L4_XSUM_NO_VALIDATION_FLG_SHIFT 7
2187 u8 placement_offset; 2187 u8 placement_offset;
2188 u8 queue_index; 2188 u8 queue_index;
2189 u32 rss_hash_result; 2189 __le32 rss_hash_result;
2190 u16 vlan_tag; 2190 __le16 vlan_tag;
2191 u16 pkt_len; 2191 __le16 pkt_len;
2192 u16 len_on_bd; 2192 __le16 len_on_bd;
2193 struct parsing_flags pars_flags; 2193 struct parsing_flags pars_flags;
2194 u16 sgl[8]; 2194 __le16 sgl[8];
2195}; 2195};
2196 2196
2197 2197
@@ -2225,8 +2225,8 @@ struct eth_query_ramrod_data {
2225 * Place holder for ramrods protocol specific data 2225 * Place holder for ramrods protocol specific data
2226 */ 2226 */
2227struct ramrod_data { 2227struct ramrod_data {
2228 u32 data_lo; 2228 __le32 data_lo;
2229 u32 data_hi; 2229 __le32 data_hi;
2230}; 2230};
2231 2231
2232/* 2232/*
@@ -2257,23 +2257,23 @@ struct common_ramrod_eth_rx_cqe {
2257#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x7F<<1) 2257#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0 (0x7F<<1)
2258#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 1 2258#define COMMON_RAMROD_ETH_RX_CQE_RESERVED0_SHIFT 1
2259 u8 conn_type; 2259 u8 conn_type;
2260 u16 reserved1; 2260 __le16 reserved1;
2261 u32 conn_and_cmd_data; 2261 __le32 conn_and_cmd_data;
2262#define COMMON_RAMROD_ETH_RX_CQE_CID (0xFFFFFF<<0) 2262#define COMMON_RAMROD_ETH_RX_CQE_CID (0xFFFFFF<<0)
2263#define COMMON_RAMROD_ETH_RX_CQE_CID_SHIFT 0 2263#define COMMON_RAMROD_ETH_RX_CQE_CID_SHIFT 0
2264#define COMMON_RAMROD_ETH_RX_CQE_CMD_ID (0xFF<<24) 2264#define COMMON_RAMROD_ETH_RX_CQE_CMD_ID (0xFF<<24)
2265#define COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT 24 2265#define COMMON_RAMROD_ETH_RX_CQE_CMD_ID_SHIFT 24
2266 struct ramrod_data protocol_data; 2266 struct ramrod_data protocol_data;
2267 u32 reserved2[4]; 2267 __le32 reserved2[4];
2268}; 2268};
2269 2269
2270/* 2270/*
2271 * Rx Last CQE in page (in ETH) 2271 * Rx Last CQE in page (in ETH)
2272 */ 2272 */
2273struct eth_rx_cqe_next_page { 2273struct eth_rx_cqe_next_page {
2274 u32 addr_lo; 2274 __le32 addr_lo;
2275 u32 addr_hi; 2275 __le32 addr_hi;
2276 u32 reserved[6]; 2276 __le32 reserved[6];
2277}; 2277};
2278 2278
2279/* 2279/*
@@ -2290,17 +2290,17 @@ union eth_rx_cqe {
2290 * common data for all protocols 2290 * common data for all protocols
2291 */ 2291 */
2292struct spe_hdr { 2292struct spe_hdr {
2293 u32 conn_and_cmd_data; 2293 __le32 conn_and_cmd_data;
2294#define SPE_HDR_CID (0xFFFFFF<<0) 2294#define SPE_HDR_CID (0xFFFFFF<<0)
2295#define SPE_HDR_CID_SHIFT 0 2295#define SPE_HDR_CID_SHIFT 0
2296#define SPE_HDR_CMD_ID (0xFF<<24) 2296#define SPE_HDR_CMD_ID (0xFF<<24)
2297#define SPE_HDR_CMD_ID_SHIFT 24 2297#define SPE_HDR_CMD_ID_SHIFT 24
2298 u16 type; 2298 __le16 type;
2299#define SPE_HDR_CONN_TYPE (0xFF<<0) 2299#define SPE_HDR_CONN_TYPE (0xFF<<0)
2300#define SPE_HDR_CONN_TYPE_SHIFT 0 2300#define SPE_HDR_CONN_TYPE_SHIFT 0
2301#define SPE_HDR_COMMON_RAMROD (0xFF<<8) 2301#define SPE_HDR_COMMON_RAMROD (0xFF<<8)
2302#define SPE_HDR_COMMON_RAMROD_SHIFT 8 2302#define SPE_HDR_COMMON_RAMROD_SHIFT 8
2303 u16 reserved; 2303 __le16 reserved;
2304}; 2304};
2305 2305
2306/* 2306/*
@@ -2329,9 +2329,9 @@ struct eth_spe {
2329 * doorbell data in host memory 2329 * doorbell data in host memory
2330 */ 2330 */
2331struct eth_tx_db_data { 2331struct eth_tx_db_data {
2332 u32 packets_prod; 2332 __le32 packets_prod;
2333 u16 bds_prod; 2333 __le16 bds_prod;
2334 u16 reserved; 2334 __le16 reserved;
2335}; 2335};
2336 2336
2337 2337
@@ -2410,10 +2410,10 @@ struct mac_configuration_hdr {
2410 * MAC address in list for ramrod 2410 * MAC address in list for ramrod
2411 */ 2411 */
2412struct tstorm_cam_entry { 2412struct tstorm_cam_entry {
2413 u16 lsb_mac_addr; 2413 __le16 lsb_mac_addr;
2414 u16 middle_mac_addr; 2414 __le16 middle_mac_addr;
2415 u16 msb_mac_addr; 2415 __le16 msb_mac_addr;
2416 u16 flags; 2416 __le16 flags;
2417#define TSTORM_CAM_ENTRY_PORT_ID (0x1<<0) 2417#define TSTORM_CAM_ENTRY_PORT_ID (0x1<<0)
2418#define TSTORM_CAM_ENTRY_PORT_ID_SHIFT 0 2418#define TSTORM_CAM_ENTRY_PORT_ID_SHIFT 0
2419#define TSTORM_CAM_ENTRY_RSRVVAL0 (0x7<<1) 2419#define TSTORM_CAM_ENTRY_RSRVVAL0 (0x7<<1)
@@ -2462,11 +2462,11 @@ struct mac_configuration_cmd {
2462 * MAC address in list for ramrod 2462 * MAC address in list for ramrod
2463 */ 2463 */
2464struct mac_configuration_entry_e1h { 2464struct mac_configuration_entry_e1h {
2465 u16 lsb_mac_addr; 2465 __le16 lsb_mac_addr;
2466 u16 middle_mac_addr; 2466 __le16 middle_mac_addr;
2467 u16 msb_mac_addr; 2467 __le16 msb_mac_addr;
2468 u16 vlan_id; 2468 __le16 vlan_id;
2469 u16 e1hov_id; 2469 __le16 e1hov_id;
2470 u8 client_id; 2470 u8 client_id;
2471 u8 flags; 2471 u8 flags;
2472#define MAC_CONFIGURATION_ENTRY_E1H_PORT (0x1<<0) 2472#define MAC_CONFIGURATION_ENTRY_E1H_PORT (0x1<<0)
@@ -2721,16 +2721,16 @@ struct cmng_struct_per_port {
2721 */ 2721 */
2722struct xstorm_per_client_stats { 2722struct xstorm_per_client_stats {
2723 struct regpair total_sent_bytes; 2723 struct regpair total_sent_bytes;
2724 u32 total_sent_pkts; 2724 __le32 total_sent_pkts;
2725 u32 unicast_pkts_sent; 2725 __le32 unicast_pkts_sent;
2726 struct regpair unicast_bytes_sent; 2726 struct regpair unicast_bytes_sent;
2727 struct regpair multicast_bytes_sent; 2727 struct regpair multicast_bytes_sent;
2728 u32 multicast_pkts_sent; 2728 __le32 multicast_pkts_sent;
2729 u32 broadcast_pkts_sent; 2729 __le32 broadcast_pkts_sent;
2730 struct regpair broadcast_bytes_sent; 2730 struct regpair broadcast_bytes_sent;
2731 u16 stats_counter; 2731 __le16 stats_counter;
2732 u16 reserved0; 2732 __le16 reserved0;
2733 u32 reserved1; 2733 __le32 reserved1;
2734}; 2734};
2735 2735
2736 2736
@@ -2746,10 +2746,10 @@ struct xstorm_common_stats {
2746 * Protocol-common statistics collected by the Tstorm (per port) 2746 * Protocol-common statistics collected by the Tstorm (per port)
2747 */ 2747 */
2748struct tstorm_per_port_stats { 2748struct tstorm_per_port_stats {
2749 u32 mac_filter_discard; 2749 __le32 mac_filter_discard;
2750 u32 xxoverflow_discard; 2750 __le32 xxoverflow_discard;
2751 u32 brb_truncate_discard; 2751 __le32 brb_truncate_discard;
2752 u32 mac_discard; 2752 __le32 mac_discard;
2753}; 2753};
2754 2754
2755 2755
@@ -2762,17 +2762,17 @@ struct tstorm_per_client_stats {
2762 struct regpair rcv_broadcast_bytes; 2762 struct regpair rcv_broadcast_bytes;
2763 struct regpair rcv_multicast_bytes; 2763 struct regpair rcv_multicast_bytes;
2764 struct regpair rcv_error_bytes; 2764 struct regpair rcv_error_bytes;
2765 u32 checksum_discard; 2765 __le32 checksum_discard;
2766 u32 packets_too_big_discard; 2766 __le32 packets_too_big_discard;
2767 u32 total_rcv_pkts; 2767 __le32 total_rcv_pkts;
2768 u32 rcv_unicast_pkts; 2768 __le32 rcv_unicast_pkts;
2769 u32 rcv_broadcast_pkts; 2769 __le32 rcv_broadcast_pkts;
2770 u32 rcv_multicast_pkts; 2770 __le32 rcv_multicast_pkts;
2771 u32 no_buff_discard; 2771 __le32 no_buff_discard;
2772 u32 ttl0_discard; 2772 __le32 ttl0_discard;
2773 u16 stats_counter; 2773 __le16 stats_counter;
2774 u16 reserved0; 2774 __le16 reserved0;
2775 u32 reserved1; 2775 __le32 reserved1;
2776}; 2776};
2777 2777
2778/* 2778/*