Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
srom.h File Reference
#include "ttype.h"

Go to the source code of this file.

Data Structures

struct  tagSSromReg
 

Macros

#define EEP_MAX_CONTEXT_SIZE   256
 
#define CB_EEPROM_READBYTE_WAIT   900
 
#define W_MAX_I2CRETRY   0x0fff
 
#define EEP_OFS_PAR   0x00
 
#define EEP_OFS_ANTENNA   0x16
 
#define EEP_OFS_RADIOCTL   0x17
 
#define EEP_OFS_RFTYPE   0x1B
 
#define EEP_OFS_MINCHANNEL   0x1C
 
#define EEP_OFS_MAXCHANNEL   0x1D
 
#define EEP_OFS_SIGNATURE   0x1E
 
#define EEP_OFS_ZONETYPE   0x1F
 
#define EEP_OFS_RFTABLE   0x20
 
#define EEP_OFS_PWR_CCK   0x20
 
#define EEP_OFS_SETPT_CCK   0x21
 
#define EEP_OFS_PWR_OFDMG   0x23
 
#define EEP_OFS_SETPT_OFDMG   0x24
 
#define EEP_OFS_PWR_FORMULA_OST   0x26
 
#define EEP_OFS_MAJOR_VER   0x2E
 
#define EEP_OFS_MINOR_VER   0x2F
 
#define EEP_OFS_CCK_PWR_TBL   0x30
 
#define EEP_OFS_CCK_PWR_dBm   0x3F
 
#define EEP_OFS_OFDM_PWR_TBL   0x40
 
#define EEP_OFS_OFDM_PWR_dBm   0x4F
 
#define EEP_OFS_SETPT_OFDMA   0x4E
 
#define EEP_OFS_OFDMA_PWR_TBL   0x50
 
#define EEP_OFS_OFDMA_PWR_dBm   0xD2
 
#define EEP_OFS_BBTAB_LEN   0x70
 
#define EEP_OFS_BBTAB_ADR   0x71
 
#define EEP_OFS_CHECKSUM   0xFF
 
#define EEP_I2C_DEV_ID   0x50
 
#define EEP_ANTENNA_MAIN   0x01
 
#define EEP_ANTENNA_AUX   0x02
 
#define EEP_ANTINV   0x04
 
#define EEP_RADIOCTL_ENABLE   0x80
 
#define EEP_RADIOCTL_INV   0x01
 

Typedefs

typedef struct tagSSromReg SSromReg
 
typedef struct tagSSromRegPSSromReg
 

Functions

unsigned char SROMbyReadEmbedded (unsigned long dwIoBase, unsigned char byContntOffset)
 
bool SROMbWriteEmbedded (unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byData)
 
void SROMvRegBitsOn (unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byBits)
 
void SROMvRegBitsOff (unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byBits)
 
bool SROMbIsRegBitsOn (unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits)
 
bool SROMbIsRegBitsOff (unsigned long dwIoBase, unsigned char byContntOffset, unsigned char byTestBits)
 
void SROMvReadAllContents (unsigned long dwIoBase, unsigned char *pbyEepromRegs)
 
void SROMvWriteAllContents (unsigned long dwIoBase, unsigned char *pbyEepromRegs)
 
void SROMvReadEtherAddress (unsigned long dwIoBase, unsigned char *pbyEtherAddress)
 
void SROMvWriteEtherAddress (unsigned long dwIoBase, unsigned char *pbyEtherAddress)
 
void SROMvReadSubSysVenId (unsigned long dwIoBase, unsigned long *pdwSubSysVenId)
 
bool SROMbAutoLoad (unsigned long dwIoBase)
 

Macro Definition Documentation

#define CB_EEPROM_READBYTE_WAIT   900

Definition at line 39 of file srom.h.

#define EEP_ANTENNA_AUX   0x02

Definition at line 85 of file srom.h.

#define EEP_ANTENNA_MAIN   0x01

Definition at line 84 of file srom.h.

#define EEP_ANTINV   0x04

Definition at line 86 of file srom.h.

#define EEP_I2C_DEV_ID   0x50

Definition at line 78 of file srom.h.

#define EEP_MAX_CONTEXT_SIZE   256

Definition at line 37 of file srom.h.

#define EEP_OFS_ANTENNA   0x16

Definition at line 47 of file srom.h.

#define EEP_OFS_BBTAB_ADR   0x71

Definition at line 75 of file srom.h.

#define EEP_OFS_BBTAB_LEN   0x70

Definition at line 74 of file srom.h.

#define EEP_OFS_CCK_PWR_dBm   0x3F

