Length of MAC, BBP and RF registers
Ronak Chokshi
rchokshi at marvell.com
Thu Nov 16 13:28:33 EST 2006
Hi Marcelo,
The lengths of registers stated by Javier are correct. For your other
question, the size of the EEPROMs used on the USB 8388 parts shipped
with the OLPC boards is indeed 16K. The contents keep changing with any
boot2 / calibration changes that we make but the size is constant - 16K.
This is the actual size of the EEPROM hardware. The contents are smaller
than 16K.
Thanks
Ronak
-----Original Message-----
From: javier.cardona at gmail.com [mailto:javier.cardona at gmail.com] On
Behalf Of Javier Cardona
Sent: Wednesday, November 15, 2006 10:01 PM
To: Marcelo Tosatti
Cc: Ronak Chokshi; Alan Cunningham; libertas-dev at lists.infradead.org;
mtosatti at redhat.com
Subject: Re: Length of MAC, BBP and RF registers
Marcelo,
This is what I could find out:
These commands each access a different bank of registers, the offset
parameter determines which
register.
BBP, band pass processor registers, uint8.
RF, RF PHY registers, uint8.
MAC, MAC registers, uint32.
Hope it helps.
Javier
On 11/15/06, Marcelo Tosatti <marcelo at kvack.org> wrote:
> Hi Ronak, Alan,
>
> We're trying to get rid of the wlanconfig "tool" and its ioctl
> interface.
>
> A few commands (such as version and eeprom read) have been converted
> to ethtool, while others can't (and thus must be converted to another
> interface, debugfs being the best choice in my opinion).
>
> I would like to put the mac, bbp and rf registers in files, so they
can
> easily be read/written to. But for that it would be necessary to know
> the length of such registers.
>
> Can you please make that information available? Its nowhere in the
docs.
>
> Another detail which I've asked in the past but got no reply is how to
> know the length of the EEPROM. I've hardcoded it to 16k in the driver
> by noticing it wraps at that length, but if it changes there will be
> problems.
>
> DESCRIPTION
>
> those commands are used in Marvell speck applicaion called wlanconfig.
>
> ===========
> rdmac
> rdbbp
> rdrf
> These commands are used to read the MAC, BBP and RF registers
from the
> card. These commands take one parameter that specifies the
offset
> location that is to be read. This parameter can be specified
either in
> decimal or in hexadecimal (by preceding the number with a
"0x").
>
> Usage:
> wlanconfig ethX rdmac 0xa123
> wlanconfig ethX rdbbp 0x0123
> wlanconfig ethX rdrf 0x0123
>
> wrmac
> wrbbp
> wrrf
> These commands are used to write the MAC, BBP and RF registers
in the
> card. These commands take two parameters that specify the
offset
> location and the value that is to be written. This parameters
can be
> specified either in decimal or in hexadecimal (by preceding
the number
> with a "0x").
>
> Usage:
> wlanconfig ethX wrmac 0xa123 0xaa
> wlanconfig ethX wrbbp 0x0123 0xaa
> wlanconfig ethX wrrf 0x0123 0xaa
>
>
> _______________________________________________
> libertas-dev mailing list
> libertas-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/libertas-dev
>
--
Javier Cardona
cozybit Inc.
p 415 974 6770
f 415 974 6771
c 415 630 0627
e javier at cozybit.com
More information about the libertas-dev
mailing list