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

Go to the source code of this file.

Data Structures

struct  eeprom_priv
 

Macros

#define RTL8712_EEPROM_ID   0x8712
 
#define EEPROM_MAX_SIZE   256
 
#define CLOCK_RATE   50 /*100us*/
 
#define EEPROM_READ_OPCODE   06
 
#define EEPROM_WRITE_OPCODE   05
 
#define EEPROM_ERASE_OPCODE   07
 
#define EEPROM_EWEN_OPCODE   19 /* Erase/write enable*/
 
#define EEPROM_EWDS_OPCODE   16 /* Erase/write disable*/
 
#define EEPROM_CID_DEFAULT   0x0
 
#define EEPROM_CID_ALPHA   0x1
 
#define EEPROM_CID_Senao   0x3
 
#define EEPROM_CID_NetCore   0x5
 
#define EEPROM_CID_CAMEO   0X8
 
#define EEPROM_CID_SITECOM   0x9
 
#define EEPROM_CID_COREGA   0xB
 
#define EEPROM_CID_EDIMAX_BELKIN   0xC
 
#define EEPROM_CID_SERCOMM_BELKIN   0xE
 
#define EEPROM_CID_CAMEO1   0xF
 
#define EEPROM_CID_WNC_COREGA   0x12
 
#define EEPROM_CID_CLEVO   0x13
 
#define EEPROM_CID_WHQL   0xFE
 

Enumerations

enum  RT_CUSTOMER_ID {
  RT_CID_DEFAULT = 0, RT_CID_8187_ALPHA0 = 1, RT_CID_8187_SERCOMM_PS = 2, RT_CID_8187_HW_LED = 3,
  RT_CID_8187_NETGEAR = 4, RT_CID_WHQL = 5, RT_CID_819x_CAMEO = 6, RT_CID_819x_RUNTOP = 7,
  RT_CID_819x_Senao = 8, RT_CID_TOSHIBA = 9, RT_CID_819x_Netcore = 10, RT_CID_Nettronix = 11,
  RT_CID_DLINK = 12, RT_CID_PRONET = 13, RT_CID_COREGA = 14, RT_CID_819x_ALPHA = 15,
  RT_CID_819x_Sitecom = 16, RT_CID_CCX = 17, RT_CID_819x_Lenovo = 18, RT_CID_819x_QMI = 19,
  RT_CID_819x_Edimax_Belkin = 20, RT_CID_819x_Sercomm_Belkin = 21, RT_CID_819x_CAMEO1 = 22, RT_CID_819x_MSI = 23,
  RT_CID_819x_Acer = 24, RT_CID_819x_AzWave_ASUS = 25, RT_CID_819x_AzWave = 26, RT_CID_819x_WNC_COREGA = 27,
  RT_CID_819x_CLEVO = 28
}
 

Functions

void r8712_eeprom_write16 (struct _adapter *padapter, u16 reg, u16 data)
 
u16 r8712_eeprom_read16 (struct _adapter *padapter, u16 reg)
 

Macro Definition Documentation

#define CLOCK_RATE   50 /*100us*/

Definition at line 27 of file rtl871x_eeprom.h.

#define EEPROM_CID_ALPHA   0x1

Definition at line 37 of file rtl871x_eeprom.h.

#define EEPROM_CID_CAMEO   0X8

Definition at line 40 of file rtl871x_eeprom.h.

#define EEPROM_CID_CAMEO1   0xF

Definition at line 45 of file rtl871x_eeprom.h.

#define EEPROM_CID_CLEVO   0x13

Definition at line 47 of file rtl871x_eeprom.h.

#define EEPROM_CID_COREGA   0xB

Definition at line 42 of file rtl871x_eeprom.h.

#define EEPROM_CID_DEFAULT   0x0

Definition at line 36 of file rtl871x_eeprom.h.

#define EEPROM_CID_EDIMAX_BELKIN   0xC

Definition at line 43 of file rtl871x_eeprom.h.

#define EEPROM_CID_NetCore   0x5

Definition at line 39 of file rtl871x_eeprom.h.

#define EEPROM_CID_Senao   0x3

Definition at line 38 of file rtl871x_eeprom.h.

#define EEPROM_CID_SERCOMM_BELKIN   0xE

Definition at line 44 of file rtl871x_eeprom.h.

#define EEPROM_CID_SITECOM   0x9

Definition at line 41 of file rtl871x_eeprom.h.

#define EEPROM_CID_WHQL   0xFE

Definition at line 48 of file rtl871x_eeprom.h.

#define EEPROM_CID_WNC_COREGA   0x12

Definition at line 46 of file rtl871x_eeprom.h.

#define EEPROM_ERASE_OPCODE   07

Definition at line 32 of file rtl871x_eeprom.h.

#define EEPROM_EWDS_OPCODE   16 /* Erase/write disable*/

Definition at line 34 of file rtl871x_eeprom.h.

#define EEPROM_EWEN_OPCODE   19 /* Erase/write enable*/

Definition at line 33 of file rtl871x_eeprom.h.

#define EEPROM_MAX_SIZE   256

Definition at line 26 of file rtl871x_eeprom.h.

#define EEPROM_READ_OPCODE   06

Definition at line 30 of file rtl871x_eeprom.h.

#define EEPROM_WRITE_OPCODE   05

Definition at line 31 of file rtl871x_eeprom.h.

#define RTL8712_EEPROM_ID   0x8712

Definition at line 25 of file rtl871x_eeprom.h.

Enumeration Type Documentation

Enumerator:
RT_CID_DEFAULT 
RT_CID_8187_ALPHA0 
RT_CID_8187_SERCOMM_PS 
RT_CID_8187_HW_LED 
RT_CID_8187_NETGEAR 
RT_CID_WHQL 
RT_CID_819x_CAMEO 
RT_CID_819x_RUNTOP 
RT_CID_819x_Senao 
RT_CID_TOSHIBA 
RT_CID_819x_Netcore 
RT_CID_Nettronix 
RT_CID_DLINK 
RT_CID_PRONET 
RT_CID_COREGA 
RT_CID_819x_ALPHA 
RT_CID_819x_Sitecom 
RT_CID_CCX 
RT_CID_819x_Lenovo 
RT_CID_819x_QMI 
RT_CID_819x_Edimax_Belkin 
RT_CID_819x_Sercomm_Belkin 
RT_CID_819x_CAMEO1 
RT_CID_819x_MSI 
RT_CID_819x_Acer 
RT_CID_819x_AzWave_ASUS 
RT_CID_819x_AzWave 
RT_CID_819x_WNC_COREGA 
RT_CID_819x_CLEVO 

Definition at line 50 of file rtl871x_eeprom.h.

Function Documentation

u16 r8712_eeprom_read16 ( struct _adapter padapter,
u16  reg 
)

Definition at line 195 of file rtl871x_eeprom.c.

void r8712_eeprom_write16 ( struct _adapter padapter,
u16  reg,
u16  data 
)

Definition at line 147 of file rtl871x_eeprom.c.