2025-05-10 21:58:58 +08:00

85 lines
2.7 KiB
C

/******************************************************************************
*
* Copyright(c) 2019 Realtek Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*****************************************************************************/
#ifndef _PHL_CUSTOM_DEF_H_
#define _PHL_CUSTOM_DEF_H_
#define PRIVATE_EVT_START (BIT15)
enum rtw_customer_feature_id {
CUS_ID_NONE = 0,
CUS_ID_FB = 1,
CUS_ID_XH = 2,
CUS_ID_MAX
};
enum rtw_msg_custom_evt_id {
/* Reserved for Custom Feature
* be aware that the order of the following id are also used in
* upper layer application, thus, it shall not be changed to
* avoid mismatch error!!
*/
MSG_EVT_CUSTOME_NONE = PRIVATE_EVT_START,
MSG_EVT_CUSTOME_FEATURE_ENABLE = PRIVATE_EVT_START + 1,
MSG_EVT_CUSTOME_FEATURE_QUERY = PRIVATE_EVT_START + 2,
MSG_EVT_CUSTOME_TESTMODE_PARAM = PRIVATE_EVT_START + 3,
MSG_EVT_CUSTOME_SET_WIFI_ROLE = PRIVATE_EVT_START + 4,
MSG_EVT_EDCA_ADJUST = PRIVATE_EVT_START + 5,
MSG_EVT_EDCA_QUERY = PRIVATE_EVT_START + 6,
MSG_EVT_NAV_PADDING = PRIVATE_EVT_START + 7,
MSG_EVT_NAV_PADDING_QUERY = PRIVATE_EVT_START + 8,
MSG_EVT_CUSTOM_CMD_DONE = PRIVATE_EVT_START + 9,
MSG_EVT_AMPDU_CFG = PRIVATE_EVT_START + 10,
MSG_EVT_AMPDU_QUERY = PRIVATE_EVT_START + 11,
MSG_EVT_COLDBOOT_CALI = PRIVATE_EVT_START + 12,
MSG_EVT_PDTHR_CFG = PRIVATE_EVT_START + 13,
MSG_EVT_PDTHR_QUERY = PRIVATE_EVT_START + 14,
MSG_EVT_POP_CFG = PRIVATE_EVT_START + 15,
MSG_EVT_POP_QUERY = PRIVATE_EVT_START + 16,
MSG_EVT_STATS_RPT_CFG = PRIVATE_EVT_START + 17,
MSG_EVT_STATS_RPT_NOTIFY = PRIVATE_EVT_START + 18,
MSG_EVT_CHNL_SW = PRIVATE_EVT_START + 19,
MSG_EVT_STA_ASOC_NOTIFY = PRIVATE_EVT_START + 20,
MSG_EVT_BCN_OPT_IES_CFG = PRIVATE_EVT_START + 21,
MSG_EVT_BCN_VDR_IE_CFG = PRIVATE_EVT_START + 22,
MSG_EVT_SET_AP_START_CHNL = PRIVATE_EVT_START + 23,
MSG_EVT_SET_CUS_CHNL_LIST = PRIVATE_EVT_START + 24,
MSG_EVT_GET_CUS_CHNL_LIST = PRIVATE_EVT_START + 25,
};
enum custom_type {
CUSTOM_CORE = 0,
CUSTOM_PHL = 1,
CUSTOM_MAX
};
/*
* #pragma pack(1) would set the structure as 1-byte alignment .
*/
#pragma pack(1)
struct rtw_custom_decrpt {
u32 evt_id;
u32 customer_id;
enum custom_type type;
u32 len;
};
#pragma pack()
struct rtw_phl_custom_ampdu_cfg {
u32 max_agg_time_32us;
u32 max_agg_num;
};
#endif /*_PHL_CUSTOM_DEF_H_*/