Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
tables_nphy.c File Reference
#include "b43.h"
#include "tables_nphy.h"
#include "phy_common.h"
#include "phy_n.h"

Go to the source code of this file.

Macros

#define check(table, size)   BUILD_BUG_ON(ARRAY_SIZE(b43_ntab_##table) != B43_NTAB_##size##_SIZE)
 
#define ntab_upload(dev, offset, data)
 
#define ntab_upload_r3(dev, offset, data)
 

Functions

u32 b43_ntab_read (struct b43_wldev *dev, u32 offset)
 
void b43_ntab_read_bulk (struct b43_wldev *dev, u32 offset, unsigned int nr_elements, void *_data)
 
void b43_ntab_write (struct b43_wldev *dev, u32 offset, u32 value)
 
void b43_ntab_write_bulk (struct b43_wldev *dev, u32 offset, unsigned int nr_elements, const void *_data)
 
void b43_nphy_rev0_1_2_tables_init (struct b43_wldev *dev)
 
void b43_nphy_rev3plus_tables_init (struct b43_wldev *dev)
 
const u32b43_nphy_get_tx_gain_table (struct b43_wldev *dev)
 
struct
nphy_gain_ctl_workaround_entry
b43_nphy_get_gain_ctl_workaround_ent (struct b43_wldev *dev, bool ghz5, bool ext_lna)
 
struct
nphy_rf_control_override_rev7
b43_nphy_get_rf_ctl_over_rev7 (struct b43_wldev *dev, u16 field, u8 override)
 

Variables

const s8 b43_ntab_papd_pga_gain_delta_ipa_2g []
 
const u16 tbl_iqcal_gainparams [2][9][8]
 
struct nphy_txiqcal_ladder ladder_lo []
 
struct nphy_txiqcal_ladder ladder_iq []
 
const u16 loscale []
 
const u16 tbl_tx_iqlo_cal_loft_ladder_40 []
 
const u16 tbl_tx_iqlo_cal_loft_ladder_20 []
 
const u16 tbl_tx_iqlo_cal_iqimb_ladder_40 []
 
const u16 tbl_tx_iqlo_cal_iqimb_ladder_20 []
 
const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3 [B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3] = { }
 
const u16 tbl_tx_iqlo_cal_startcoefs [B43_NTAB_TX_IQLO_CAL_STARTCOEFS] = { }
 
const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3 []
 
const u16 tbl_tx_iqlo_cal_cmds_recal []
 
const u16 tbl_tx_iqlo_cal_cmds_fullcal []
 
const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3 []
 
const s16 tbl_tx_filter_coef_rev4 [7][15]
 
struct
nphy_rf_control_override_rev2 
tbl_rf_control_override_rev2 []
 
struct
nphy_rf_control_override_rev3 
tbl_rf_control_override_rev3 []
 
struct
nphy_gain_ctl_workaround_entry 
nphy_gain_ctl_wa_phy6_radio11_ghz2
 
struct
nphy_gain_ctl_workaround_entry 
nphy_gain_ctl_workaround [2][4]
 

Macro Definition Documentation

