2007/10/29, Nick Kossifidis <[EMAIL PROTECTED]>:
> 2007/10/25, bruno randolf <[EMAIL PROTECTED]>:
> > On Wednesday 24 October 2007 23:11:41 you wrote:
> > > On 10/24/07, bruno randolf <[EMAIL PROTECTED]> wrote:
> > > > ok, i put up the register list on
> > > > http://madwifi.org/wiki/DevDocs/AtherosRegisters.
> > >
> > > This is nice, however I was planning on migrating registers to
> > > Kerneldoc format, then we can add documentation to each register in
> > > the source and also as a bonus get nice kernel docs we can put online
> > > automatically. I will move a few registers to this in my next patch
> > > series.
> >
> > well, thats fine with me as long as i can parse the output in perl - and i
> > guess with automatically generated docs that should not be too difficult.
> >
> > i added a few options to the ath-reg-decode.pl tool
> > --chip    specify the chipset (5212 (default), 5211, 5210)
> > --regfile the file with the register list, will be auto fetched from
> >           the wiki if not available
> > --dump   dump all contents of file, i.e. all registers
> > --out    output format:
> >           for dumps:
> >             * "wiki" table
> >             * "define": #defines
> >             * "case" (for switch case in c code)
> >           for trace log files
> >             * default:
> >             * initval: for generating initval lists
> > --lookup  lookup only one register
> >
> > default output looks like this:
> > R: 0x9858 = 0x7ec00d2e - AR5K_PHY_SIG \
> >                   .111 111. 11.. .... .... 11.1 ..1. 111.
> >
> > --out initval looks like this:
> >         { AR5K_PHY_PCDAC_TXPOWER(2),          0x0fff0fff },
> >         { AR5K_PHY_PCDAC_TXPOWER(3),          0x11ff11ff },
> >
> > ...should come in handy when generating the initval lists, instead of manual
> > copy & paste
> >
> > --dump by default is just a whitespace separated list:
> > 0x9c1c          AR5K_PHY_CURRENT_RSSI           [5111+] PHY current...
> >
> > --dump --out case
> >         case 0x9c10: return "AR5K_PHY_IQRES_CAL_PWR_I"; break;
> >
> > --dump --out define
> > #define AR5K_PHY_IQRES_CAL_CORR         0x9c18  /* [5111+] PHY timing IQ
> > calibration result register: I/Q Correlation */
> >
> > o.k. i think i've overdone it a bit, but adding new output formats is real
> > easy. :)
> >
> > bruno
> >
> >
>
> This script is a tresure !!! ;-)
>

BTW can you add support for BB_GAIN and RF_GAIN tables and possibly
RF_PHY (for all unknown phy registers) ?

-- 
GPG ID: 0xD21DB2DB
As you read this post global entropy rises. Have Fun ;-)
Nick
_______________________________________________
ath5k-devel mailing list
ath5k-devel@lists.ath5k.org
https://lists.ath5k.org/mailman/listinfo/ath5k-devel

Reply via email to