xref: /titanic_52/usr/src/uts/common/io/bnxe/577xx/hsi/hw/include/general_atten_bits.h (revision d14abf155341d55053c76eeec58b787a456b753b)
1 #define RESERVED_GENERAL_ATTENTION_BIT_0        0
2 
3 #define EVEREST_GEN_ATTN_IN_USE_MASK 		0x7ffe0
4 #define EVEREST_LATCHED_ATTN_IN_USE_MASK 	0xffe00000
5 
6 #define RESERVED_GENERAL_ATTENTION_BIT_6        6
7 #define RESERVED_GENERAL_ATTENTION_BIT_7        7
8 #define RESERVED_GENERAL_ATTENTION_BIT_8        8
9 #define RESERVED_GENERAL_ATTENTION_BIT_9        9
10 #define RESERVED_GENERAL_ATTENTION_BIT_10       10
11 #define RESERVED_GENERAL_ATTENTION_BIT_11       11
12 #define RESERVED_GENERAL_ATTENTION_BIT_12       12
13 #define RESERVED_GENERAL_ATTENTION_BIT_13       13
14 #define RESERVED_GENERAL_ATTENTION_BIT_14       14
15 #define RESERVED_GENERAL_ATTENTION_BIT_15       15
16 #define RESERVED_GENERAL_ATTENTION_BIT_16       16
17 #define RESERVED_GENERAL_ATTENTION_BIT_17       17
18 #define RESERVED_GENERAL_ATTENTION_BIT_18       18
19 #define RESERVED_GENERAL_ATTENTION_BIT_19       19
20 #define RESERVED_GENERAL_ATTENTION_BIT_20       20
21 #define RESERVED_GENERAL_ATTENTION_BIT_21     	21
22 
23 /* storm asserts attention bits */
24 #define TSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_7
25 #define USTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_8
26 #define CSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_9
27 #define XSTORM_FATAL_ASSERT_ATTENTION_BIT     RESERVED_GENERAL_ATTENTION_BIT_10
28 
29 /* mcp error attention bit */
30 #define MCP_FATAL_ASSERT_ATTENTION_BIT        RESERVED_GENERAL_ATTENTION_BIT_11
31 
32 /*E1H NIG status sync attention mapped to group 4-7*/
33 #define LINK_SYNC_ATTENTION_BIT_FUNC_0      RESERVED_GENERAL_ATTENTION_BIT_12
34 #define LINK_SYNC_ATTENTION_BIT_FUNC_1      RESERVED_GENERAL_ATTENTION_BIT_13
35 #define LINK_SYNC_ATTENTION_BIT_FUNC_2      RESERVED_GENERAL_ATTENTION_BIT_14
36 #define LINK_SYNC_ATTENTION_BIT_FUNC_3      RESERVED_GENERAL_ATTENTION_BIT_15
37 #define LINK_SYNC_ATTENTION_BIT_FUNC_4      RESERVED_GENERAL_ATTENTION_BIT_16
38 #define LINK_SYNC_ATTENTION_BIT_FUNC_5      RESERVED_GENERAL_ATTENTION_BIT_17
39 #define LINK_SYNC_ATTENTION_BIT_FUNC_6      RESERVED_GENERAL_ATTENTION_BIT_18
40 #define LINK_SYNC_ATTENTION_BIT_FUNC_7      RESERVED_GENERAL_ATTENTION_BIT_19
41 
42 /* Used For Error Recovery: changing this will require more changes in code that assume
43  * error recovery uses general attn bit20 ! */
44 #define ERROR_RECOVERY_ATTENTION_BIT		RESERVED_GENERAL_ATTENTION_BIT_20
45 #define RESERVED_ATTENTION_BIT				RESERVED_GENERAL_ATTENTION_BIT_21
46 
47 #define LATCHED_ATTN_RBCR               	23
48 #define LATCHED_ATTN_RBCT               	24
49 #define LATCHED_ATTN_RBCN               	25
50 #define LATCHED_ATTN_RBCU               	26
51 #define LATCHED_ATTN_RBCP               	27
52 #define LATCHED_ATTN_TIMEOUT_GRC        	28
53 #define LATCHED_ATTN_RSVD_GRC           	29
54 #define LATCHED_ATTN_ROM_PARITY_MCP     	30
55 #define LATCHED_ATTN_UM_RX_PARITY_MCP   	31
56 #define LATCHED_ATTN_UM_TX_PARITY_MCP   	32
57 #define LATCHED_ATTN_SCPAD_PARITY_MCP  		33
58 
59 #define GENERAL_ATTEN_WORD(atten_name)         ((94 + atten_name) / 32)
60 #define GENERAL_ATTEN_OFFSET(atten_name)       (1UL << ((94 + atten_name) % 32))
61