#define check (   table,
  size 
)    BUILD_BUG_ON(ARRAY_SIZE(b43_ntab_##table) != B43_NTAB_##size##_SIZE)
#define ntab_upload (   dev,
  offset,
  data 
)
Value:
do { \
b43_ntab_write_bulk(dev, offset, offset##_SIZE, data); \
} while (0)

Definition at line 3097 of file tables_nphy.c.

#define ntab_upload_r3 (   dev,
  offset,
  data 
)
Value:
do { \
b43_ntab_write_bulk(dev, offset, ARRAY_SIZE(data), data); \
} while (0)

Definition at line 3133 of file tables_nphy.c.

Function Documentation

struct nphy_gain_ctl_workaround_entry* b43_nphy_get_gain_ctl_workaround_ent ( struct b43_wldev dev,
bool  ghz5,
bool  ext_lna 
)
read

Definition at line 3224 of file tables_nphy.c.

struct nphy_rf_control_override_rev7* b43_nphy_get_rf_ctl_over_rev7 ( struct b43_wldev dev,
u16  field,
u8  override 
)
read

Definition at line 3295 of file tables_nphy.c.

const u32* b43_nphy_get_tx_gain_table ( struct b43_wldev dev)

Definition at line 3195 of file tables_nphy.c.

void b43_nphy_rev0_1_2_tables_init ( struct b43_wldev dev)

Definition at line 3100 of file tables_nphy.c.

void b43_nphy_rev3plus_tables_init ( struct b43_wldev dev)

Definition at line 3136 of file tables_nphy.c.

u32 b43_ntab_read ( struct b43_wldev dev,
u32  offset 
)

Definition at line 2945 of file tables_nphy.c.

void b43_ntab_read_bulk ( struct b43_wldev dev,
u32  offset,
unsigned int  nr_elements,
void _data 
)

Definition at line 2975 of file tables_nphy.c.

void b43_ntab_write ( struct b43_wldev dev,
u32  offset,
u32  value 
)

Definition at line 3017 of file tables_nphy.c.

void b43_ntab_write_bulk ( struct b43_wldev dev,
u32  offset,
unsigned int  nr_elements,
const void _data 
)

Definition at line 3050 of file tables_nphy.c.

Variable Documentation

const s8 b43_ntab_papd_pga_gain_delta_ipa_2g[]
Initial value:
= {
-114, -108, -98, -91, -84, -78, -70, -62,
-54, -46, -39, -31, -23, -15, -8, 0
}

Definition at line 2532 of file tables_nphy.c.

Initial value:
= {
{ 3, 0 },
{ 4, 0 },
{ 6, 0 },
{ 9, 0 },
{ 13, 0 },
{ 18, 0 },
{ 25, 0 },
{ 35, 0 },
{ 50, 0 },
{ 71, 0 },
{ 100, 0 },
{ 100, 1 },
{ 100, 2 },
{ 100, 3 },
{ 100, 4 },
{ 100, 5 },
{ 100, 6 },
{ 100, 7 }
}

Definition at line 2583 of file tables_nphy.c.

Initial value:
= {
{ 3, 0 },
{ 4, 0 },
{ 6, 0 },
{ 9, 0 },
{ 13, 0 },
{ 18, 0 },
{ 25, 0 },
{ 25, 1 },
{ 25, 2 },
{ 25, 3 },
{ 25, 4 },
{ 25, 5 },
{ 25, 6 },
{ 25, 7 },
{ 35, 7 },
{ 50, 7 },
{ 71, 7 },
{ 100, 7 }
}

Definition at line 2562 of file tables_nphy.c.

const u16 loscale[]

Definition at line 2604 of file tables_nphy.c.

struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_wa_phy6_radio11_ghz2
Initial value:
= {
{ 10, 14, 19, 27 },
{ -5, 6, 10, 15 },
{ 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA, 0xA },
{ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3 },
0x427E,
{ 0x413F, 0x413F, 0x413F, 0x413F },
0x007E, 0x0066, 0x1074,
0x18, 0x18, 0x18,
0x01D0, 0x5,
}

Definition at line 2803 of file tables_nphy.c.

struct nphy_gain_ctl_workaround_entry nphy_gain_ctl_workaround[2][4]

Definition at line 2814 of file tables_nphy.c.

const u16 tbl_iqcal_gainparams[2][9][8]
Initial value:
= {
{
{ 0x000, 0, 0, 2, 0x69, 0x69, 0x69, 0x69 },
{ 0x700, 7, 0, 0, 0x69, 0x69, 0x69, 0x69 },
{ 0x710, 7, 1, 0, 0x68, 0x68, 0x68, 0x68 },
{ 0x720, 7, 2, 0, 0x67, 0x67, 0x67, 0x67 },
{ 0x730, 7, 3, 0, 0x66, 0x66, 0x66, 0x66 },
{ 0x740, 7, 4, 0, 0x65, 0x65, 0x65, 0x65 },
{ 0x741, 7, 4, 1, 0x65, 0x65, 0x65, 0x65 },
{ 0x742, 7, 4, 2, 0x65, 0x65, 0x65, 0x65 },
{ 0x743, 7, 4, 3, 0x65, 0x65, 0x65, 0x65 }
},
{
{ 0x000, 7, 0, 0, 0x79, 0x79, 0x79, 0x79 },
{ 0x700, 7, 0, 0, 0x79, 0x79, 0x79, 0x79 },
{ 0x710, 7, 1, 0, 0x79, 0x79, 0x79, 0x79 },
{ 0x720, 7, 2, 0, 0x78, 0x78, 0x78, 0x78 },
{ 0x730, 7, 3, 0, 0x78, 0x78, 0x78, 0x78 },
{ 0x740, 7, 4, 0, 0x78, 0x78, 0x78, 0x78 },
{ 0x741, 7, 4, 1, 0x78, 0x78, 0x78, 0x78 },
{ 0x742, 7, 4, 2, 0x78, 0x78, 0x78, 0x78 },
{ 0x743, 7, 4, 3, 0x78, 0x78, 0x78, 0x78 }
}
}

Definition at line 2537 of file tables_nphy.c.

struct nphy_rf_control_override_rev2 tbl_rf_control_override_rev2[]
Initial value:
= {
{ 0x78, 0x78, 0x0038, 3 },
{ 0x7A, 0x7D, 0x0001, 0 },
{ 0x7A, 0x7D, 0x0002, 1 },
{ 0x7A, 0x7D, 0x0004, 2 },
{ 0x7A, 0x7D, 0x0030, 4 },
{ 0x7A, 0x7D, 0x00C0, 6 },
{ 0x7A, 0x7D, 0x0100, 8 },
{ 0x7A, 0x7D, 0x0200, 9 },
{ 0x78, 0x78, 0x0004, 2 },
{ 0x7B, 0x7E, 0x01FF, 0 },
{ 0x7C, 0x7F, 0x01FF, 0 },
{ 0x78, 0x78, 0x0100, 8 },
{ 0x78, 0x78, 0x0200, 9 },
{ 0x78, 0x78, 0xF000, 12 }
}

Definition at line 2724 of file tables_nphy.c.

struct nphy_rf_control_override_rev3 tbl_rf_control_override_rev3[]
Initial value:
= {
{ 0x8000, 15, 0xE5, 0xF9, 0xE6, 0xFB },
{ 0x0001, 0, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0002, 1, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0004, 2, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0010, 4, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0020, 5, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0040, 6, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0080, 7, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0100, 8, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0x0007, 0, 0xE7, 0xF8, 0xEC, 0xFA },
{ 0x0070, 4, 0xE7, 0xF8, 0xEC, 0xFA },
{ 0xE000, 13, 0xE7, 0x7A, 0xEC, 0x7D },
{ 0xFFFF, 0, 0xE7, 0x7B, 0xEC, 0x7E },
{ 0xFFFF, 0, 0xE7, 0x7C, 0xEC, 0x7F },
{ 0x00C0, 6, 0xE7, 0xF9, 0xEC, 0xFB }
}

Definition at line 2742 of file tables_nphy.c.

const s16 tbl_tx_filter_coef_rev4[7][15]
Initial value:
= {
{ -377, 137, -407, 208, -1527,
956, 93, 186, 93, 230,
-44, 230, 201, -191, 201 },
{ -77, 20, -98, 49, -93,
60, 56, 111, 56, 26,
-5, 26, 34, -32, 34 },
{ -360, 164, -376, 164, -1533,
576, 308, -314, 308, 121,
-73, 121, 91, 124, 91 },
{ -295, 200, -363, 142, -1391,
826, 151, 301, 151, 151,
301, 151, 602, -752, 602 },
{ -92, 58, -96, 49, -104,
44, 17, 35, 17, 12,
25, 12, 13, 27, 13 },
{ -375, 136, -399, 209, -1479,
949, 130, 260, 130, 230,
-44, 230, 201, -191, 201 },
{ 0xed9, 0xc8, 0xe95, 0x8e, 0xa91,
0x33a, 0x97, 0x12d, 0x97, 0x97,
0x12d, 0x97, 0x25a, 0xd10, 0x25a }
}

Definition at line 2699 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_cmds_fullcal[]
Initial value:
= {
0x8123, 0x8264, 0x8086, 0x8245,
0x8056, 0x9123, 0x9264, 0x9086,
0x9245, 0x9056
}

Definition at line 2687 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_cmds_fullcal_nphyrev3[]
Initial value:
= {
0x8434, 0x8334, 0x8084, 0x8267,
0x8056, 0x8234, 0x9434, 0x9334,
0x9084, 0x9267, 0x9056, 0x9234
}

Definition at line 2693 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_cmds_recal[]
Initial value:
= {
0x8101, 0x8253, 0x8053, 0x8234,
0x8034, 0x9101, 0x9253, 0x9053,
0x9234, 0x9034
}

Definition at line 2681 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_cmds_recal_nphyrev3[]
Initial value:
= {
0x8423, 0x8323, 0x8073, 0x8256,
0x8045, 0x8223, 0x9423, 0x9323,
0x9073, 0x9256, 0x9045, 0x9223
}

Definition at line 2675 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_iqimb_ladder_20[]
Initial value:
= {
0x0200, 0x0300, 0x0600, 0x0900,
0x0d00, 0x1100, 0x1900, 0x2400,
0x3200, 0x4600, 0x6400, 0x6401,
0x6402, 0x6403, 0x6404, 0x6405,
0x6406, 0x6407
}

Definition at line 2663 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_iqimb_ladder_40[]
Initial value:
= {
0x0100, 0x0200, 0x0400, 0x0700,
0x0900, 0x0c00, 0x1200, 0x1900,
0x2300, 0x3200, 0x4700, 0x4701,
0x4702, 0x4703, 0x4704, 0x4705,
0x4706, 0x4707
}

Definition at line 2655 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_loft_ladder_20[]
Initial value:
= {
0x0300, 0x0500, 0x0700, 0x0900,
0x0d00, 0x1100, 0x1900, 0x1901,
0x1902, 0x1903, 0x1904, 0x1905,
0x1906, 0x1907, 0x2407, 0x3207,
0x4607, 0x6407
}

Definition at line 2647 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_loft_ladder_40[]
Initial value:
= {
0x0200, 0x0300, 0x0400, 0x0700,
0x0900, 0x0c00, 0x1200, 0x1201,
0x1202, 0x1203, 0x1204, 0x1205,
0x1206, 0x1207, 0x1907, 0x2307,
0x3207, 0x4707
}

Definition at line 2639 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_startcoefs[B43_NTAB_TX_IQLO_CAL_STARTCOEFS] = { }

Definition at line 2673 of file tables_nphy.c.

const u16 tbl_tx_iqlo_cal_startcoefs_nphyrev3[B43_NTAB_TX_IQLO_CAL_STARTCOEFS_REV3] = { }

Definition at line 2671 of file tables_nphy.c.