Definition at line 63 of file srom.h.

#define EEP_OFS_CCK_PWR_TBL   0x30

Definition at line 62 of file srom.h.

#define EEP_OFS_CHECKSUM   0xFF

Definition at line 76 of file srom.h.

#define EEP_OFS_MAJOR_VER   0x2E

Definition at line 60 of file srom.h.

#define EEP_OFS_MAXCHANNEL   0x1D

Definition at line 51 of file srom.h.

#define EEP_OFS_MINCHANNEL   0x1C

Definition at line 50 of file srom.h.

#define EEP_OFS_MINOR_VER   0x2F

Definition at line 61 of file srom.h.

#define EEP_OFS_OFDM_PWR_dBm   0x4F

Definition at line 65 of file srom.h.

#define EEP_OFS_OFDM_PWR_TBL   0x40

Definition at line 64 of file srom.h.

#define EEP_OFS_OFDMA_PWR_dBm   0xD2

Definition at line 70 of file srom.h.

#define EEP_OFS_OFDMA_PWR_TBL   0x50

Definition at line 68 of file srom.h.

#define EEP_OFS_PAR   0x00

Definition at line 46 of file srom.h.

#define EEP_OFS_PWR_CCK   0x20

Definition at line 55 of file srom.h.

#define EEP_OFS_PWR_FORMULA_OST   0x26

Definition at line 59 of file srom.h.

#define EEP_OFS_PWR_OFDMG   0x23

Definition at line 57 of file srom.h.

#define EEP_OFS_RADIOCTL   0x17

Definition at line 48 of file srom.h.

#define EEP_OFS_RFTABLE   0x20

Definition at line 54 of file srom.h.

#define EEP_OFS_RFTYPE   0x1B

Definition at line 49 of file srom.h.

#define EEP_OFS_SETPT_CCK   0x21

Definition at line 56 of file srom.h.

#define EEP_OFS_SETPT_OFDMA   0x4E

Definition at line 67 of file srom.h.

#define EEP_OFS_SETPT_OFDMG   0x24

Definition at line 58 of file srom.h.

#define EEP_OFS_SIGNATURE   0x1E

Definition at line 52 of file srom.h.

#define EEP_OFS_ZONETYPE   0x1F

Definition at line 53 of file srom.h.

#define EEP_RADIOCTL_ENABLE   0x80

Definition at line 91 of file srom.h.

#define EEP_RADIOCTL_INV   0x01

Definition at line 92 of file srom.h.

#define W_MAX_I2CRETRY   0x0fff

Definition at line 41 of file srom.h.

Typedef Documentation

Function Documentation

bool SROMbAutoLoad ( unsigned long  dwIoBase)

Definition at line 392 of file srom.c.

bool SROMbIsRegBitsOff ( unsigned long  dwIoBase,
unsigned char  byContntOffset,
unsigned char  byTestBits 
)

Definition at line 248 of file srom.c.

bool SROMbIsRegBitsOn ( unsigned long  dwIoBase,
unsigned char  byContntOffset,
unsigned char  byTestBits 
)

Definition at line 225 of file srom.c.

bool SROMbWriteEmbedded ( unsigned long  dwIoBase,
unsigned char  byContntOffset,
unsigned char  byData 
)

Definition at line 128 of file srom.c.

unsigned char SROMbyReadEmbedded ( unsigned long  dwIoBase,
unsigned char  byContntOffset 
)

Definition at line 79 of file srom.c.

void SROMvReadAllContents ( unsigned long  dwIoBase,
unsigned char pbyEepromRegs 
)

Definition at line 269 of file srom.c.

void SROMvReadEtherAddress ( unsigned long  dwIoBase,
unsigned char pbyEtherAddress 
)

Definition at line 318 of file srom.c.

void SROMvReadSubSysVenId ( unsigned long  dwIoBase,
unsigned long pdwSubSysVenId 
)

Definition at line 367 of file srom.c.

void SROMvRegBitsOff ( unsigned long  dwIoBase,
unsigned char  byContntOffset,
unsigned char  byBits 
)

Definition at line 202 of file srom.c.

void SROMvRegBitsOn ( unsigned long  dwIoBase,
unsigned char  byContntOffset,
unsigned char  byBits 
)

Definition at line 181 of file srom.c.

void SROMvWriteAllContents ( unsigned long  dwIoBase,
unsigned char pbyEepromRegs 
)

Definition at line 294 of file srom.c.

void SROMvWriteEtherAddress ( unsigned long  dwIoBase,
unsigned char pbyEtherAddress 
)

Definition at line 343 of file srom.c.