blob: ca15d8f1f8dec2f7e1241bbcbfa70970270797bc [file] [log] [blame]
Nishad Kamdar5d8a4372019-06-14 19:27:45 +05301/* SPDX-License-Identifier: BSD-3-Clause */
Nishanth Menonaa276782016-10-18 18:08:34 -05002/*
3 * Texas Instruments System Control Interface (TISCI) Protocol
4 *
5 * Communication protocol with TI SCI hardware
6 * The system works in a message response protocol
7 * See: http://processors.wiki.ti.com/index.php/TISCI for details
8 *
Alexander A. Klimova6df49f2020-07-24 14:43:48 -07009 * Copyright (C) 2015-2016 Texas Instruments Incorporated - https://www.ti.com/
Nishanth Menonaa276782016-10-18 18:08:34 -050010 */
11
12#ifndef __TI_SCI_H
13#define __TI_SCI_H
14
15/* Generic Messages */
16#define TI_SCI_MSG_ENABLE_WDT 0x0000
17#define TI_SCI_MSG_WAKE_RESET 0x0001
18#define TI_SCI_MSG_VERSION 0x0002
19#define TI_SCI_MSG_WAKE_REASON 0x0003
20#define TI_SCI_MSG_GOODBYE 0x0004
Nishanth Menon912cffb2016-10-18 18:08:37 -050021#define TI_SCI_MSG_SYS_RESET 0x0005
Nishanth Menonaa276782016-10-18 18:08:34 -050022
Nishanth Menon9e7d7562016-10-18 18:08:35 -050023/* Device requests */
24#define TI_SCI_MSG_SET_DEVICE_STATE 0x0200
25#define TI_SCI_MSG_GET_DEVICE_STATE 0x0201
26#define TI_SCI_MSG_SET_DEVICE_RESETS 0x0202
27
Nishanth Menon9f723222016-10-18 18:08:36 -050028/* Clock requests */
29#define TI_SCI_MSG_SET_CLOCK_STATE 0x0100
30#define TI_SCI_MSG_GET_CLOCK_STATE 0x0101
31#define TI_SCI_MSG_SET_CLOCK_PARENT 0x0102
32#define TI_SCI_MSG_GET_CLOCK_PARENT 0x0103
33#define TI_SCI_MSG_GET_NUM_CLOCK_PARENTS 0x0104
34#define TI_SCI_MSG_SET_CLOCK_FREQ 0x010c
35#define TI_SCI_MSG_QUERY_CLOCK_FREQ 0x010d
36#define TI_SCI_MSG_GET_CLOCK_FREQ 0x010e
37
Lokesh Vutla9c19fb62019-04-30 15:42:18 +053038/* Resource Management Requests */
39#define TI_SCI_MSG_GET_RESOURCE_RANGE 0x1500
40
Lokesh Vutla997b0012019-04-30 15:42:19 +053041/* IRQ requests */
42#define TI_SCI_MSG_SET_IRQ 0x1000
43#define TI_SCI_MSG_FREE_IRQ 0x1001
44
Peter Ujfalusi68608b52019-06-10 12:18:56 +030045/* NAVSS resource management */
46/* Ringacc requests */
47#define TI_SCI_MSG_RM_RING_ALLOCATE 0x1100
48#define TI_SCI_MSG_RM_RING_FREE 0x1101
49#define TI_SCI_MSG_RM_RING_RECONFIG 0x1102
50#define TI_SCI_MSG_RM_RING_RESET 0x1103
51#define TI_SCI_MSG_RM_RING_CFG 0x1110
52#define TI_SCI_MSG_RM_RING_GET_CFG 0x1111
53
54/* PSI-L requests */
55#define TI_SCI_MSG_RM_PSIL_PAIR 0x1280
56#define TI_SCI_MSG_RM_PSIL_UNPAIR 0x1281
57
58#define TI_SCI_MSG_RM_UDMAP_TX_ALLOC 0x1200
59#define TI_SCI_MSG_RM_UDMAP_TX_FREE 0x1201
60#define TI_SCI_MSG_RM_UDMAP_RX_ALLOC 0x1210
61#define TI_SCI_MSG_RM_UDMAP_RX_FREE 0x1211
62#define TI_SCI_MSG_RM_UDMAP_FLOW_CFG 0x1220
63#define TI_SCI_MSG_RM_UDMAP_OPT_FLOW_CFG 0x1221
64
65#define TISCI_MSG_RM_UDMAP_TX_CH_CFG 0x1205
66#define TISCI_MSG_RM_UDMAP_TX_CH_GET_CFG 0x1206
67#define TISCI_MSG_RM_UDMAP_RX_CH_CFG 0x1215
68#define TISCI_MSG_RM_UDMAP_RX_CH_GET_CFG 0x1216
69#define TISCI_MSG_RM_UDMAP_FLOW_CFG 0x1230
70#define TISCI_MSG_RM_UDMAP_FLOW_SIZE_THRESH_CFG 0x1231
71#define TISCI_MSG_RM_UDMAP_FLOW_GET_CFG 0x1232
72#define TISCI_MSG_RM_UDMAP_FLOW_SIZE_THRESH_GET_CFG 0x1233
73
Suman Anna1e407f32019-06-05 17:33:34 -050074/* Processor Control requests */
75#define TI_SCI_MSG_PROC_REQUEST 0xc000
76#define TI_SCI_MSG_PROC_RELEASE 0xc001
77#define TI_SCI_MSG_PROC_HANDOVER 0xc005
78#define TI_SCI_MSG_SET_CONFIG 0xc100
79#define TI_SCI_MSG_SET_CTRL 0xc101
80#define TI_SCI_MSG_GET_STATUS 0xc400
81
Nishanth Menonaa276782016-10-18 18:08:34 -050082/**
83 * struct ti_sci_msg_hdr - Generic Message Header for All messages and responses
84 * @type: Type of messages: One of TI_SCI_MSG* values
85 * @host: Host of the message
86 * @seq: Message identifier indicating a transfer sequence
87 * @flags: Flag for the message
88 */
89struct ti_sci_msg_hdr {
90 u16 type;
91 u8 host;
92 u8 seq;
93#define TI_SCI_MSG_FLAG(val) (1 << (val))
94#define TI_SCI_FLAG_REQ_GENERIC_NORESPONSE 0x0
95#define TI_SCI_FLAG_REQ_ACK_ON_RECEIVED TI_SCI_MSG_FLAG(0)
96#define TI_SCI_FLAG_REQ_ACK_ON_PROCESSED TI_SCI_MSG_FLAG(1)
97#define TI_SCI_FLAG_RESP_GENERIC_NACK 0x0
98#define TI_SCI_FLAG_RESP_GENERIC_ACK TI_SCI_MSG_FLAG(1)
99 /* Additional Flags */
100 u32 flags;
101} __packed;
102
103/**
104 * struct ti_sci_msg_resp_version - Response for a message
105 * @hdr: Generic header
106 * @firmware_description: String describing the firmware
107 * @firmware_revision: Firmware revision
108 * @abi_major: Major version of the ABI that firmware supports
109 * @abi_minor: Minor version of the ABI that firmware supports
110 *
111 * In general, ABI version changes follow the rule that minor version increments
112 * are backward compatible. Major revision changes in ABI may not be
113 * backward compatible.
114 *
115 * Response to a generic message with message type TI_SCI_MSG_VERSION
116 */
117struct ti_sci_msg_resp_version {
118 struct ti_sci_msg_hdr hdr;
119 char firmware_description[32];
120 u16 firmware_revision;
121 u8 abi_major;
122 u8 abi_minor;
123} __packed;
124
Nishanth Menon9e7d7562016-10-18 18:08:35 -0500125/**
Nishanth Menon912cffb2016-10-18 18:08:37 -0500126 * struct ti_sci_msg_req_reboot - Reboot the SoC
127 * @hdr: Generic Header
128 *
129 * Request type is TI_SCI_MSG_SYS_RESET, responded with a generic
130 * ACK/NACK message.
131 */
132struct ti_sci_msg_req_reboot {
133 struct ti_sci_msg_hdr hdr;
134} __packed;
135
136/**
Nishanth Menon9e7d7562016-10-18 18:08:35 -0500137 * struct ti_sci_msg_req_set_device_state - Set the desired state of the device
138 * @hdr: Generic header
139 * @id: Indicates which device to modify
140 * @reserved: Reserved space in message, must be 0 for backward compatibility
141 * @state: The desired state of the device.
142 *
143 * Certain flags can also be set to alter the device state:
144 * + MSG_FLAG_DEVICE_WAKE_ENABLED - Configure the device to be a wake source.
145 * The meaning of this flag will vary slightly from device to device and from
146 * SoC to SoC but it generally allows the device to wake the SoC out of deep
147 * suspend states.
148 * + MSG_FLAG_DEVICE_RESET_ISO - Enable reset isolation for this device.
149 * + MSG_FLAG_DEVICE_EXCLUSIVE - Claim this device exclusively. When passed
150 * with STATE_RETENTION or STATE_ON, it will claim the device exclusively.
151 * If another host already has this device set to STATE_RETENTION or STATE_ON,
152 * the message will fail. Once successful, other hosts attempting to set
153 * STATE_RETENTION or STATE_ON will fail.
154 *
155 * Request type is TI_SCI_MSG_SET_DEVICE_STATE, responded with a generic
156 * ACK/NACK message.
157 */
158struct ti_sci_msg_req_set_device_state {
159 /* Additional hdr->flags options */
160#define MSG_FLAG_DEVICE_WAKE_ENABLED TI_SCI_MSG_FLAG(8)
161#define MSG_FLAG_DEVICE_RESET_ISO TI_SCI_MSG_FLAG(9)
162#define MSG_FLAG_DEVICE_EXCLUSIVE TI_SCI_MSG_FLAG(10)
163 struct ti_sci_msg_hdr hdr;
164 u32 id;
165 u32 reserved;
166
167#define MSG_DEVICE_SW_STATE_AUTO_OFF 0
168#define MSG_DEVICE_SW_STATE_RETENTION 1
169#define MSG_DEVICE_SW_STATE_ON 2
170 u8 state;
171} __packed;
172
173/**
174 * struct ti_sci_msg_req_get_device_state - Request to get device.
175 * @hdr: Generic header
176 * @id: Device Identifier
177 *
178 * Request type is TI_SCI_MSG_GET_DEVICE_STATE, responded device state
179 * information
180 */
181struct ti_sci_msg_req_get_device_state {
182 struct ti_sci_msg_hdr hdr;
183 u32 id;
184} __packed;
185
186/**
187 * struct ti_sci_msg_resp_get_device_state - Response to get device request.
188 * @hdr: Generic header
189 * @context_loss_count: Indicates how many times the device has lost context. A
190 * driver can use this monotonic counter to determine if the device has
191 * lost context since the last time this message was exchanged.
192 * @resets: Programmed state of the reset lines.
193 * @programmed_state: The state as programmed by set_device.
194 * - Uses the MSG_DEVICE_SW_* macros
195 * @current_state: The actual state of the hardware.
196 *
197 * Response to request TI_SCI_MSG_GET_DEVICE_STATE.
198 */
199struct ti_sci_msg_resp_get_device_state {
200 struct ti_sci_msg_hdr hdr;
201 u32 context_loss_count;
202 u32 resets;
203 u8 programmed_state;
204#define MSG_DEVICE_HW_STATE_OFF 0
205#define MSG_DEVICE_HW_STATE_ON 1
206#define MSG_DEVICE_HW_STATE_TRANS 2
207 u8 current_state;
208} __packed;
209
210/**
211 * struct ti_sci_msg_req_set_device_resets - Set the desired resets
212 * configuration of the device
213 * @hdr: Generic header
214 * @id: Indicates which device to modify
215 * @resets: A bit field of resets for the device. The meaning, behavior,
216 * and usage of the reset flags are device specific. 0 for a bit
217 * indicates releasing the reset represented by that bit while 1
218 * indicates keeping it held.
219 *
220 * Request type is TI_SCI_MSG_SET_DEVICE_RESETS, responded with a generic
221 * ACK/NACK message.
222 */
223struct ti_sci_msg_req_set_device_resets {
224 struct ti_sci_msg_hdr hdr;
225 u32 id;
226 u32 resets;
227} __packed;
228
Nishanth Menon9f723222016-10-18 18:08:36 -0500229/**
230 * struct ti_sci_msg_req_set_clock_state - Request to setup a Clock state
231 * @hdr: Generic Header, Certain flags can be set specific to the clocks:
232 * MSG_FLAG_CLOCK_ALLOW_SSC: Allow this clock to be modified
233 * via spread spectrum clocking.
234 * MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE: Allow this clock's
235 * frequency to be changed while it is running so long as it
236 * is within the min/max limits.
237 * MSG_FLAG_CLOCK_INPUT_TERM: Enable input termination, this
238 * is only applicable to clock inputs on the SoC pseudo-device.
239 * @dev_id: Device identifier this request is for
240 * @clk_id: Clock identifier for the device for this request.
241 * Each device has it's own set of clock inputs. This indexes
Tero Kristo81f44582019-05-28 16:10:24 +0300242 * which clock input to modify. Set to 255 if clock ID is
243 * greater than or equal to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500244 * @request_state: Request the state for the clock to be set to.
245 * MSG_CLOCK_SW_STATE_UNREQ: The IP does not require this clock,
246 * it can be disabled, regardless of the state of the device
247 * MSG_CLOCK_SW_STATE_AUTO: Allow the System Controller to
248 * automatically manage the state of this clock. If the device
249 * is enabled, then the clock is enabled. If the device is set
250 * to off or retention, then the clock is internally set as not
251 * being required by the device.(default)
252 * MSG_CLOCK_SW_STATE_REQ: Configure the clock to be enabled,
253 * regardless of the state of the device.
Tero Kristo81f44582019-05-28 16:10:24 +0300254 * @clk_id_32: Clock identifier for the device for this request.
255 * Only to be used if the clock ID is greater than or equal to
256 * 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500257 *
258 * Normally, all required clocks are managed by TISCI entity, this is used
259 * only for specific control *IF* required. Auto managed state is
260 * MSG_CLOCK_SW_STATE_AUTO, in other states, TISCI entity assume remote
261 * will explicitly control.
262 *
263 * Request type is TI_SCI_MSG_SET_CLOCK_STATE, response is a generic
264 * ACK or NACK message.
265 */
266struct ti_sci_msg_req_set_clock_state {
267 /* Additional hdr->flags options */
268#define MSG_FLAG_CLOCK_ALLOW_SSC TI_SCI_MSG_FLAG(8)
269#define MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE TI_SCI_MSG_FLAG(9)
270#define MSG_FLAG_CLOCK_INPUT_TERM TI_SCI_MSG_FLAG(10)
271 struct ti_sci_msg_hdr hdr;
272 u32 dev_id;
273 u8 clk_id;
274#define MSG_CLOCK_SW_STATE_UNREQ 0
275#define MSG_CLOCK_SW_STATE_AUTO 1
276#define MSG_CLOCK_SW_STATE_REQ 2
277 u8 request_state;
Tero Kristo81f44582019-05-28 16:10:24 +0300278 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500279} __packed;
280
281/**
282 * struct ti_sci_msg_req_get_clock_state - Request for clock state
283 * @hdr: Generic Header
284 * @dev_id: Device identifier this request is for
285 * @clk_id: Clock identifier for the device for this request.
286 * Each device has it's own set of clock inputs. This indexes
Tero Kristo81f44582019-05-28 16:10:24 +0300287 * which clock input to get state of. Set to 255 if the clock
288 * ID is greater than or equal to 255.
289 * @clk_id_32: Clock identifier for the device for the request.
290 * Only to be used if the clock ID is greater than or equal to
291 * 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500292 *
293 * Request type is TI_SCI_MSG_GET_CLOCK_STATE, response is state
294 * of the clock
295 */
296struct ti_sci_msg_req_get_clock_state {
297 struct ti_sci_msg_hdr hdr;
298 u32 dev_id;
299 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300300 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500301} __packed;
302
303/**
304 * struct ti_sci_msg_resp_get_clock_state - Response to get clock state
305 * @hdr: Generic Header
306 * @programmed_state: Any programmed state of the clock. This is one of
307 * MSG_CLOCK_SW_STATE* values.
308 * @current_state: Current state of the clock. This is one of:
309 * MSG_CLOCK_HW_STATE_NOT_READY: Clock is not ready
310 * MSG_CLOCK_HW_STATE_READY: Clock is ready
311 *
312 * Response to TI_SCI_MSG_GET_CLOCK_STATE.
313 */
314struct ti_sci_msg_resp_get_clock_state {
315 struct ti_sci_msg_hdr hdr;
316 u8 programmed_state;
317#define MSG_CLOCK_HW_STATE_NOT_READY 0
318#define MSG_CLOCK_HW_STATE_READY 1
319 u8 current_state;
320} __packed;
321
322/**
323 * struct ti_sci_msg_req_set_clock_parent - Set the clock parent
324 * @hdr: Generic Header
325 * @dev_id: Device identifier this request is for
326 * @clk_id: Clock identifier for the device for this request.
327 * Each device has it's own set of clock inputs. This indexes
Tero Kristo81f44582019-05-28 16:10:24 +0300328 * which clock input to modify. Set to 255 if clock ID is
329 * greater than or equal to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500330 * @parent_id: The new clock parent is selectable by an index via this
Tero Kristo81f44582019-05-28 16:10:24 +0300331 * parameter. Set to 255 if clock ID is greater than or
332 * equal to 255.
333 * @clk_id_32: Clock identifier if @clk_id field is 255.
334 * @parent_id_32: Parent identifier if @parent_id is 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500335 *
336 * Request type is TI_SCI_MSG_SET_CLOCK_PARENT, response is generic
337 * ACK / NACK message.
338 */
339struct ti_sci_msg_req_set_clock_parent {
340 struct ti_sci_msg_hdr hdr;
341 u32 dev_id;
342 u8 clk_id;
343 u8 parent_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300344 u32 clk_id_32;
345 u32 parent_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500346} __packed;
347
348/**
349 * struct ti_sci_msg_req_get_clock_parent - Get the clock parent
350 * @hdr: Generic Header
351 * @dev_id: Device identifier this request is for
352 * @clk_id: Clock identifier for the device for this request.
353 * Each device has it's own set of clock inputs. This indexes
Tero Kristo81f44582019-05-28 16:10:24 +0300354 * which clock input to get the parent for. If this field
355 * contains 255, the actual clock identifier is stored in
356 * @clk_id_32.
357 * @clk_id_32: Clock identifier if the @clk_id field contains 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500358 *
359 * Request type is TI_SCI_MSG_GET_CLOCK_PARENT, response is parent information
360 */
361struct ti_sci_msg_req_get_clock_parent {
362 struct ti_sci_msg_hdr hdr;
363 u32 dev_id;
364 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300365 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500366} __packed;
367
368/**
369 * struct ti_sci_msg_resp_get_clock_parent - Response with clock parent
370 * @hdr: Generic Header
Tero Kristo81f44582019-05-28 16:10:24 +0300371 * @parent_id: The current clock parent. If set to 255, the current parent
372 * ID can be found from the @parent_id_32 field.
373 * @parent_id_32: Current clock parent if @parent_id field is set to
374 * 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500375 *
376 * Response to TI_SCI_MSG_GET_CLOCK_PARENT.
377 */
378struct ti_sci_msg_resp_get_clock_parent {
379 struct ti_sci_msg_hdr hdr;
380 u8 parent_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300381 u32 parent_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500382} __packed;
383
384/**
385 * struct ti_sci_msg_req_get_clock_num_parents - Request to get clock parents
386 * @hdr: Generic header
387 * @dev_id: Device identifier this request is for
Tero Kristo81f44582019-05-28 16:10:24 +0300388 * @clk_id: Clock identifier for the device for this request. Set to
389 * 255 if clock ID is greater than or equal to 255.
390 * @clk_id_32: Clock identifier if the @clk_id field contains 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500391 *
392 * This request provides information about how many clock parent options
393 * are available for a given clock to a device. This is typically used
394 * for input clocks.
395 *
396 * Request type is TI_SCI_MSG_GET_NUM_CLOCK_PARENTS, response is appropriate
397 * message, or NACK in case of inability to satisfy request.
398 */
399struct ti_sci_msg_req_get_clock_num_parents {
400 struct ti_sci_msg_hdr hdr;
401 u32 dev_id;
402 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300403 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500404} __packed;
405
406/**
407 * struct ti_sci_msg_resp_get_clock_num_parents - Response for get clk parents
408 * @hdr: Generic header
Tero Kristo81f44582019-05-28 16:10:24 +0300409 * @num_parents: Number of clock parents. If set to 255, the actual
410 * number of parents is stored into @num_parents_32
411 * field instead.
412 * @num_parents_32: Number of clock parents if @num_parents field is
413 * set to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500414 *
415 * Response to TI_SCI_MSG_GET_NUM_CLOCK_PARENTS
416 */
417struct ti_sci_msg_resp_get_clock_num_parents {
418 struct ti_sci_msg_hdr hdr;
419 u8 num_parents;
Tero Kristo81f44582019-05-28 16:10:24 +0300420 u32 num_parents_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500421} __packed;
422
423/**
424 * struct ti_sci_msg_req_query_clock_freq - Request to query a frequency
425 * @hdr: Generic Header
426 * @dev_id: Device identifier this request is for
427 * @min_freq_hz: The minimum allowable frequency in Hz. This is the minimum
428 * allowable programmed frequency and does not account for clock
429 * tolerances and jitter.
430 * @target_freq_hz: The target clock frequency. A frequency will be found
431 * as close to this target frequency as possible.
432 * @max_freq_hz: The maximum allowable frequency in Hz. This is the maximum
433 * allowable programmed frequency and does not account for clock
434 * tolerances and jitter.
Tero Kristo81f44582019-05-28 16:10:24 +0300435 * @clk_id: Clock identifier for the device for this request. Set to
436 * 255 if clock identifier is greater than or equal to 255.
437 * @clk_id_32: Clock identifier if @clk_id is set to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500438 *
439 * NOTE: Normally clock frequency management is automatically done by TISCI
440 * entity. In case of specific requests, TISCI evaluates capability to achieve
441 * requested frequency within provided range and responds with
442 * result message.
443 *
444 * Request type is TI_SCI_MSG_QUERY_CLOCK_FREQ, response is appropriate message,
445 * or NACK in case of inability to satisfy request.
446 */
447struct ti_sci_msg_req_query_clock_freq {
448 struct ti_sci_msg_hdr hdr;
449 u32 dev_id;
450 u64 min_freq_hz;
451 u64 target_freq_hz;
452 u64 max_freq_hz;
453 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300454 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500455} __packed;
456
457/**
458 * struct ti_sci_msg_resp_query_clock_freq - Response to a clock frequency query
459 * @hdr: Generic Header
460 * @freq_hz: Frequency that is the best match in Hz.
461 *
462 * Response to request type TI_SCI_MSG_QUERY_CLOCK_FREQ. NOTE: if the request
463 * cannot be satisfied, the message will be of type NACK.
464 */
465struct ti_sci_msg_resp_query_clock_freq {
466 struct ti_sci_msg_hdr hdr;
467 u64 freq_hz;
468} __packed;
469
470/**
471 * struct ti_sci_msg_req_set_clock_freq - Request to setup a clock frequency
472 * @hdr: Generic Header
473 * @dev_id: Device identifier this request is for
474 * @min_freq_hz: The minimum allowable frequency in Hz. This is the minimum
475 * allowable programmed frequency and does not account for clock
476 * tolerances and jitter.
477 * @target_freq_hz: The target clock frequency. The clock will be programmed
478 * at a rate as close to this target frequency as possible.
479 * @max_freq_hz: The maximum allowable frequency in Hz. This is the maximum
480 * allowable programmed frequency and does not account for clock
481 * tolerances and jitter.
Tero Kristo81f44582019-05-28 16:10:24 +0300482 * @clk_id: Clock identifier for the device for this request. Set to
483 * 255 if clock ID is greater than or equal to 255.
484 * @clk_id_32: Clock identifier if @clk_id field is set to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500485 *
486 * NOTE: Normally clock frequency management is automatically done by TISCI
487 * entity. In case of specific requests, TISCI evaluates capability to achieve
488 * requested range and responds with success/failure message.
489 *
490 * This sets the desired frequency for a clock within an allowable
491 * range. This message will fail on an enabled clock unless
492 * MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE is set for the clock. Additionally,
493 * if other clocks have their frequency modified due to this message,
494 * they also must have the MSG_FLAG_CLOCK_ALLOW_FREQ_CHANGE or be disabled.
495 *
496 * Calling set frequency on a clock input to the SoC pseudo-device will
497 * inform the PMMC of that clock's frequency. Setting a frequency of
498 * zero will indicate the clock is disabled.
499 *
500 * Calling set frequency on clock outputs from the SoC pseudo-device will
501 * function similarly to setting the clock frequency on a device.
502 *
503 * Request type is TI_SCI_MSG_SET_CLOCK_FREQ, response is a generic ACK/NACK
504 * message.
505 */
506struct ti_sci_msg_req_set_clock_freq {
507 struct ti_sci_msg_hdr hdr;
508 u32 dev_id;
509 u64 min_freq_hz;
510 u64 target_freq_hz;
511 u64 max_freq_hz;
512 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300513 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500514} __packed;
515
516/**
517 * struct ti_sci_msg_req_get_clock_freq - Request to get the clock frequency
518 * @hdr: Generic Header
519 * @dev_id: Device identifier this request is for
Tero Kristo81f44582019-05-28 16:10:24 +0300520 * @clk_id: Clock identifier for the device for this request. Set to
521 * 255 if clock ID is greater than or equal to 255.
522 * @clk_id_32: Clock identifier if @clk_id field is set to 255.
Nishanth Menon9f723222016-10-18 18:08:36 -0500523 *
524 * NOTE: Normally clock frequency management is automatically done by TISCI
525 * entity. In some cases, clock frequencies are configured by host.
526 *
527 * Request type is TI_SCI_MSG_GET_CLOCK_FREQ, responded with clock frequency
528 * that the clock is currently at.
529 */
530struct ti_sci_msg_req_get_clock_freq {
531 struct ti_sci_msg_hdr hdr;
532 u32 dev_id;
533 u8 clk_id;
Tero Kristo81f44582019-05-28 16:10:24 +0300534 u32 clk_id_32;
Nishanth Menon9f723222016-10-18 18:08:36 -0500535} __packed;
536
537/**
538 * struct ti_sci_msg_resp_get_clock_freq - Response of clock frequency request
539 * @hdr: Generic Header
540 * @freq_hz: Frequency that the clock is currently on, in Hz.
541 *
542 * Response to request type TI_SCI_MSG_GET_CLOCK_FREQ.
543 */
544struct ti_sci_msg_resp_get_clock_freq {
545 struct ti_sci_msg_hdr hdr;
546 u64 freq_hz;
547} __packed;
548
Lokesh Vutla9c19fb62019-04-30 15:42:18 +0530549#define TI_SCI_IRQ_SECONDARY_HOST_INVALID 0xff
550
551/**
552 * struct ti_sci_msg_req_get_resource_range - Request to get a host's assigned
553 * range of resources.
554 * @hdr: Generic Header
555 * @type: Unique resource assignment type
556 * @subtype: Resource assignment subtype within the resource type.
557 * @secondary_host: Host processing entity to which the resources are
558 * allocated. This is required only when the destination
559 * host id id different from ti sci interface host id,
560 * else TI_SCI_IRQ_SECONDARY_HOST_INVALID can be passed.
561 *
562 * Request type is TI_SCI_MSG_GET_RESOURCE_RANGE. Responded with requested
563 * resource range which is of type TI_SCI_MSG_GET_RESOURCE_RANGE.
564 */
565struct ti_sci_msg_req_get_resource_range {
566 struct ti_sci_msg_hdr hdr;
567#define MSG_RM_RESOURCE_TYPE_MASK GENMASK(9, 0)
568#define MSG_RM_RESOURCE_SUBTYPE_MASK GENMASK(5, 0)
569 u16 type;
570 u8 subtype;
571 u8 secondary_host;
572} __packed;
573
574/**
575 * struct ti_sci_msg_resp_get_resource_range - Response to resource get range.
576 * @hdr: Generic Header
Peter Ujfalusi519c5c02020-10-25 12:10:03 -0700577 * @range_start: Start index of the first resource range.
578 * @range_num: Number of resources in the first range.
579 * @range_start_sec: Start index of the second resource range.
580 * @range_num_sec: Number of resources in the second range.
Lokesh Vutla9c19fb62019-04-30 15:42:18 +0530581 *
582 * Response to request TI_SCI_MSG_GET_RESOURCE_RANGE.
583 */
584struct ti_sci_msg_resp_get_resource_range {
585 struct ti_sci_msg_hdr hdr;
586 u16 range_start;
587 u16 range_num;
Peter Ujfalusi519c5c02020-10-25 12:10:03 -0700588 u16 range_start_sec;
589 u16 range_num_sec;
Lokesh Vutla9c19fb62019-04-30 15:42:18 +0530590} __packed;
591
Lokesh Vutla997b0012019-04-30 15:42:19 +0530592/**
593 * struct ti_sci_msg_req_manage_irq - Request to configure/release the route
594 * between the dev and the host.
595 * @hdr: Generic Header
596 * @valid_params: Bit fields defining the validity of interrupt source
597 * parameters. If a bit is not set, then corresponding
598 * field is not valid and will not be used for route set.
599 * Bit field definitions:
600 * 0 - Valid bit for @dst_id
601 * 1 - Valid bit for @dst_host_irq
602 * 2 - Valid bit for @ia_id
603 * 3 - Valid bit for @vint
604 * 4 - Valid bit for @global_event
605 * 5 - Valid bit for @vint_status_bit_index
606 * 31 - Valid bit for @secondary_host
607 * @src_id: IRQ source peripheral ID.
608 * @src_index: IRQ source index within the peripheral
609 * @dst_id: IRQ Destination ID. Based on the architecture it can be
610 * IRQ controller or host processor ID.
611 * @dst_host_irq: IRQ number of the destination host IRQ controller
612 * @ia_id: Device ID of the interrupt aggregator in which the
613 * vint resides.
614 * @vint: Virtual interrupt number if the interrupt route
615 * is through an interrupt aggregator.
616 * @global_event: Global event that is to be mapped to interrupt
617 * aggregator virtual interrupt status bit.
618 * @vint_status_bit: Virtual interrupt status bit if the interrupt route
619 * utilizes an interrupt aggregator status bit.
620 * @secondary_host: Host ID of the IRQ destination computing entity. This is
621 * required only when destination host id is different
622 * from ti sci interface host id.
623 *
624 * Request type is TI_SCI_MSG_SET/RELEASE_IRQ.
625 * Response is generic ACK / NACK message.
626 */
627struct ti_sci_msg_req_manage_irq {
628 struct ti_sci_msg_hdr hdr;
629#define MSG_FLAG_DST_ID_VALID TI_SCI_MSG_FLAG(0)
630#define MSG_FLAG_DST_HOST_IRQ_VALID TI_SCI_MSG_FLAG(1)
631#define MSG_FLAG_IA_ID_VALID TI_SCI_MSG_FLAG(2)
632#define MSG_FLAG_VINT_VALID TI_SCI_MSG_FLAG(3)
633#define MSG_FLAG_GLB_EVNT_VALID TI_SCI_MSG_FLAG(4)
634#define MSG_FLAG_VINT_STS_BIT_VALID TI_SCI_MSG_FLAG(5)
635#define MSG_FLAG_SHOST_VALID TI_SCI_MSG_FLAG(31)
636 u32 valid_params;
637 u16 src_id;
638 u16 src_index;
639 u16 dst_id;
640 u16 dst_host_irq;
641 u16 ia_id;
642 u16 vint;
643 u16 global_event;
644 u8 vint_status_bit;
645 u8 secondary_host;
646} __packed;
647
Peter Ujfalusi68608b52019-06-10 12:18:56 +0300648/**
649 * struct ti_sci_msg_rm_ring_cfg_req - Configure a Navigator Subsystem ring
650 *
651 * Configures the non-real-time registers of a Navigator Subsystem ring.
652 * @hdr: Generic Header
653 * @valid_params: Bitfield defining validity of ring configuration parameters.
654 * The ring configuration fields are not valid, and will not be used for
655 * ring configuration, if their corresponding valid bit is zero.
656 * Valid bit usage:
657 * 0 - Valid bit for @tisci_msg_rm_ring_cfg_req addr_lo
658 * 1 - Valid bit for @tisci_msg_rm_ring_cfg_req addr_hi
659 * 2 - Valid bit for @tisci_msg_rm_ring_cfg_req count
660 * 3 - Valid bit for @tisci_msg_rm_ring_cfg_req mode
661 * 4 - Valid bit for @tisci_msg_rm_ring_cfg_req size
662 * 5 - Valid bit for @tisci_msg_rm_ring_cfg_req order_id
663 * @nav_id: Device ID of Navigator Subsystem from which the ring is allocated
664 * @index: ring index to be configured.
665 * @addr_lo: 32 LSBs of ring base address to be programmed into the ring's
666 * RING_BA_LO register
667 * @addr_hi: 16 MSBs of ring base address to be programmed into the ring's
668 * RING_BA_HI register.
669 * @count: Number of ring elements. Must be even if mode is CREDENTIALS or QM
670 * modes.
671 * @mode: Specifies the mode the ring is to be configured.
672 * @size: Specifies encoded ring element size. To calculate the encoded size use
673 * the formula (log2(size_bytes) - 2), where size_bytes cannot be
674 * greater than 256.
675 * @order_id: Specifies the ring's bus order ID.
676 */
677struct ti_sci_msg_rm_ring_cfg_req {
678 struct ti_sci_msg_hdr hdr;
679 u32 valid_params;
680 u16 nav_id;
681 u16 index;
682 u32 addr_lo;
683 u32 addr_hi;
684 u32 count;
685 u8 mode;
686 u8 size;
687 u8 order_id;
688} __packed;
689
690/**
691 * struct ti_sci_msg_rm_ring_get_cfg_req - Get RA ring's configuration
692 *
693 * Gets the configuration of the non-real-time register fields of a ring. The
694 * host, or a supervisor of the host, who owns the ring must be the requesting
695 * host. The values of the non-real-time registers are returned in
696 * @ti_sci_msg_rm_ring_get_cfg_resp.
697 *
698 * @hdr: Generic Header
699 * @nav_id: Device ID of Navigator Subsystem from which the ring is allocated
700 * @index: ring index.
701 */
702struct ti_sci_msg_rm_ring_get_cfg_req {
703 struct ti_sci_msg_hdr hdr;
704 u16 nav_id;
705 u16 index;
706} __packed;
707
708/**
709 * struct ti_sci_msg_rm_ring_get_cfg_resp - Ring get configuration response
710 *
711 * Response received by host processor after RM has handled
712 * @ti_sci_msg_rm_ring_get_cfg_req. The response contains the ring's
713 * non-real-time register values.
714 *
715 * @hdr: Generic Header
716 * @addr_lo: Ring 32 LSBs of base address
717 * @addr_hi: Ring 16 MSBs of base address.
718 * @count: Ring number of elements.
719 * @mode: Ring mode.
720 * @size: encoded Ring element size
721 * @order_id: ing order ID.
722 */
723struct ti_sci_msg_rm_ring_get_cfg_resp {
724 struct ti_sci_msg_hdr hdr;
725 u32 addr_lo;
726 u32 addr_hi;
727 u32 count;
728 u8 mode;
729 u8 size;
730 u8 order_id;
731} __packed;
732
733/**
734 * struct ti_sci_msg_psil_pair - Pairs a PSI-L source thread to a destination
735 * thread
736 * @hdr: Generic Header
737 * @nav_id: SoC Navigator Subsystem device ID whose PSI-L config proxy is
738 * used to pair the source and destination threads.
739 * @src_thread: PSI-L source thread ID within the PSI-L System thread map.
740 *
741 * UDMAP transmit channels mapped to source threads will have their
742 * TCHAN_THRD_ID register programmed with the destination thread if the pairing
743 * is successful.
744
745 * @dst_thread: PSI-L destination thread ID within the PSI-L System thread map.
746 * PSI-L destination threads start at index 0x8000. The request is NACK'd if
747 * the destination thread is not greater than or equal to 0x8000.
748 *
749 * UDMAP receive channels mapped to destination threads will have their
750 * RCHAN_THRD_ID register programmed with the source thread if the pairing
751 * is successful.
752 *
753 * Request type is TI_SCI_MSG_RM_PSIL_PAIR, response is a generic ACK or NACK
754 * message.
755 */
756struct ti_sci_msg_psil_pair {
757 struct ti_sci_msg_hdr hdr;
758 u32 nav_id;
759 u32 src_thread;
760 u32 dst_thread;
761} __packed;
762
763/**
764 * struct ti_sci_msg_psil_unpair - Unpairs a PSI-L source thread from a
765 * destination thread
766 * @hdr: Generic Header
767 * @nav_id: SoC Navigator Subsystem device ID whose PSI-L config proxy is
768 * used to unpair the source and destination threads.
769 * @src_thread: PSI-L source thread ID within the PSI-L System thread map.
770 *
771 * UDMAP transmit channels mapped to source threads will have their
772 * TCHAN_THRD_ID register cleared if the unpairing is successful.
773 *
774 * @dst_thread: PSI-L destination thread ID within the PSI-L System thread map.
775 * PSI-L destination threads start at index 0x8000. The request is NACK'd if
776 * the destination thread is not greater than or equal to 0x8000.
777 *
778 * UDMAP receive channels mapped to destination threads will have their
779 * RCHAN_THRD_ID register cleared if the unpairing is successful.
780 *
781 * Request type is TI_SCI_MSG_RM_PSIL_UNPAIR, response is a generic ACK or NACK
782 * message.
783 */
784struct ti_sci_msg_psil_unpair {
785 struct ti_sci_msg_hdr hdr;
786 u32 nav_id;
787 u32 src_thread;
788 u32 dst_thread;
789} __packed;
790
791/**
792 * struct ti_sci_msg_udmap_rx_flow_cfg - UDMAP receive flow configuration
793 * message
794 * @hdr: Generic Header
795 * @nav_id: SoC Navigator Subsystem device ID from which the receive flow is
796 * allocated
797 * @flow_index: UDMAP receive flow index for non-optional configuration.
798 * @rx_ch_index: Specifies the index of the receive channel using the flow_index
799 * @rx_einfo_present: UDMAP receive flow extended packet info present.
800 * @rx_psinfo_present: UDMAP receive flow PS words present.
801 * @rx_error_handling: UDMAP receive flow error handling configuration. Valid
802 * values are TI_SCI_RM_UDMAP_RX_FLOW_ERR_DROP/RETRY.
803 * @rx_desc_type: UDMAP receive flow descriptor type. It can be one of
804 * TI_SCI_RM_UDMAP_RX_FLOW_DESC_HOST/MONO.
805 * @rx_sop_offset: UDMAP receive flow start of packet offset.
806 * @rx_dest_qnum: UDMAP receive flow destination queue number.
807 * @rx_ps_location: UDMAP receive flow PS words location.
808 * 0 - end of packet descriptor
809 * 1 - Beginning of the data buffer
810 * @rx_src_tag_hi: UDMAP receive flow source tag high byte constant
811 * @rx_src_tag_lo: UDMAP receive flow source tag low byte constant
812 * @rx_dest_tag_hi: UDMAP receive flow destination tag high byte constant
813 * @rx_dest_tag_lo: UDMAP receive flow destination tag low byte constant
814 * @rx_src_tag_hi_sel: UDMAP receive flow source tag high byte selector
815 * @rx_src_tag_lo_sel: UDMAP receive flow source tag low byte selector
816 * @rx_dest_tag_hi_sel: UDMAP receive flow destination tag high byte selector
817 * @rx_dest_tag_lo_sel: UDMAP receive flow destination tag low byte selector
818 * @rx_size_thresh_en: UDMAP receive flow packet size based free buffer queue
819 * enable. If enabled, the ti_sci_rm_udmap_rx_flow_opt_cfg also need to be
820 * configured and sent.
821 * @rx_fdq0_sz0_qnum: UDMAP receive flow free descriptor queue 0.
822 * @rx_fdq1_qnum: UDMAP receive flow free descriptor queue 1.
823 * @rx_fdq2_qnum: UDMAP receive flow free descriptor queue 2.
824 * @rx_fdq3_qnum: UDMAP receive flow free descriptor queue 3.
825 *
826 * For detailed information on the settings, see the UDMAP section of the TRM.
827 */
828struct ti_sci_msg_udmap_rx_flow_cfg {
829 struct ti_sci_msg_hdr hdr;
830 u32 nav_id;
831 u32 flow_index;
832 u32 rx_ch_index;
833 u8 rx_einfo_present;
834 u8 rx_psinfo_present;
835 u8 rx_error_handling;
836 u8 rx_desc_type;
837 u16 rx_sop_offset;
838 u16 rx_dest_qnum;
839 u8 rx_ps_location;
840 u8 rx_src_tag_hi;
841 u8 rx_src_tag_lo;
842 u8 rx_dest_tag_hi;
843 u8 rx_dest_tag_lo;
844 u8 rx_src_tag_hi_sel;
845 u8 rx_src_tag_lo_sel;
846 u8 rx_dest_tag_hi_sel;
847 u8 rx_dest_tag_lo_sel;
848 u8 rx_size_thresh_en;
849 u16 rx_fdq0_sz0_qnum;
850 u16 rx_fdq1_qnum;
851 u16 rx_fdq2_qnum;
852 u16 rx_fdq3_qnum;
853} __packed;
854
855/**
856 * struct rm_ti_sci_msg_udmap_rx_flow_opt_cfg - parameters for UDMAP receive
857 * flow optional configuration
858 * @hdr: Generic Header
859 * @nav_id: SoC Navigator Subsystem device ID from which the receive flow is
860 * allocated
861 * @flow_index: UDMAP receive flow index for optional configuration.
862 * @rx_ch_index: Specifies the index of the receive channel using the flow_index
863 * @rx_size_thresh0: UDMAP receive flow packet size threshold 0.
864 * @rx_size_thresh1: UDMAP receive flow packet size threshold 1.
865 * @rx_size_thresh2: UDMAP receive flow packet size threshold 2.
866 * @rx_fdq0_sz1_qnum: UDMAP receive flow free descriptor queue for size
867 * threshold 1.
868 * @rx_fdq0_sz2_qnum: UDMAP receive flow free descriptor queue for size
869 * threshold 2.
870 * @rx_fdq0_sz3_qnum: UDMAP receive flow free descriptor queue for size
871 * threshold 3.
872 *
873 * For detailed information on the settings, see the UDMAP section of the TRM.
874 */
875struct rm_ti_sci_msg_udmap_rx_flow_opt_cfg {
876 struct ti_sci_msg_hdr hdr;
877 u32 nav_id;
878 u32 flow_index;
879 u32 rx_ch_index;
880 u16 rx_size_thresh0;
881 u16 rx_size_thresh1;
882 u16 rx_size_thresh2;
883 u16 rx_fdq0_sz1_qnum;
884 u16 rx_fdq0_sz2_qnum;
885 u16 rx_fdq0_sz3_qnum;
886} __packed;
887
888/**
889 * Configures a Navigator Subsystem UDMAP transmit channel
890 *
891 * Configures the non-real-time registers of a Navigator Subsystem UDMAP
892 * transmit channel. The channel index must be assigned to the host defined
893 * in the TISCI header via the RM board configuration resource assignment
894 * range list.
895 *
896 * @hdr: Generic Header
897 *
898 * @valid_params: Bitfield defining validity of tx channel configuration
899 * parameters. The tx channel configuration fields are not valid, and will not
900 * be used for ch configuration, if their corresponding valid bit is zero.
901 * Valid bit usage:
902 * 0 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_pause_on_err
903 * 1 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_atype
904 * 2 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_chan_type
905 * 3 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_fetch_size
906 * 4 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::txcq_qnum
907 * 5 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_priority
908 * 6 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_qos
909 * 7 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_orderid
910 * 8 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_sched_priority
911 * 9 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_filt_einfo
912 * 10 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_filt_pswords
913 * 11 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_supr_tdpkt
914 * 12 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_credit_count
915 * 13 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::fdepth
916 * 14 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_burst_size
Peter Ujfalusi1c552e02020-10-25 12:10:02 -0700917 * 15 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::tx_tdtype
Peter Ujfalusice1feed2020-10-25 12:10:05 -0700918 * 16 - Valid bit for @ref ti_sci_msg_rm_udmap_tx_ch_cfg::extended_ch_type
Peter Ujfalusi68608b52019-06-10 12:18:56 +0300919 *
920 * @nav_id: SoC device ID of Navigator Subsystem where tx channel is located
921 *
922 * @index: UDMAP transmit channel index.
923 *
924 * @tx_pause_on_err: UDMAP transmit channel pause on error configuration to
925 * be programmed into the tx_pause_on_err field of the channel's TCHAN_TCFG
926 * register.
927 *
928 * @tx_filt_einfo: UDMAP transmit channel extended packet information passing
929 * configuration to be programmed into the tx_filt_einfo field of the
930 * channel's TCHAN_TCFG register.
931 *
932 * @tx_filt_pswords: UDMAP transmit channel protocol specific word passing
933 * configuration to be programmed into the tx_filt_pswords field of the
934 * channel's TCHAN_TCFG register.
935 *
936 * @tx_atype: UDMAP transmit channel non Ring Accelerator access pointer
937 * interpretation configuration to be programmed into the tx_atype field of
938 * the channel's TCHAN_TCFG register.
939 *
940 * @tx_chan_type: UDMAP transmit channel functional channel type and work
941 * passing mechanism configuration to be programmed into the tx_chan_type
942 * field of the channel's TCHAN_TCFG register.
943 *
944 * @tx_supr_tdpkt: UDMAP transmit channel teardown packet generation suppression
945 * configuration to be programmed into the tx_supr_tdpkt field of the channel's
946 * TCHAN_TCFG register.
947 *
948 * @tx_fetch_size: UDMAP transmit channel number of 32-bit descriptor words to
949 * fetch configuration to be programmed into the tx_fetch_size field of the
950 * channel's TCHAN_TCFG register. The user must make sure to set the maximum
951 * word count that can pass through the channel for any allowed descriptor type.
952 *
953 * @tx_credit_count: UDMAP transmit channel transfer request credit count
954 * configuration to be programmed into the count field of the TCHAN_TCREDIT
955 * register. Specifies how many credits for complete TRs are available.
956 *
957 * @txcq_qnum: UDMAP transmit channel completion queue configuration to be
958 * programmed into the txcq_qnum field of the TCHAN_TCQ register. The specified
959 * completion queue must be assigned to the host, or a subordinate of the host,
960 * requesting configuration of the transmit channel.
961 *
962 * @tx_priority: UDMAP transmit channel transmit priority value to be programmed
963 * into the priority field of the channel's TCHAN_TPRI_CTRL register.
964 *
965 * @tx_qos: UDMAP transmit channel transmit qos value to be programmed into the
966 * qos field of the channel's TCHAN_TPRI_CTRL register.
967 *
968 * @tx_orderid: UDMAP transmit channel bus order id value to be programmed into
969 * the orderid field of the channel's TCHAN_TPRI_CTRL register.
970 *
971 * @fdepth: UDMAP transmit channel FIFO depth configuration to be programmed
972 * into the fdepth field of the TCHAN_TFIFO_DEPTH register. Sets the number of
973 * Tx FIFO bytes which are allowed to be stored for the channel. Check the UDMAP
974 * section of the TRM for restrictions regarding this parameter.
975 *
976 * @tx_sched_priority: UDMAP transmit channel tx scheduling priority
977 * configuration to be programmed into the priority field of the channel's
978 * TCHAN_TST_SCHED register.
979 *
980 * @tx_burst_size: UDMAP transmit channel burst size configuration to be
981 * programmed into the tx_burst_size field of the TCHAN_TCFG register.
Peter Ujfalusi1c552e02020-10-25 12:10:02 -0700982 *
983 * @tx_tdtype: UDMAP transmit channel teardown type configuration to be
984 * programmed into the tdtype field of the TCHAN_TCFG register:
985 * 0 - Return immediately
986 * 1 - Wait for completion message from remote peer
Peter Ujfalusice1feed2020-10-25 12:10:05 -0700987 *
988 * @extended_ch_type: Valid for BCDMA.
989 * 0 - the channel is split tx channel (tchan)
990 * 1 - the channel is block copy channel (bchan)
Peter Ujfalusi68608b52019-06-10 12:18:56 +0300991 */
992struct ti_sci_msg_rm_udmap_tx_ch_cfg_req {
993 struct ti_sci_msg_hdr hdr;
994 u32 valid_params;
995 u16 nav_id;
996 u16 index;
997 u8 tx_pause_on_err;
998 u8 tx_filt_einfo;
999 u8 tx_filt_pswords;
1000 u8 tx_atype;
1001 u8 tx_chan_type;
1002 u8 tx_supr_tdpkt;
1003 u16 tx_fetch_size;
1004 u8 tx_credit_count;
1005 u16 txcq_qnum;
1006 u8 tx_priority;
1007 u8 tx_qos;
1008 u8 tx_orderid;
1009 u16 fdepth;
1010 u8 tx_sched_priority;
1011 u8 tx_burst_size;
Peter Ujfalusi1c552e02020-10-25 12:10:02 -07001012 u8 tx_tdtype;
Peter Ujfalusice1feed2020-10-25 12:10:05 -07001013 u8 extended_ch_type;
Peter Ujfalusi68608b52019-06-10 12:18:56 +03001014} __packed;
1015
1016/**
1017 * Configures a Navigator Subsystem UDMAP receive channel
1018 *
1019 * Configures the non-real-time registers of a Navigator Subsystem UDMAP
1020 * receive channel. The channel index must be assigned to the host defined
1021 * in the TISCI header via the RM board configuration resource assignment
1022 * range list.
1023 *
1024 * @hdr: Generic Header
1025 *
1026 * @valid_params: Bitfield defining validity of rx channel configuration
1027 * parameters.
1028 * The rx channel configuration fields are not valid, and will not be used for
1029 * ch configuration, if their corresponding valid bit is zero.
1030 * Valid bit usage:
1031 * 0 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_pause_on_err
1032 * 1 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_atype
1033 * 2 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_chan_type
1034 * 3 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_fetch_size
1035 * 4 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rxcq_qnum
1036 * 5 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_priority
1037 * 6 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_qos
1038 * 7 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_orderid
1039 * 8 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_sched_priority
1040 * 9 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::flowid_start
1041 * 10 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::flowid_cnt
1042 * 11 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_ignore_short
1043 * 12 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_ignore_long
1044 * 14 - Valid bit for @ti_sci_msg_rm_udmap_rx_ch_cfg_req::rx_burst_size
1045 *
1046 * @nav_id: SoC device ID of Navigator Subsystem where rx channel is located
1047 *
1048 * @index: UDMAP receive channel index.
1049 *
1050 * @rx_fetch_size: UDMAP receive channel number of 32-bit descriptor words to
1051 * fetch configuration to be programmed into the rx_fetch_size field of the
1052 * channel's RCHAN_RCFG register.
1053 *
1054 * @rxcq_qnum: UDMAP receive channel completion queue configuration to be
1055 * programmed into the rxcq_qnum field of the RCHAN_RCQ register.
1056 * The specified completion queue must be assigned to the host, or a subordinate
1057 * of the host, requesting configuration of the receive channel.
1058 *
1059 * @rx_priority: UDMAP receive channel receive priority value to be programmed
1060 * into the priority field of the channel's RCHAN_RPRI_CTRL register.
1061 *
1062 * @rx_qos: UDMAP receive channel receive qos value to be programmed into the
1063 * qos field of the channel's RCHAN_RPRI_CTRL register.
1064 *
1065 * @rx_orderid: UDMAP receive channel bus order id value to be programmed into
1066 * the orderid field of the channel's RCHAN_RPRI_CTRL register.
1067 *
1068 * @rx_sched_priority: UDMAP receive channel rx scheduling priority
1069 * configuration to be programmed into the priority field of the channel's
1070 * RCHAN_RST_SCHED register.
1071 *
1072 * @flowid_start: UDMAP receive channel additional flows starting index
1073 * configuration to program into the flow_start field of the RCHAN_RFLOW_RNG
1074 * register. Specifies the starting index for flow IDs the receive channel is to
1075 * make use of beyond the default flow. flowid_start and @ref flowid_cnt must be
1076 * set as valid and configured together. The starting flow ID set by
1077 * @ref flowid_cnt must be a flow index within the Navigator Subsystem's subset
1078 * of flows beyond the default flows statically mapped to receive channels.
1079 * The additional flows must be assigned to the host, or a subordinate of the
1080 * host, requesting configuration of the receive channel.
1081 *
1082 * @flowid_cnt: UDMAP receive channel additional flows count configuration to
1083 * program into the flowid_cnt field of the RCHAN_RFLOW_RNG register.
1084 * This field specifies how many flow IDs are in the additional contiguous range
1085 * of legal flow IDs for the channel. @ref flowid_start and flowid_cnt must be
1086 * set as valid and configured together. Disabling the valid_params field bit
1087 * for flowid_cnt indicates no flow IDs other than the default are to be
1088 * allocated and used by the receive channel. @ref flowid_start plus flowid_cnt
1089 * cannot be greater than the number of receive flows in the receive channel's
1090 * Navigator Subsystem. The additional flows must be assigned to the host, or a
1091 * subordinate of the host, requesting configuration of the receive channel.
1092 *
1093 * @rx_pause_on_err: UDMAP receive channel pause on error configuration to be
1094 * programmed into the rx_pause_on_err field of the channel's RCHAN_RCFG
1095 * register.
1096 *
1097 * @rx_atype: UDMAP receive channel non Ring Accelerator access pointer
1098 * interpretation configuration to be programmed into the rx_atype field of the
1099 * channel's RCHAN_RCFG register.
1100 *
1101 * @rx_chan_type: UDMAP receive channel functional channel type and work passing
1102 * mechanism configuration to be programmed into the rx_chan_type field of the
1103 * channel's RCHAN_RCFG register.
1104 *
1105 * @rx_ignore_short: UDMAP receive channel short packet treatment configuration
1106 * to be programmed into the rx_ignore_short field of the RCHAN_RCFG register.
1107 *
1108 * @rx_ignore_long: UDMAP receive channel long packet treatment configuration to
1109 * be programmed into the rx_ignore_long field of the RCHAN_RCFG register.
1110 *
1111 * @rx_burst_size: UDMAP receive channel burst size configuration to be
1112 * programmed into the rx_burst_size field of the RCHAN_RCFG register.
1113 */
1114struct ti_sci_msg_rm_udmap_rx_ch_cfg_req {
1115 struct ti_sci_msg_hdr hdr;
1116 u32 valid_params;
1117 u16 nav_id;
1118 u16 index;
1119 u16 rx_fetch_size;
1120 u16 rxcq_qnum;
1121 u8 rx_priority;
1122 u8 rx_qos;
1123 u8 rx_orderid;
1124 u8 rx_sched_priority;
1125 u16 flowid_start;
1126 u16 flowid_cnt;
1127 u8 rx_pause_on_err;
1128 u8 rx_atype;
1129 u8 rx_chan_type;
1130 u8 rx_ignore_short;
1131 u8 rx_ignore_long;
1132 u8 rx_burst_size;
1133} __packed;
1134
1135/**
1136 * Configures a Navigator Subsystem UDMAP receive flow
1137 *
1138 * Configures a Navigator Subsystem UDMAP receive flow's registers.
1139 * Configuration does not include the flow registers which handle size-based
1140 * free descriptor queue routing.
1141 *
1142 * The flow index must be assigned to the host defined in the TISCI header via
1143 * the RM board configuration resource assignment range list.
1144 *
1145 * @hdr: Standard TISCI header
1146 *
1147 * @valid_params
1148 * Bitfield defining validity of rx flow configuration parameters. The
1149 * rx flow configuration fields are not valid, and will not be used for flow
1150 * configuration, if their corresponding valid bit is zero. Valid bit usage:
1151 * 0 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_einfo_present
1152 * 1 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_psinfo_present
1153 * 2 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_error_handling
1154 * 3 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_desc_type
1155 * 4 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_sop_offset
1156 * 5 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_dest_qnum
1157 * 6 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_src_tag_hi
1158 * 7 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_src_tag_lo
1159 * 8 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_dest_tag_hi
1160 * 9 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_dest_tag_lo
1161 * 10 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_src_tag_hi_sel
1162 * 11 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_src_tag_lo_sel
1163 * 12 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_dest_tag_hi_sel
1164 * 13 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_dest_tag_lo_sel
1165 * 14 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_fdq0_sz0_qnum
1166 * 15 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_fdq1_sz0_qnum
1167 * 16 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_fdq2_sz0_qnum
1168 * 17 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_fdq3_sz0_qnum
1169 * 18 - Valid bit for @tisci_msg_rm_udmap_flow_cfg_req::rx_ps_location
1170 *
1171 * @nav_id: SoC device ID of Navigator Subsystem from which the receive flow is
1172 * allocated
1173 *
1174 * @flow_index: UDMAP receive flow index for non-optional configuration.
1175 *
1176 * @rx_einfo_present:
1177 * UDMAP receive flow extended packet info present configuration to be
1178 * programmed into the rx_einfo_present field of the flow's RFLOW_RFA register.
1179 *
1180 * @rx_psinfo_present:
1181 * UDMAP receive flow PS words present configuration to be programmed into the
1182 * rx_psinfo_present field of the flow's RFLOW_RFA register.
1183 *
1184 * @rx_error_handling:
1185 * UDMAP receive flow error handling configuration to be programmed into the
1186 * rx_error_handling field of the flow's RFLOW_RFA register.
1187 *
1188 * @rx_desc_type:
1189 * UDMAP receive flow descriptor type configuration to be programmed into the
1190 * rx_desc_type field field of the flow's RFLOW_RFA register.
1191 *
1192 * @rx_sop_offset:
1193 * UDMAP receive flow start of packet offset configuration to be programmed
1194 * into the rx_sop_offset field of the RFLOW_RFA register. See the UDMAP
1195 * section of the TRM for more information on this setting. Valid values for
1196 * this field are 0-255 bytes.
1197 *
1198 * @rx_dest_qnum:
1199 * UDMAP receive flow destination queue configuration to be programmed into the
1200 * rx_dest_qnum field of the flow's RFLOW_RFA register. The specified
1201 * destination queue must be valid within the Navigator Subsystem and must be
1202 * owned by the host, or a subordinate of the host, requesting allocation and
1203 * configuration of the receive flow.
1204 *
1205 * @rx_src_tag_hi:
1206 * UDMAP receive flow source tag high byte constant configuration to be
1207 * programmed into the rx_src_tag_hi field of the flow's RFLOW_RFB register.
1208 * See the UDMAP section of the TRM for more information on this setting.
1209 *
1210 * @rx_src_tag_lo:
1211 * UDMAP receive flow source tag low byte constant configuration to be
1212 * programmed into the rx_src_tag_lo field of the flow's RFLOW_RFB register.
1213 * See the UDMAP section of the TRM for more information on this setting.
1214 *
1215 * @rx_dest_tag_hi:
1216 * UDMAP receive flow destination tag high byte constant configuration to be
1217 * programmed into the rx_dest_tag_hi field of the flow's RFLOW_RFB register.
1218 * See the UDMAP section of the TRM for more information on this setting.
1219 *
1220 * @rx_dest_tag_lo:
1221 * UDMAP receive flow destination tag low byte constant configuration to be
1222 * programmed into the rx_dest_tag_lo field of the flow's RFLOW_RFB register.
1223 * See the UDMAP section of the TRM for more information on this setting.
1224 *
1225 * @rx_src_tag_hi_sel:
1226 * UDMAP receive flow source tag high byte selector configuration to be
1227 * programmed into the rx_src_tag_hi_sel field of the RFLOW_RFC register. See
1228 * the UDMAP section of the TRM for more information on this setting.
1229 *
1230 * @rx_src_tag_lo_sel:
1231 * UDMAP receive flow source tag low byte selector configuration to be
1232 * programmed into the rx_src_tag_lo_sel field of the RFLOW_RFC register. See
1233 * the UDMAP section of the TRM for more information on this setting.
1234 *
1235 * @rx_dest_tag_hi_sel:
1236 * UDMAP receive flow destination tag high byte selector configuration to be
1237 * programmed into the rx_dest_tag_hi_sel field of the RFLOW_RFC register. See
1238 * the UDMAP section of the TRM for more information on this setting.
1239 *
1240 * @rx_dest_tag_lo_sel:
1241 * UDMAP receive flow destination tag low byte selector configuration to be
1242 * programmed into the rx_dest_tag_lo_sel field of the RFLOW_RFC register. See
1243 * the UDMAP section of the TRM for more information on this setting.
1244 *
1245 * @rx_fdq0_sz0_qnum:
1246 * UDMAP receive flow free descriptor queue 0 configuration to be programmed
1247 * into the rx_fdq0_sz0_qnum field of the flow's RFLOW_RFD register. See the
1248 * UDMAP section of the TRM for more information on this setting. The specified
1249 * free queue must be valid within the Navigator Subsystem and must be owned
1250 * by the host, or a subordinate of the host, requesting allocation and
1251 * configuration of the receive flow.
1252 *
1253 * @rx_fdq1_qnum:
1254 * UDMAP receive flow free descriptor queue 1 configuration to be programmed
1255 * into the rx_fdq1_qnum field of the flow's RFLOW_RFD register. See the
1256 * UDMAP section of the TRM for more information on this setting. The specified
1257 * free queue must be valid within the Navigator Subsystem and must be owned
1258 * by the host, or a subordinate of the host, requesting allocation and
1259 * configuration of the receive flow.
1260 *
1261 * @rx_fdq2_qnum:
1262 * UDMAP receive flow free descriptor queue 2 configuration to be programmed
1263 * into the rx_fdq2_qnum field of the flow's RFLOW_RFE register. See the
1264 * UDMAP section of the TRM for more information on this setting. The specified
1265 * free queue must be valid within the Navigator Subsystem and must be owned
1266 * by the host, or a subordinate of the host, requesting allocation and
1267 * configuration of the receive flow.
1268 *
1269 * @rx_fdq3_qnum:
1270 * UDMAP receive flow free descriptor queue 3 configuration to be programmed
1271 * into the rx_fdq3_qnum field of the flow's RFLOW_RFE register. See the
1272 * UDMAP section of the TRM for more information on this setting. The specified
1273 * free queue must be valid within the Navigator Subsystem and must be owned
1274 * by the host, or a subordinate of the host, requesting allocation and
1275 * configuration of the receive flow.
1276 *
1277 * @rx_ps_location:
1278 * UDMAP receive flow PS words location configuration to be programmed into the
1279 * rx_ps_location field of the flow's RFLOW_RFA register.
1280 */
1281struct ti_sci_msg_rm_udmap_flow_cfg_req {
1282 struct ti_sci_msg_hdr hdr;
1283 u32 valid_params;
1284 u16 nav_id;
1285 u16 flow_index;
1286 u8 rx_einfo_present;
1287 u8 rx_psinfo_present;
1288 u8 rx_error_handling;
1289 u8 rx_desc_type;
1290 u16 rx_sop_offset;
1291 u16 rx_dest_qnum;
1292 u8 rx_src_tag_hi;
1293 u8 rx_src_tag_lo;
1294 u8 rx_dest_tag_hi;
1295 u8 rx_dest_tag_lo;
1296 u8 rx_src_tag_hi_sel;
1297 u8 rx_src_tag_lo_sel;
1298 u8 rx_dest_tag_hi_sel;
1299 u8 rx_dest_tag_lo_sel;
1300 u16 rx_fdq0_sz0_qnum;
1301 u16 rx_fdq1_qnum;
1302 u16 rx_fdq2_qnum;
1303 u16 rx_fdq3_qnum;
1304 u8 rx_ps_location;
1305} __packed;
1306
Suman Anna1e407f32019-06-05 17:33:34 -05001307/**
1308 * struct ti_sci_msg_req_proc_request - Request a processor
1309 * @hdr: Generic Header
1310 * @processor_id: ID of processor being requested
1311 *
1312 * Request type is TI_SCI_MSG_PROC_REQUEST, response is a generic ACK/NACK
1313 * message.
1314 */
1315struct ti_sci_msg_req_proc_request {
1316 struct ti_sci_msg_hdr hdr;
1317 u8 processor_id;
1318} __packed;
1319
1320/**
1321 * struct ti_sci_msg_req_proc_release - Release a processor
1322 * @hdr: Generic Header
1323 * @processor_id: ID of processor being released
1324 *
1325 * Request type is TI_SCI_MSG_PROC_RELEASE, response is a generic ACK/NACK
1326 * message.
1327 */
1328struct ti_sci_msg_req_proc_release {
1329 struct ti_sci_msg_hdr hdr;
1330 u8 processor_id;
1331} __packed;
1332
1333/**
1334 * struct ti_sci_msg_req_proc_handover - Handover a processor to a host
1335 * @hdr: Generic Header
1336 * @processor_id: ID of processor being handed over
1337 * @host_id: Host ID the control needs to be transferred to
1338 *
1339 * Request type is TI_SCI_MSG_PROC_HANDOVER, response is a generic ACK/NACK
1340 * message.
1341 */
1342struct ti_sci_msg_req_proc_handover {
1343 struct ti_sci_msg_hdr hdr;
1344 u8 processor_id;
1345 u8 host_id;
1346} __packed;
1347
1348/* Boot Vector masks */
1349#define TI_SCI_ADDR_LOW_MASK GENMASK_ULL(31, 0)
1350#define TI_SCI_ADDR_HIGH_MASK GENMASK_ULL(63, 32)
1351#define TI_SCI_ADDR_HIGH_SHIFT 32
1352
1353/**
1354 * struct ti_sci_msg_req_set_config - Set Processor boot configuration
1355 * @hdr: Generic Header
1356 * @processor_id: ID of processor being configured
1357 * @bootvector_low: Lower 32 bit address (Little Endian) of boot vector
1358 * @bootvector_high: Higher 32 bit address (Little Endian) of boot vector
1359 * @config_flags_set: Optional Processor specific Config Flags to set.
1360 * Setting a bit here implies the corresponding mode
1361 * will be set
1362 * @config_flags_clear: Optional Processor specific Config Flags to clear.
1363 * Setting a bit here implies the corresponding mode
1364 * will be cleared
1365 *
1366 * Request type is TI_SCI_MSG_PROC_HANDOVER, response is a generic ACK/NACK
1367 * message.
1368 */
1369struct ti_sci_msg_req_set_config {
1370 struct ti_sci_msg_hdr hdr;
1371 u8 processor_id;
1372 u32 bootvector_low;
1373 u32 bootvector_high;
1374 u32 config_flags_set;
1375 u32 config_flags_clear;
1376} __packed;
1377
1378/**
1379 * struct ti_sci_msg_req_set_ctrl - Set Processor boot control flags
1380 * @hdr: Generic Header
1381 * @processor_id: ID of processor being configured
1382 * @control_flags_set: Optional Processor specific Control Flags to set.
1383 * Setting a bit here implies the corresponding mode
1384 * will be set
1385 * @control_flags_clear:Optional Processor specific Control Flags to clear.
1386 * Setting a bit here implies the corresponding mode
1387 * will be cleared
1388 *
1389 * Request type is TI_SCI_MSG_SET_CTRL, response is a generic ACK/NACK
1390 * message.
1391 */
1392struct ti_sci_msg_req_set_ctrl {
1393 struct ti_sci_msg_hdr hdr;
1394 u8 processor_id;
1395 u32 control_flags_set;
1396 u32 control_flags_clear;
1397} __packed;
1398
1399/**
1400 * struct ti_sci_msg_req_get_status - Processor boot status request
1401 * @hdr: Generic Header
1402 * @processor_id: ID of processor whose status is being requested
1403 *
1404 * Request type is TI_SCI_MSG_GET_STATUS, response is an appropriate
1405 * message, or NACK in case of inability to satisfy request.
1406 */
1407struct ti_sci_msg_req_get_status {
1408 struct ti_sci_msg_hdr hdr;
1409 u8 processor_id;
1410} __packed;
1411
1412/**
1413 * struct ti_sci_msg_resp_get_status - Processor boot status response
1414 * @hdr: Generic Header
1415 * @processor_id: ID of processor whose status is returned
1416 * @bootvector_low: Lower 32 bit address (Little Endian) of boot vector
1417 * @bootvector_high: Higher 32 bit address (Little Endian) of boot vector
1418 * @config_flags: Optional Processor specific Config Flags set currently
1419 * @control_flags: Optional Processor specific Control Flags set currently
1420 * @status_flags: Optional Processor specific Status Flags set currently
1421 *
1422 * Response structure to a TI_SCI_MSG_GET_STATUS request.
1423 */
1424struct ti_sci_msg_resp_get_status {
1425 struct ti_sci_msg_hdr hdr;
1426 u8 processor_id;
1427 u32 bootvector_low;
1428 u32 bootvector_high;
1429 u32 config_flags;
1430 u32 control_flags;
1431 u32 status_flags;
1432} __packed;
1433
Nishanth Menonaa276782016-10-18 18:08:34 -05001434#endif /* __TI_SCI_H */