
Added ipq5332 target header files under qca5332 to make fw-api project compatible to host. Change-Id: Iee6b3f2a809f31e62b45a0f6e9a7cbb66e070fa0
97 řádky
3.3 KiB
C
97 řádky
3.3 KiB
C
|
|
/* Copyright (c) 2022, Qualcomm Innovation Center, Inc. All rights reserved.
|
|
*
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
* copyright notice and this permission notice appear in all copies.
|
|
*
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef _UNIFORM_REO_CMD_HEADER_H_
|
|
#define _UNIFORM_REO_CMD_HEADER_H_
|
|
#if !defined(__ASSEMBLER__)
|
|
#endif
|
|
|
|
#define NUM_OF_DWORDS_UNIFORM_REO_CMD_HEADER 1
|
|
|
|
|
|
struct uniform_reo_cmd_header {
|
|
#ifndef WIFI_BIT_ORDER_BIG_ENDIAN
|
|
uint32_t reo_cmd_number : 16, // [15:0]
|
|
reo_status_required : 1, // [16:16]
|
|
reserved_0a : 15; // [31:17]
|
|
#else
|
|
uint32_t reserved_0a : 15, // [31:17]
|
|
reo_status_required : 1, // [16:16]
|
|
reo_cmd_number : 16; // [15:0]
|
|
#endif
|
|
};
|
|
|
|
|
|
/* Description REO_CMD_NUMBER
|
|
|
|
Consumer: REO/SW/DEBUG
|
|
Producer: SW
|
|
|
|
This number can be used by SW to track, identify and link
|
|
the created commands with the command statusses
|
|
|
|
|
|
<legal all>
|
|
*/
|
|
|
|
#define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_OFFSET 0x00000000
|
|
#define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_LSB 0
|
|
#define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MSB 15
|
|
#define UNIFORM_REO_CMD_HEADER_REO_CMD_NUMBER_MASK 0x0000ffff
|
|
|
|
|
|
/* Description REO_STATUS_REQUIRED
|
|
|
|
Consumer: REO
|
|
Producer: SW
|
|
|
|
<enum 0 NoStatus> REO does not need to generate a status
|
|
TLV for the execution of this command
|
|
<enum 1 StatusRequired> REO shall generate a status TLV
|
|
for the execution of this command
|
|
|
|
<legal all>
|
|
*/
|
|
|
|
#define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_OFFSET 0x00000000
|
|
#define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_LSB 16
|
|
#define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MSB 16
|
|
#define UNIFORM_REO_CMD_HEADER_REO_STATUS_REQUIRED_MASK 0x00010000
|
|
|
|
|
|
/* Description RESERVED_0A
|
|
|
|
<legal 0>
|
|
*/
|
|
|
|
#define UNIFORM_REO_CMD_HEADER_RESERVED_0A_OFFSET 0x00000000
|
|
#define UNIFORM_REO_CMD_HEADER_RESERVED_0A_LSB 17
|
|
#define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MSB 31
|
|
#define UNIFORM_REO_CMD_HEADER_RESERVED_0A_MASK 0xfffe0000
|
|
|
|
|
|
|
|
#endif // UNIFORM_REO_CMD_HEADER
|