From: Michael Buesch Date: Tue, 2 Aug 2016 17:19:39 +0000 (+0200) Subject: debug: Fix ordering of HF bits X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=b77c0a3be0f9fff86cb4e763adbdec2bccb5071f;p=b43-tools.git debug: Fix ordering of HF bits Signed-off-by: Michael Buesch --- diff --git a/debug/include/shm.inc b/debug/include/shm.inc index 6d69352..c88fc77 100644 --- a/debug/include/shm.inc +++ b/debug/include/shm.inc @@ -33,48 +33,47 @@ #define SHM_PHYTYPE SHM(0x052) /* PHY type */ #define SHM_ANTSWAP SHM(0x05C) /* Antenna swap threshold */ +// New SHM addresses; Source: d11.h 578947 2015-08-13 04:46:06Z +// http://github.com/tuapuikia/asuswrt-phantom/blob/master/release/src-rt-7.14.114.x/src/include/d11.h +/* Host flags to turn on ucode options */ +#define SHM_HOST_FLAGS1 SHM(0x05E) #define SHM_HOST_FLAGS1_ANTDIVHELP 0 /* bit0: ucode antenna div helper */ #define SHM_HOST_FLAGS1_SYMW 1 /* bit1: G-PHY SYM workaround */ #define SHM_HOST_FLAGS1_RXPULLW 2 /* bit2: RX pullup workaround */ #define SHM_HOST_FLAGS1_CCKBOOST 3 /* bit3: 4dB CCK power boost (exclusive with OFDM boost) */ -#define SHM_HOST_FLAGS1_BTCOEX 4 /* bit4: Bluetooth coexistence */ +#define SHM_HOST_FLAGS1_BTCOEX 4 /* bit4: Bluetooth coexistence */ #define SHM_HOST_FLAGS1_GDCW 5 /* bit5: G-PHY DC canceller filter bw workaround */ #define SHM_HOST_FLAGS1_OFDMPABOOST 6 /* bit6: Enable PA gain boost for OFDM */ #define SHM_HOST_FLAGS1_ACPR 7 /* bit7: Disable for Japan, channel 14 */ #define SHM_HOST_FLAGS1_EDCF 8 /* bit8: on if WME and MAC suspended */ #define SHM_HOST_FLAGS1_TSSIRPSMW 9 /* bit9: TSSI reset PSM ucode workaround */ #define SHM_HOST_FLAGS1_20IN40IQW 9 /* bit9: 20 in 40 MHz I/Q workaround (rev >= 13 only) */ -#define SHM_HOST_FLAGS1_DSCRQ 10 /* bit10: Disable slow clock request in ucode */ +#define SHM_HOST_FLAGS1_DSCRQ 10 /* bit10: Disable slow clock request in ucode */ #define SHM_HOST_FLAGS1_ACIW 11 /* bit11: ACI workaround: shift bits by 2 on PHY CRS */ -#define SHM_HOST_FLAGS1_2060W 12 /* bit12: 2060 radio workaround */ -#define SHM_HOST_FLAGS1_RADARW 13 /* bit13: Radar workaround */ +#define SHM_HOST_FLAGS1_2060W 12 /* bit12: 2060 radio workaround */ +#define SHM_HOST_FLAGS1_RADARW 13 /* bit13: Radar workaround */ #define SHM_HOST_FLAGS1_USEDEFKEYS 14 /* bit14: Enable use of default keys */ #define SHM_HOST_FLAGS1_AFTERBURNER 15 /* bit15: Afterburner enabled */ +#define SHM_HOST_FLAGS2 SHM(0x060) #define SHM_HOST_FLAGS2_BT4PRIOCOEX 0 /* bit0: Bluetooth 4-priority coexistence */ -#define SHM_HOST_FLAGS2_FWKUP 1 /* bit1: Fast wake-up ucode */ +#define SHM_HOST_FLAGS2_FWKUP 1 /* bit1: Fast wake-up ucode */ #define SHM_HOST_FLAGS2_VCORECALC 2 /* bit2: Force VCO recalculation when powering up synthpu */ -#define SHM_HOST_FLAGS2_PCISCW 3 /* bit3: PCI slow clock workaround */ +#define SHM_HOST_FLAGS2_PCISCW 3 /* bit3: PCI slow clock workaround */ #define SHM_HOST_FLAGS2_4318TSSI 5 /* bit5: 4318 TSSI */ #define SHM_HOST_FLAGS2_FBCMCFIFO 6 /* bit6: Flush bcast/mcast FIFO immediately */ -#define SHM_HOST_FLAGS2_HWPCTL 7 /* bit7: Enable hardware power control */ +#define SHM_HOST_FLAGS2_HWPCTL 7 /* bit7: Enable hardware power control */ #define SHM_HOST_FLAGS2_BTCOEXALT 8 /* bit8: Bluetooth coexistence in alternate pins */ #define SHM_HOST_FLAGS2_TXBTCHECK 9 /* bit9: Bluetooth check during transmission */ #define SHM_HOST_FLAGS2_SKCFPUP 10 /* bit10: Skip CFP update */ #define SHM_HOST_FLAGS2_N40W 11 /* bit11: N PHY 40 MHz workaround (rev >= 13 only) */ -#define SHM_HOST_FLAGS2_ANTSEL 13 /* bit13: Antenna selection (for testing antenna div.) */ +#define SHM_HOST_FLAGS2_ANTSEL 13 /* bit13: Antenna selection (for testing antenna div.) */ #define SHM_HOST_FLAGS2_BT3COEXT 13 /* bit13: Bluetooth 3-wire coexistence (rev >= 13 only) */ -#define SHM_HOST_FLAGS2_BTCANT 14 /* bit14: Bluetooth coexistence (antenna mode) (rev >= 13 only) */ +#define SHM_HOST_FLAGS2_BTCANT 14 /* bit14: Bluetooth coexistence (antenna mode) (rev >= 13 only) */ +#define SHM_HOST_FLAGS3 SHM(0x062) #define SHM_HOST_FLAGS3_ANTSELEN 0 /* bit0: Antenna selection enabled (rev >= 13 only) */ #define SHM_HOST_FLAGS3_ANTSELMODE 1 /* bit1: Antenna selection mode (rev >= 13 only) */ -#define SHM_HOST_FLAGS3_MLADVW 4 /* bit4: N PHY ML ADV workaround (rev >= 13 only) */ +#define SHM_HOST_FLAGS3_MLADVW 4 /* bit4: N PHY ML ADV workaround (rev >= 13 only) */ #define SHM_HOST_FLAGS3_PR45960W 11 /* bit11: PR 45960 workaround (rev >= 13 only) */ - -// New SHM addresses; Source: d11.h 578947 2015-08-13 04:46:06Z -// http://github.com/tuapuikia/asuswrt-phantom/blob/master/release/src-rt-7.14.114.x/src/include/d11.h -/* Host flags to turn on ucode options */ -#define SHM_HOST_FLAGS1 SHM(0x05E) -#define SHM_HOST_FLAGS2 SHM(0x060) -#define SHM_HOST_FLAGS3 SHM(0x062) #define SHM_HOST_FLAGS4 SHM(0x078) #define SHM_HOST_FLAGS5 SHM(0x0D4)