Skip to content

Commit

Permalink
fw-api: CL 26238739, 26268166 - update fw common interface file txmon…
Browse files Browse the repository at this point in the history
…_tlvs.h #3

CRs-Fixed: 2262693
Change-Id: I35d04044fa0d17d69fa08848dff64e601e75843b
  • Loading branch information
Kenvish Butani authored and Ravindra Konda committed Mar 20, 2024
1 parent 682c9f1 commit cb54741
Showing 1 changed file with 71 additions and 1 deletion.
72 changes: 71 additions & 1 deletion fw/txmon_tlvs.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
* Copyright (c) 2022,2024 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
Expand Down Expand Up @@ -34,6 +34,22 @@
#define TXMON_FW2SW_MON_FES_SETUP_SCHEDULE_ID_M 0xffffffff
#define TXMON_FW2SW_MON_FES_SETUP_SCHEDULE_ID_S 0

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_M 0x000fffff
#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_S 0

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_M 0x000007ff
#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_S 0

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_M 0x00003800
#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_S 11

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_M 0x0007c000
#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_S 14

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_M 0x00080000
#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_S 19


#define TXMON_FW2SW_MON_FES_SETUP_BAND_CENTER_FREQ1_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_BAND_CENTER_FREQ1_M) >> \
TXMON_FW2SW_MON_FES_SETUP_BAND_CENTER_FREQ1_S)
Expand Down Expand Up @@ -84,6 +100,58 @@
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_SCHEDULE_ID_S)); \
} while (0)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_M) >> \
TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_S)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SET(_var, _val) \
do { \
HTT_CHECK_SET_VAL(TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE, _val); \
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_S)); \
} while (0)


#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_M) >> \
TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_S)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_SET(_var, _val) \
do { \
HTT_CHECK_SET_VAL(TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM, _val); \
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_SEQ_NUM_S)); \
} while (0)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_M) >> \
TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_S)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_SET(_var, _val) \
do { \
HTT_CHECK_SET_VAL(TXMON_FW2SW_MON_FES_SETUP_FW_COOKIEHW_LINK_ID, _val); \
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_HW_LINK_ID_S)); \
} while (0)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_M) >> \
TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_S)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_SET(_var, _val) \
do { \
HTT_CHECK_SET_VAL(TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID, _val); \
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_PACKET_ID_S)); \
} while (0)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_GET(_var) \
(((_var) & TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_M) >> \
TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_S)

#define TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_SET(_var, _val) \
do { \
HTT_CHECK_SET_VAL(TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID, _val); \
((_var) |= ((_val) << TXMON_FW2SW_MON_FES_SETUP_FW_COOKIE_VALID_S)); \
} while (0)


enum txmon_fw2sw_user_id {
TXMON_FW2SW_TYPE_FES_SETUP = 0, /* Placed after FES_SETUP */
TXMON_FW2SW_TYPE_FES_SETUP_USER = 1, /* Placed before FES_SETUP_COMPLETE */
Expand All @@ -98,6 +166,8 @@ typedef struct txmon_fw2sw_fes_setup {
mhz : 16,
reserved : 8;
A_UINT32 schedule_id;
A_UINT32 fw_cookie : 20,
rsvd : 12;
} txmon_fw2sw_fes_setup_t;

typedef struct txmon_fw2sw_fes_setup_ext {
Expand Down

0 comments on commit cb54741

Please sign in to comment.