1
2
3
4
5
6
7#ifndef __iwl_fw_api_alive_h__
8#define __iwl_fw_api_alive_h__
9
10
11#define ALIVE_RESP_UCODE_OK BIT(0)
12#define ALIVE_RESP_RFKILL BIT(1)
13
14
15enum {
16 FW_TYPE_HW = 0,
17 FW_TYPE_PROT = 1,
18 FW_TYPE_AP = 2,
19 FW_TYPE_WOWLAN = 3,
20 FW_TYPE_TIMING = 4,
21 FW_TYPE_WIPAN = 5
22};
23
24
25enum {
26 FW_SUBTYPE_FULL_FEATURE = 0,
27 FW_SUBTYPE_BOOTSRAP = 1,
28 FW_SUBTYPE_REDUCED = 2,
29 FW_SUBTYPE_ALIVE_ONLY = 3,
30 FW_SUBTYPE_WOWLAN = 4,
31 FW_SUBTYPE_AP_SUBTYPE = 5,
32 FW_SUBTYPE_WIPAN = 6,
33 FW_SUBTYPE_INITIALIZE = 9
34};
35
36#define IWL_ALIVE_STATUS_ERR 0xDEAD
37#define IWL_ALIVE_STATUS_OK 0xCAFE
38
39#define IWL_ALIVE_FLG_RFKILL BIT(0)
40
41struct iwl_lmac_debug_addrs {
42 __le32 error_event_table_ptr;
43 __le32 log_event_table_ptr;
44 __le32 cpu_register_ptr;
45 __le32 dbgm_config_ptr;
46 __le32 alive_counter_ptr;
47 __le32 scd_base_ptr;
48 __le32 st_fwrd_addr;
49 __le32 st_fwrd_size;
50} __packed;
51
52struct iwl_lmac_alive {
53 __le32 ucode_major;
54 __le32 ucode_minor;
55 u8 ver_subtype;
56 u8 ver_type;
57 u8 mac;
58 u8 opt;
59 __le32 timestamp;
60 struct iwl_lmac_debug_addrs dbg_ptrs;
61} __packed;
62
63struct iwl_umac_debug_addrs {
64 __le32 error_info_addr;
65 __le32 dbg_print_buff_addr;
66} __packed;
67
68struct iwl_umac_alive {
69 __le32 umac_major;
70 __le32 umac_minor;
71 struct iwl_umac_debug_addrs dbg_ptrs;
72} __packed;
73
74struct iwl_sku_id {
75 __le32 data[3];
76} __packed;
77
78struct iwl_alive_ntf_v3 {
79 __le16 status;
80 __le16 flags;
81 struct iwl_lmac_alive lmac_data;
82 struct iwl_umac_alive umac_data;
83} __packed;
84
85struct iwl_alive_ntf_v4 {
86 __le16 status;
87 __le16 flags;
88 struct iwl_lmac_alive lmac_data[2];
89 struct iwl_umac_alive umac_data;
90} __packed;
91
92struct iwl_alive_ntf_v5 {
93 __le16 status;
94 __le16 flags;
95 struct iwl_lmac_alive lmac_data[2];
96 struct iwl_umac_alive umac_data;
97 struct iwl_sku_id sku_id;
98} __packed;
99
100struct iwl_imr_alive_info {
101 __le64 base_addr;
102 __le32 size;
103 __le32 enabled;
104} __packed;
105
106struct iwl_alive_ntf_v6 {
107 __le16 status;
108 __le16 flags;
109 struct iwl_lmac_alive lmac_data[2];
110 struct iwl_umac_alive umac_data;
111 struct iwl_sku_id sku_id;
112 struct iwl_imr_alive_info imr;
113} __packed;
114
115
116
117
118
119
120
121
122enum iwl_extended_cfg_flags {
123 IWL_INIT_DEBUG_CFG,
124 IWL_INIT_NVM,
125 IWL_INIT_PHY,
126};
127
128
129
130
131
132
133struct iwl_init_extended_cfg_cmd {
134 __le32 init_flags;
135} __packed;
136
137
138
139
140
141
142
143
144struct iwl_radio_version_notif {
145 __le32 radio_flavor;
146 __le32 radio_step;
147 __le32 radio_dash;
148} __packed;
149
150enum iwl_card_state_flags {
151 CARD_ENABLED = 0x00,
152 HW_CARD_DISABLED = 0x01,
153 SW_CARD_DISABLED = 0x02,
154 CT_KILL_CARD_DISABLED = 0x04,
155 HALT_CARD_DISABLED = 0x08,
156 CARD_DISABLED_MSK = 0x0f,
157 CARD_IS_RX_ON = 0x10,
158};
159
160
161
162
163
164
165enum iwl_error_recovery_flags {
166 ERROR_RECOVERY_UPDATE_DB = BIT(0),
167 ERROR_RECOVERY_END_OF_RECOVERY = BIT(1),
168};
169
170
171
172
173
174
175struct iwl_fw_error_recovery_cmd {
176 __le32 flags;
177 __le32 buf_size;
178} __packed;
179
180#endif
181