/* Shared layout of firmware/rtl8821a.tbl: written by the host tool * mkrtwtbl.c, parsed by the kernel driver rtl8821au.c. */ #ifndef RTL8821A_TBL_H #define RTL8821A_TBL_H #define RTL_TBL_MAGIC 0x54575452u /* "RTWT" */ #define RTL_TBL_VERSION 1u #define RTL_TBL_MAC 1 /* u32 pairs: 8-bit MAC register writes */ #define RTL_TBL_AGC 2 /* u32 pairs: 32-bit BB writes */ #define RTL_TBL_BB 3 /* u32 pairs: 32-bit BB writes + delays */ #define RTL_TBL_RF_A 4 /* u32 pairs: RF path A writes + delays */ #define RTL_TBL_PWR_ON 5 /* power sequence: card enable */ #define RTL_TBL_PWR_OFF 6 /* power sequence: card disable */ #define RTL_TBL_PWR_LPS 7 /* power sequence: enter LPS */ #define RTL_PWR_CMD_READ 0 #define RTL_PWR_CMD_WRITE 1 #define RTL_PWR_CMD_POLLING 2 #define RTL_PWR_CMD_DELAY 3 #define RTL_PWR_CMD_END 4 #define RTL_PWR_DELAY_US 0 #define RTL_PWR_DELAY_MS 1 #endif