400 { 0x00000015, 0x00000015, 0x0000001d, 0x00000015 } },
402 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
404 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
406 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
408 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
410 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
412 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
414 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
416 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
418 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
420 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f } },
422 { 0x00000168, 0x000001e0, 0x000001b8, 0x00000168 } },
424 { 0x00000230, 0x000001e0, 0x000000b0, 0x00000230 } },
426 { 0x00000d98, 0x00001180, 0x00001f48, 0x00000d98 } },
428 { 0x0000a0e0, 0x00014068, 0x00005880, 0x0000a0e0 } },
430 { 0x04000400, 0x08000800, 0x20003000, 0x04000400 } },
432 { 0x0e8d8fa7, 0x0e8d8fcf, 0x01608f95, 0x0e8d8fa7 } },
434 { 0x00000000, 0x00000003, 0x00000000, 0x00000000 } },
436 { 0x02020200, 0x02020200, 0x02010200, 0x02020200 } },
438 { 0x00000e0e, 0x00000e0e, 0x00000707, 0x00000e0e } },
440 { 0x0a020001, 0x0a020001, 0x05010000, 0x0a020001 } },
442 { 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e } },
444 { 0x00000007, 0x00000007, 0x0000000b, 0x0000000b } },
446 { 0x1372169c, 0x137216a5, 0x137216a8, 0x1372169c } },
448 { 0x0018ba67, 0x0018ba67, 0x0018ba69, 0x0018ba69 } },
450 { 0x0c28b4e0, 0x0c28b4e0, 0x0c28b4e0, 0x0c28b4e0 } },
452 { 0x7e800d2e, 0x7e800d2e, 0x7ec00d2e, 0x7e800d2e } },
454 { 0x31375d5e, 0x31375d5e, 0x313a5d5e, 0x31375d5e } },
456 { 0x0000bd10, 0x0000bd10, 0x0000bd38, 0x0000bd10 } },
458 { 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00 } },
460 { 0x00002710, 0x00002710, 0x0000157c, 0x00002710 } },
462 { 0x00000190, 0x00000190, 0x00000084, 0x00000190 } },
464 { 0x6fe01020, 0x6fe01020, 0x6fe00920, 0x6fe01020 } },
466 { 0x05ff14ff, 0x05ff14ff, 0x05ff14ff, 0x05ff19ff } },
468 { 0x00000010, 0x00000014, 0x00000010, 0x00000010 } },
688 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
690 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
692 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
694 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
696 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
698 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
700 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
702 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
704 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
706 { 0x002ffc0f, 0x002ffc0f, 0x002ffc1f, 0x002ffc0f, 0x002ffc0f } },
708 { 0x00000230, 0x000001e0, 0x000000b0, 0x00000160, 0x000001e0 } },
710 { 0x00000168, 0x000001e0, 0x000001b8, 0x0000018c, 0x000001e0 } },
712 { 0x00000e60, 0x00001180, 0x00001f1c, 0x00003e38, 0x00001180 } },
714 { 0x0000a0e0, 0x00014068, 0x00005880, 0x0000b0e0, 0x00014068 } },
716 { 0x03e803e8, 0x06e006e0, 0x04200420, 0x08400840, 0x06e006e0 } },
718 { 0x00000000, 0x00000003, 0x00000000, 0x00000000, 0x00000003 } },
720 { 0x02020200, 0x02020200, 0x02010200, 0x02020200, 0x02020200 } },
722 { 0x00000e0e, 0x00000e0e, 0x00000707, 0x00000e0e, 0x00000e0e } },
724 { 0x1372161c, 0x13721c25, 0x13721722, 0x137216a2, 0x13721c25 } },
726 { 0x00009d10, 0x00009d10, 0x00009d18, 0x00009d18, 0x00009d10 } },
728 { 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00, 0x0001ce00 } },
730 { 0x409a4190, 0x409a4190, 0x409a4190, 0x409a4190, 0x409a4190 } },
732 { 0x000001b8, 0x000001b8, 0x00000084, 0x00000108, 0x000001b8 } },
734 { 0x10058a05, 0x10058a05, 0x10058a05, 0x10058a05, 0x10058a05 } },
736 { 0x00000000, 0x00000000, 0x00000000, 0x00000108, 0x00000000 } },
743 { 0x00008015, 0x00008015, 0x00008015, 0x00008015, 0x00008015 } },
745 { 0x128d8fa7, 0x09880fcf, 0x04e00f95, 0x12e00fab, 0x09880fcf } },
747 { 0x0a020001, 0x0a020001, 0x05010100, 0x0a020001, 0x0a020001 } },
749 { 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e } },
751 { 0x00000007, 0x00000007, 0x0000000b, 0x0000000b, 0x0000000b } },
753 { 0x0018da5a, 0x0018da5a, 0x0018ca69, 0x0018ca69, 0x0018ca69 } },
755 { 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0 } },
757 { 0x7e800d2e, 0x7e800d2e, 0x7ee84d2e, 0x7ee84d2e, 0x7e800d2e } },
759 { 0x3137665e, 0x3137665e, 0x3137665e, 0x3137665e, 0x3137615e } },
761 { 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb080, 0x050cb080 } },
763 { 0x00002710, 0x00002710, 0x0000157c, 0x00002af8, 0x00002710 } },
765 { 0xf7b81020, 0xf7b81020, 0xf7b80d20, 0xf7b81020, 0xf7b81020 } },
767 { 0x642c416a, 0x642c416a, 0x6440416a, 0x6440416a, 0x6440416a } },
769 { 0x1883800a, 0x1883800a, 0x1873800a, 0x1883800a, 0x1883800a } },
793 { 0x00008015, 0x00008015, 0x00008015, 0x00008015, 0x00008015 } },
795 { 0x128d93a7, 0x098813cf, 0x04e01395, 0x12e013ab, 0x098813cf } },
797 { 0x0a020001, 0x0a020001, 0x05020100, 0x0a020001, 0x0a020001 } },
799 { 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e } },
801 { 0x00000007, 0x00000007, 0x0000000b, 0x0000000b, 0x0000000b } },
803 { 0x0018da6d, 0x0018da6d, 0x0018ca75, 0x0018ca75, 0x0018ca75 } },
805 { 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0, 0x0de8b4e0 } },
807 { 0x7e800d2e, 0x7e800d2e, 0x7ee80d2e, 0x7ee80d2e, 0x7e800d2e } },
809 { 0x3137665e, 0x3137665e, 0x3137665e, 0x3137665e, 0x3137665e } },
811 { 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 } },
813 { 0x000007d0, 0x000007d0, 0x0000044c, 0x00000898, 0x000007d0 } },
815 { 0xf7b81020, 0xf7b81020, 0xf7b80d10, 0xf7b81010, 0xf7b81010 } },
817 { 0x00000000, 0x00000000, 0x00000008, 0x00000008, 0x00000008 } },
819 { 0xd6be6788, 0xd6be6788, 0xd03e6788, 0xd03e6788, 0xd03e6788 } },
821 { 0x642c0140, 0x642c0140, 0x6442c160, 0x6442c160, 0x6442c160 } },
823 { 0x1883800a, 0x1883800a, 0x1873800a, 0x1883800a, 0x1883800a } },
844 { 0x00000015, 0x00000015, 0x00000015, 0x00000015, 0x00000015 } },
846 { 0x128d93a7, 0x098813cf, 0x04e01395, 0x12e013ab, 0x098813cf } },
848 { 0x0a020001, 0x0a020001, 0x05020100, 0x0a020001, 0x0a020001 } },
850 { 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e } },
852 { 0x00000007, 0x00000007, 0x0000000b, 0x0000000b, 0x0000000b } },
854 { 0x0018fa61, 0x0018fa61, 0x001a1a63, 0x001a1a63, 0x001a1a63 } },
856 { 0x0c98b4e0, 0x0c98b4e0, 0x0c98b0da, 0x0c98b0da, 0x0c98b0da } },
858 { 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e } },
860 { 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e } },
862 { 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 } },
864 { 0x000007d0, 0x000007d0, 0x0000044c, 0x00000898, 0x000007d0 } },
866 { 0xf7b81000, 0xf7b81000, 0xf7b80d00, 0xf7b81000, 0xf7b81000 } },
868 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
870 { 0xd6be6788, 0xd6be6788, 0xd03e6788, 0xd03e6788, 0xd03e6788 } },
872 { 0x002ec1e0, 0x002ec1e0, 0x002ac120, 0x002ac120, 0x002ac120 } },
874 { 0x1883800a, 0x1883800a, 0x1863800a, 0x1883800a, 0x1883800a } },
876 { 0x18010000, 0x18010000, 0x18010000, 0x18010000, 0x18010000 } },
878 { 0x30032602, 0x30032602, 0x30032602, 0x30032602, 0x30032602 } },
880 { 0x48073e06, 0x48073e06, 0x48073e06, 0x48073e06, 0x48073e06 } },
882 { 0x560b4c0a, 0x560b4c0a, 0x560b4c0a, 0x560b4c0a, 0x560b4c0a } },
884 { 0x641a600f, 0x641a600f, 0x641a600f, 0x641a600f, 0x641a600f } },
886 { 0x784f6e1b, 0x784f6e1b, 0x784f6e1b, 0x784f6e1b, 0x784f6e1b } },
888 { 0x868f7c5a, 0x868f7c5a, 0x868f7c5a, 0x868f7c5a, 0x868f7c5a } },
890 { 0x90cf865b, 0x90cf865b, 0x8ecf865b, 0x8ecf865b, 0x8ecf865b } },
892 { 0x9d4f970f, 0x9d4f970f, 0x9b4f970f, 0x9b4f970f, 0x9b4f970f } },
894 { 0xa7cfa38f, 0xa7cfa38f, 0xa3cf9f8f, 0xa3cf9f8f, 0xa3cf9f8f } },
896 { 0xb55faf1f, 0xb55faf1f, 0xb35faf1f, 0xb35faf1f, 0xb35faf1f } },
898 { 0xbddfb99f, 0xbddfb99f, 0xbbdfb99f, 0xbbdfb99f, 0xbbdfb99f } },
900 { 0xcb7fc53f, 0xcb7fc53f, 0xcb7fc73f, 0xcb7fc73f, 0xcb7fc73f } },
902 { 0xd5ffd1bf, 0xd5ffd1bf, 0xd3ffd1bf, 0xd3ffd1bf, 0xd3ffd1bf } },
983 { 0x00000015, 0x00000015, 0x00000015, 0x00000015, 0x00000015 } },
985 { 0x128d93a7, 0x098813cf, 0x04e01395, 0x12e013ab, 0x098813cf } },
987 { 0x0a020001, 0x0a020001, 0x05020000, 0x0a020001, 0x0a020001 } },
989 { 0x00000e00, 0x00000e00, 0x00000e00, 0x00000e00, 0x00000e00 } },
991 { 0x00000002, 0x00000002, 0x0000000a, 0x0000000a, 0x0000000a } },
993 { 0x0018da6d, 0x0018da6d, 0x001a6a64, 0x001a6a64, 0x001a6a64 } },
995 { 0x0de8b4e0, 0x0de8b4e0, 0x0de8b0da, 0x0c98b0da, 0x0de8b0da } },
997 { 0x7e800d2e, 0x7e800d2e, 0x7ee80d2e, 0x7ec80d2e, 0x7e800d2e } },
999 { 0x3137665e, 0x3137665e, 0x3137665e, 0x3139605e, 0x3137665e } },
1001 { 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 } },
1003 { 0x000007d0, 0x000007d0, 0x0000044c, 0x00000898, 0x000007d0 } },
1005 { 0xf7b81000, 0xf7b81000, 0xf7b80d00, 0xf7b81000, 0xf7b81000 } },
1007 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1009 { 0xd6be6788, 0xd6be6788, 0xd03e6788, 0xd03e6788, 0xd03e6788 } },
1011 { 0x002c0140, 0x002c0140, 0x0042c140, 0x0042c140, 0x0042c140 } },
1013 { 0x1883800a, 0x1883800a, 0x1863800a, 0x1883800a, 0x1883800a } },
1105 { 0x00000015, 0x00000015, 0x00000015, 0x00000015, 0x00000015 } },
1107 { 0x128d93a7, 0x098813cf, 0x04e01395, 0x12e013ab, 0x098813cf } },
1109 { 0x00000000, 0x00000001, 0x00000000, 0x00000000, 0x00000001 } },
1111 { 0x0a020001, 0x0a020001, 0x05020100, 0x0a020001, 0x0a020001 } },
1113 { 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e, 0x00000e0e } },
1115 { 0x00000003, 0x00000003, 0x0000000b, 0x0000000b, 0x0000000b } },
1117 { 0x1372161c, 0x13721c25, 0x13721722, 0x13721422, 0x13721c25 } },
1119 { 0x0018fa61, 0x0018fa61, 0x00199a65, 0x00199a65, 0x00199a65 } },
1121 { 0x0c98b4e0, 0x0c98b4e0, 0x0c98b0da, 0x0c98b0da, 0x0c98b0da } },
1123 { 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e, 0x7ec80d2e } },
1125 { 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e, 0x3139605e } },
1127 { 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081, 0x050cb081 } },
1129 { 0x000007d0, 0x000007d0, 0x0000044c, 0x00000898, 0x000007d0 } },
1131 { 0xf7b81000, 0xf7b81000, 0xf7b80d00, 0xf7b81000, 0xf7b81000 } },
1133 { 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x00000000 } },
1135 { 0xd6be6788, 0xd6be6788, 0xd03e6788, 0xd03e6788, 0xd03e6788 } },
1137 { 0x00000140, 0x00000140, 0x0052c140, 0x0052c140, 0x0052c140 } },
1139 { 0x1883800a, 0x1883800a, 0x1863800a, 0x1883800a, 0x1883800a } },
1141 { 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf } },
1143 { 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf } },
1145 { 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf } },
1147 { 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf } },
1149 { 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf, 0xa7cfa7cf } },
1378 const struct ath5k_ini *ini_regs,
int change_channel)
1383 for (i = 0; i <
size; i++) {
1386 if (change_channel &&
1411 for (i = 0; i <
size; i++) {
1439 switch (
ah->ah_radio) {
1534 DBG(
"ath5k: unsupported channel mode %d\n", mode);
#define AR5K_PHY_SPENDING
#define AR5K_DCU_GBL_IFS_EIFS
#define AR5K_PHY_FRAME_CTL_5211
#define AR5K_PHY_SETTLING
#define EINVAL
Invalid argument.
#define AR5K_TUNE_RSSI_THRES
#define AR5K_RX_FILTER_5210
#define AR5K_RATE_DUR(_n)
#define AR5K_PHY_TIMING_3
#define AR5K_PHY_TXPOWER_RATE_MAX
#define AR5K_PHY_AGCCOARSE
#define AR5K_PHY_PCDAC_TXPOWER_BASE
#define AR5K_RX_FILTER_5211
#define AR5K_PHY_TIMING_8
#define AR5K_REG_WAIT(_i)
#define AR5K_PHY_WEAK_OFDM_HIGH_THR
#define AR5K_PHY_CCK_RX_CTL_4
#define AR5K_PHY_PAPD_PROBE
#define AR5K_PHY_MAX_RX_LEN
static const struct ath5k_ini rf2413_ini_common_end[]
static const struct ath5k_ini_mode rf5111_ini_mode_end[]
#define AR5K_PHY_WEAK_OFDM_LOW_THR
uint8_t size
Entry size (in 32-bit words)
#define AR5K_MCAST_FILTER0_5210
#define AR5K_DCU_GBL_IFS_SLOT
static const struct ath5k_ini rf5112_ini_common_end[]
#define AR5K_PHY_BLUETOOTH
#define AR5K_PHY_BIN_MASK_2
#define AR5K_DCU_GBL_IFS_MISC
enum ath5k_ini::@14 ini_mode
#define AR5K_MCAST_FILTER1_5210
#define AR5K_PHY_TXPOWER_RATE1
static const struct ath5k_ini_mode rf2425_ini_mode_end[]
#define AR5K_MCAST_FILTER1_5211
ath5k_hw_get_isr - Get interrupt status
int ath5k_hw_write_initvals(struct ath5k_hw *ah, u8 mode, int change_channel)
#define AR5K_RF_BUFFER_CONTROL_4
static const struct ath5k_ini rf5111_ini_bbgain[]
#define AR5K_PHY_PCDAC_TXPOWER(_n)
#define AR5K_OFDM_FIL_CNT
#define AR5K_DCU_TX_FILTER_CLR
static const struct ath5k_ini_mode ar5212_ini_mode_start[]
#define AR5K_PHY_TIMING_11
#define AR5K_PROFCNT_CYCLE
#define AR5K_FRAME_CTL_QOSM
#define AR5K_TUNE_MIN_TX_FIFO_THRES
#define AR5K_CFP_PERIOD_5211
static const struct ath5k_ini_mode rf2413_ini_mode_end[]
#define AR5K_QUEUE_DFS_LOCAL_IFS(_q)
#define AR5K_TSF_L32_5210
#define AR5K_CFP_DUR_5211
#define AR5K_PHY_TXPOWER_RATE3
static const struct ath5k_ini ar5211_ini[]
#define AR5K_PHY_RFBUS_REQ
static const struct ath5k_ini rf5112_ini_bbgain[]
#define AR5K_PHY_FAST_ADC
static const struct ath5k_ini ar5210_ini[]
#define AR5K_CFP_PERIOD_5210
#define AR5K_PHYERR_CNT2_MASK
#define AR5K_DCU_TX_FILTER_1(_n)
#define AR5K_DEFAULT_ANTENNA
#define AR5K_PHY_TIMING_7
#define AR5K_PHY_HEAVY_CLIP_ENABLE
static const struct ath5k_ini rf5111_ini_common_end[]
static void ath5k_hw_reg_write(struct ath5k_hw *ah, u32 val, u16 reg)
#define AR5K_PHYERR_CNT1_MASK
#define AR5K_PHY_ACT_DISABLE
#define AR5K_PHY_WARM_RESET
#define AR5K_PHY_BIN_MASK_CTL
static const struct ath5k_ini ar5212_ini_common_start[]
#define AR5K_DCU_TX_FILTER_SET
static const struct ath5k_ini_mode rf5413_ini_mode_end[]
#define AR5K_DIAG_SW_5211
#define AR5K_DCU_GBL_IFS_SIFS
#define AR5K_DIAG_SW_5210
#define AR5K_DCU_TX_FILTER_0(_n)
static const struct ath5k_ini_mode rf5112_ini_mode_end[]
#define AR5K_PHY_GAIN_2GHZ
#define AR5K_PHY_TXPOWER_RATE4
#define AR5K_PHY_BIN_MASK_1
#define AR5K_PHY_CCK_CROSSCORR
static u32 ath5k_hw_reg_read(struct ath5k_hw *ah, u16 reg)
static const struct ath5k_ini rf5413_ini_common_end[]
#define AR5K_PHY_DAG_CCK_CTL
static void ath5k_hw_ini_registers(struct ath5k_hw *ah, unsigned int size, const struct ath5k_ini *ini_regs, int change_channel)
#define DBG(...)
Print a debugging message.
#define AR5K_PHY_DESIRED_SIZE
#define AR5K_PHY_BIN_MASK_3
#define AR5K_QUEUE_TXDP(_q)
static const struct ath5k_ini_mode ar5211_ini_mode[]
static const struct ath5k_ini rf2425_ini_common_end[]
static void ath5k_hw_ini_mode_registers(struct ath5k_hw *ah, unsigned int size, const struct ath5k_ini_mode *ini_mode, u8 mode)
#define AR5K_PHY_CCKTXCTL
#define AR5K_PHY_RX_DELAY
#define AR5K_PROFCNT_RXCLR
#define AR5K_MCAST_FILTER0_5211
#define AR5K_PHY_TXPOWER_RATE2
#define AR5K_CFP_DUR_5210
#define AR5K_PHY_ACT_ENABLE
#define AR5K_PHY_GAIN_OFFSET
#define AR5K_PHY_OFDM_SELFCORR