Doesn't brcm80211 contain register names for B2055? 2010/10/11 RafaÅ MiÅecki <zajec5@xxxxxxxxx>: > Signed-off-by: RafaÅ MiÅecki <zajec5@xxxxxxxxx> > --- > I'm not too happy with presented numbering but: > 1) We can not just use regiser number, because we use same registers few times > 2) Using just order numbering (00 - 36) would make registers writing less clean > > This way I decided to use both: order numbering and register numbering. > --- > Âdrivers/net/wireless/b43/tables_nphy.c |  42 ++++++++++++++++++++++++++++++++ > Âdrivers/net/wireless/b43/tables_nphy.h |  40 ++++++++++++++++++++++++++++-- > Â2 files changed, 79 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/wireless/b43/tables_nphy.c b/drivers/net/wireless/b43/tables_nphy.c > index e74b8eb..0cedb9a 100644 > --- a/drivers/net/wireless/b43/tables_nphy.c > +++ b/drivers/net/wireless/b43/tables_nphy.c > @@ -317,6 +317,48 @@ void b2055_upload_inittab(struct b43_wldev *dev, >    Â.radio_c2_tx_pgapadtn  = r20, Â\ >    Â.radio_c2_tx_mxbgtrim  = r21 > > +#define RADIOREGS3(r00, r01, r02, r03, r04, r05, r06, r07, r08, r09, \ > +         Âr10, r11, r12, r13, r14, r15, r16, r17, r18, r19, \ > +         Âr20, r21, r22, r23, r24, r25, r26, r27, r28, r29, \ > +         Âr30, r31, r32, r33, r34, r35, r36) \ > +    .radio_reg_00_56    Â= r00, Â\ > +    .radio_reg_01_56    Â= r01, Â\ > +    .radio_reg_02_46    Â= r02, Â\ > +    .radio_reg_03_51    Â= r03, Â\ > +    .radio_reg_04_50    Â= r04, Â\ > +    .radio_reg_05_4b    Â= r05, Â\ > +    .radio_reg_06_4c    Â= r06, Â\ > +    .radio_reg_07_4d    Â= r07, Â\ > +    .radio_reg_08_4e    Â= r08, Â\ > +    .radio_reg_09_4f    Â= r09, Â\ > +    .radio_reg_10_1b    Â= r10, Â\ > +    .radio_reg_11_1c    Â= r11, Â\ > +    .radio_reg_12_1d    Â= r12, Â\ > +    .radio_reg_13_70    Â= r13, Â\ > +    .radio_reg_14_72    Â= r14, Â\ > +    .radio_reg_15_75    Â= r15, Â\ > +    .radio_reg_16_76    Â= r16, Â\ > +    .radio_reg_17_2d    Â= r17, Â\ > +    .radio_reg_18_34    Â= r18, Â\ > +    .radio_reg_19_37    Â= r19, Â\ > +    .radio_reg_20_41    Â= r20, Â\ > +    .radio_reg_21_4d    Â= r21, Â\ > +    .radio_reg_22_53    Â= r22, Â\ > +    .radio_reg_23_58    Â= r23, Â\ > +    .radio_reg_24_5e    Â= r24, Â\ > +    .radio_reg_25_62    Â= r25, Â\ > +    .radio_reg_26_64    Â= r26, Â\ > +    .radio_reg_27_2d    Â= r27, Â\ > +    .radio_reg_28_34    Â= r28, Â\ > +    .radio_reg_29_37    Â= r29, Â\ > +    .radio_reg_30_41    Â= r30, Â\ > +    .radio_reg_31_4d    Â= r31, Â\ > +    .radio_reg_32_53    Â= r32, Â\ > +    .radio_reg_33_58    Â= r33, Â\ > +    .radio_reg_34_5e    Â= r34, Â\ > +    .radio_reg_35_62    Â= r35, Â\ > +    .radio_reg_36_64    Â= r36 > + > Â#define PHYREGS(r0, r1, r2, r3, r4, r5)    Â\ >    Â.phy_regs.phy_bw1a   Â= r0,  \ >    Â.phy_regs.phy_bw2    = r1,  \ > diff --git a/drivers/net/wireless/b43/tables_nphy.h b/drivers/net/wireless/b43/tables_nphy.h > index 3eedb86..07b2c22 100644 > --- a/drivers/net/wireless/b43/tables_nphy.h > +++ b/drivers/net/wireless/b43/tables_nphy.h > @@ -48,12 +48,46 @@ struct b43_nphy_channeltab_entry_rev2 { > Â}; > > Âstruct b43_nphy_channeltab_entry_rev3 { > -    /* The channel number */ > -    u8 channel; >    Â/* The channel frequency in MHz */ >    Âu16 freq; >    Â/* Radio register values on channelswitch */ > -    /* TODO */ > +    u8 radio_reg_00_56; > +    u8 radio_reg_01_56; > +    u8 radio_reg_02_46; > +    u8 radio_reg_03_51; > +    u8 radio_reg_04_50; > +    u8 radio_reg_05_4b; > +    u8 radio_reg_06_4c; > +    u8 radio_reg_07_4d; > +    u8 radio_reg_08_4e; > +    u8 radio_reg_09_4f; > +    u8 radio_reg_10_1b; > +    u8 radio_reg_11_1c; > +    u8 radio_reg_12_1d; > +    u8 radio_reg_13_70; > +    u8 radio_reg_14_72; > +    u8 radio_reg_15_75; > +    u8 radio_reg_16_76; > +    u8 radio_reg_17_2d; > +    u8 radio_reg_18_34; > +    u8 radio_reg_19_37; > +    u8 radio_reg_20_41; > +    u8 radio_reg_21_4d; > +    u8 radio_reg_22_53; > +    u8 radio_reg_23_58; > +    u8 radio_reg_24_5e; > +    u8 radio_reg_25_62; > +    u8 radio_reg_26_64; > +    u8 radio_reg_27_2d; > +    u8 radio_reg_28_34; > +    u8 radio_reg_29_37; > +    u8 radio_reg_30_41; > +    u8 radio_reg_31_4d; > +    u8 radio_reg_32_53; > +    u8 radio_reg_33_58; > +    u8 radio_reg_34_5e; > +    u8 radio_reg_35_62; > +    u8 radio_reg_36_64; >    Â/* PHY register values on channelswitch */ >    Âstruct b43_phy_n_sfo_cfg phy_regs; > Â}; > -- > 1.7.1 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-wireless" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at Âhttp://vger.kernel.org/majordomo-info.html > -- Vista: [V]iruses, [I]ntruders, [S]pyware, [T]rojans and [A]dware. :-) ÿô.nÇ·®+%˱é¥wÿº{.nÇ·¥{±ÿ«zW¬³ø¡Ü}©²ÆzÚj:+v¨þø®w¥þàÞ¨è&¢)ß«a¶Úÿûz¹ÞúÝjÿwèf