/* SPDX-License-Identifier: GPL-2.0 */
#ifndef LINUX_B43_PHY_A_H_
#define LINUX_B43_PHY_A_H_
#include "phy_common.h"
/* OFDM (A) PHY Registers */
#define B43_PHY_VERSION_OFDM B43_PHY_OFDM(0 x00) /* Versioning register for A-PHY */
#define B43_PHY_BBANDCFG B43_PHY_OFDM(0 x01) /* Baseband config */
#define B43_PHY_BBANDCFG_RXANT 0 x180 /* RX Antenna selection */
#define B43_PHY_BBANDCFG_RXANT_SHIFT 7
#define B43_PHY_PWRDOWN B43_PHY_OFDM(0 x03) /* Powerdown */
#define B43_PHY_CRSTHRES1_R1 B43_PHY_OFDM(0 x06) /* CRS Threshold 1 (phy.rev 1 only) */
#define B43_PHY_LNAHPFCTL B43_PHY_OFDM(0 x1C) /* LNA/HPF control */
#define B43_PHY_LPFGAINCTL B43_PHY_OFDM(0 x20) /* LPF Gain control */
#define B43_PHY_ADIVRELATED B43_PHY_OFDM(0 x27) /* FIXME rename */
#define B43_PHY_CRS0 B43_PHY_OFDM(0 x29)
#define B43_PHY_CRS0_EN 0 x4000
#define B43_PHY_PEAK_COUNT B43_PHY_OFDM(0 x30)
#define B43_PHY_ANTDWELL B43_PHY_OFDM(0 x2B) /* Antenna dwell */
#define B43_PHY_ANTDWELL_AUTODIV1 0 x0100 /* Automatic RX diversity start antenna */
#define B43_PHY_ENCORE B43_PHY_OFDM(0 x49) /* "Encore" (RangeMax / BroadRange) */
#define B43_PHY_ENCORE_EN 0 x0200 /* Encore enable */
#define B43_PHY_LMS B43_PHY_OFDM(0 x55)
#define B43_PHY_OFDM61 B43_PHY_OFDM(0 x61) /* FIXME rename */
#define B43_PHY_OFDM61_10 0 x0010 /* FIXME rename */
#define B43_PHY_IQBAL B43_PHY_OFDM(0 x69) /* I/Q balance */
#define B43_PHY_BBTXDC_BIAS B43_PHY_OFDM(0 x6B) /* Baseband TX DC bias */
#define B43_PHY_OTABLECTL B43_PHY_OFDM(0 x72) /* OFDM table control (see below) */
#define B43_PHY_OTABLEOFF 0 x03FF /* OFDM table offset (see below) */
#define B43_PHY_OTABLENR 0 xFC00 /* OFDM table number (see below) */
#define B43_PHY_OTABLENR_SHIFT 10
#define B43_PHY_OTABLEI B43_PHY_OFDM(0 x73) /* OFDM table data I */
#define B43_PHY_OTABLEQ B43_PHY_OFDM(0 x74) /* OFDM table data Q */
#define B43_PHY_HPWR_TSSICTL B43_PHY_OFDM(0 x78) /* Hardware power TSSI control */
#define B43_PHY_ADCCTL B43_PHY_OFDM(0 x7A) /* ADC control */
#define B43_PHY_IDLE_TSSI B43_PHY_OFDM(0 x7B)
#define B43_PHY_A_TEMP_SENSE B43_PHY_OFDM(0 x7C) /* A PHY temperature sense */
#define B43_PHY_NRSSITHRES B43_PHY_OFDM(0 x8A) /* NRSSI threshold */
#define B43_PHY_ANTWRSETT B43_PHY_OFDM(0 x8C) /* Antenna WR settle */
#define B43_PHY_ANTWRSETT_ARXDIV 0 x2000 /* Automatic RX diversity enabled */
#define B43_PHY_CLIPPWRDOWNT B43_PHY_OFDM(0 x93) /* Clip powerdown threshold */
#define B43_PHY_OFDM9B B43_PHY_OFDM(0 x9B) /* FIXME rename */
#define B43_PHY_N1P1GAIN B43_PHY_OFDM(0 xA0)
#define B43_PHY_P1P2GAIN B43_PHY_OFDM(0 xA1)
#define B43_PHY_N1N2GAIN B43_PHY_OFDM(0 xA2)
#define B43_PHY_CLIPTHRES B43_PHY_OFDM(0 xA3)
#define B43_PHY_CLIPN1P2THRES B43_PHY_OFDM(0 xA4)
#define B43_PHY_CCKSHIFTBITS_WA B43_PHY_OFDM(0 xA5) /* CCK shiftbits workaround, FIXME rename */
#define B43_PHY_CCKSHIFTBITS B43_PHY_OFDM(0 xA7) /* FIXME rename */
#define B43_PHY_DIVSRCHIDX B43_PHY_OFDM(0 xA8) /* Divider search gain/index */
#define B43_PHY_CLIPP2THRES B43_PHY_OFDM(0 xA9)
#define B43_PHY_CLIPP3THRES B43_PHY_OFDM(0 xAA)
#define B43_PHY_DIVP1P2GAIN B43_PHY_OFDM(0 xAB)
#define B43_PHY_DIVSRCHGAINBACK B43_PHY_OFDM(0 xAD) /* Divider search gain back */
#define B43_PHY_DIVSRCHGAINCHNG B43_PHY_OFDM(0 xAE) /* Divider search gain change */
#define B43_PHY_CRSTHRES1 B43_PHY_OFDM(0 xC0) /* CRS Threshold 1 (phy.rev >= 2 only) */
#define B43_PHY_CRSTHRES2 B43_PHY_OFDM(0 xC1) /* CRS Threshold 2 (phy.rev >= 2 only) */
#define B43_PHY_TSSIP_LTBASE B43_PHY_OFDM(0 x380) /* TSSI power lookup table base */
#define B43_PHY_DC_LTBASE B43_PHY_OFDM(0 x3A0) /* DC lookup table base */
#define B43_PHY_GAIN_LTBASE B43_PHY_OFDM(0 x3C0) /* Gain lookup table base */
/*** OFDM table numbers ***/
#define B43_OFDMTAB(number, offset) (((number) << B43_PHY_OTABLENR_SHIFT) | (offset))
#define B43_OFDMTAB_AGC1 B43_OFDMTAB(0 x00, 0 )
#define B43_OFDMTAB_GAIN0 B43_OFDMTAB(0 x00, 0 )
#define B43_OFDMTAB_GAINX B43_OFDMTAB(0 x01, 0 ) //TODO rename
#define B43_OFDMTAB_GAIN1 B43_OFDMTAB(0 x01, 4 )
#define B43_OFDMTAB_AGC3 B43_OFDMTAB(0 x02, 0 )
#define B43_OFDMTAB_GAIN2 B43_OFDMTAB(0 x02, 3 )
#define B43_OFDMTAB_LNAHPFGAIN1 B43_OFDMTAB(0 x03, 0 )
#define B43_OFDMTAB_WRSSI B43_OFDMTAB(0 x04, 0 )
#define B43_OFDMTAB_LNAHPFGAIN2 B43_OFDMTAB(0 x04, 0 )
#define B43_OFDMTAB_NOISESCALE B43_OFDMTAB(0 x05, 0 )
#define B43_OFDMTAB_AGC2 B43_OFDMTAB(0 x06, 0 )
#define B43_OFDMTAB_ROTOR B43_OFDMTAB(0 x08, 0 )
#define B43_OFDMTAB_ADVRETARD B43_OFDMTAB(0 x09, 0 )
#define B43_OFDMTAB_DAC B43_OFDMTAB(0 x0C, 0 )
#define B43_OFDMTAB_DC B43_OFDMTAB(0 x0E, 7 )
#define B43_OFDMTAB_PWRDYN2 B43_OFDMTAB(0 x0E, 12 )
#define B43_OFDMTAB_LNAGAIN B43_OFDMTAB(0 x0E, 13 )
#define B43_OFDMTAB_UNKNOWN_0F B43_OFDMTAB(0 x0F, 0 ) //TODO rename
#define B43_OFDMTAB_UNKNOWN_APHY B43_OFDMTAB(0 x0F, 7 ) //TODO rename
#define B43_OFDMTAB_LPFGAIN B43_OFDMTAB(0 x0F, 12 )
#define B43_OFDMTAB_RSSI B43_OFDMTAB(0 x10, 0 )
#define B43_OFDMTAB_UNKNOWN_11 B43_OFDMTAB(0 x11, 4 ) //TODO rename
#define B43_OFDMTAB_AGC1_R1 B43_OFDMTAB(0 x13, 0 )
#define B43_OFDMTAB_GAINX_R1 B43_OFDMTAB(0 x14, 0 ) //TODO remove!
#define B43_OFDMTAB_MINSIGSQ B43_OFDMTAB(0 x14, 0 )
#define B43_OFDMTAB_AGC3_R1 B43_OFDMTAB(0 x15, 0 )
#define B43_OFDMTAB_WRSSI_R1 B43_OFDMTAB(0 x15, 4 )
#define B43_OFDMTAB_TSSI B43_OFDMTAB(0 x15, 0 )
#define B43_OFDMTAB_DACRFPABB B43_OFDMTAB(0 x16, 0 )
#define B43_OFDMTAB_DACOFF B43_OFDMTAB(0 x17, 0 )
#define B43_OFDMTAB_DCBIAS B43_OFDMTAB(0 x18, 0 )
u16 b43_ofdmtab_read16(struct b43_wldev *dev, u16 table, u16 offset);
void b43_ofdmtab_write16(struct b43_wldev *dev, u16 table,
u16 offset, u16 value);
u32 b43_ofdmtab_read32(struct b43_wldev *dev, u16 table, u16 offset);
void b43_ofdmtab_write32(struct b43_wldev *dev, u16 table,
u16 offset, u32 value);
#endif /* LINUX_B43_PHY_A_H_ */
Messung V0.5 in Prozent C=96 H=91 G=93
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-06-07)
¤
*© Formatika GbR, Deutschland