Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ixgb_ee.h File Reference

Go to the source code of this file.

Data Structures

struct  ixgb_ee_map_type
 

Macros

#define IXGB_EEPROM_SIZE   64 /* Size in words */
 
#define EEPROM_READ_OPCODE   0x6 /* EEPROM read opcode */
 
#define EEPROM_WRITE_OPCODE   0x5 /* EEPROM write opcode */
 
#define EEPROM_ERASE_OPCODE   0x7 /* EEPROM erase opcode */
 
#define EEPROM_EWEN_OPCODE   0x13 /* EEPROM erase/write enable */
 
#define EEPROM_EWDS_OPCODE   0x10 /* EEPROM erase/write disable */
 
#define EEPROM_IA_1_2_REG   0x0000
 
#define EEPROM_IA_3_4_REG   0x0001
 
#define EEPROM_IA_5_6_REG   0x0002
 
#define EEPROM_COMPATIBILITY_REG   0x0003
 
#define EEPROM_PBA_1_2_REG   0x0008
 
#define EEPROM_PBA_3_4_REG   0x0009
 
#define EEPROM_INIT_CONTROL1_REG   0x000A
 
#define EEPROM_SUBSYS_ID_REG   0x000B
 
#define EEPROM_SUBVEND_ID_REG   0x000C
 
#define EEPROM_DEVICE_ID_REG   0x000D
 
#define EEPROM_VENDOR_ID_REG   0x000E
 
#define EEPROM_INIT_CONTROL2_REG   0x000F
 
#define EEPROM_SWDPINS_REG   0x0020
 
#define EEPROM_CIRCUIT_CTRL_REG   0x0021
 
#define EEPROM_D0_D3_POWER_REG   0x0022
 
#define EEPROM_FLASH_VERSION   0x0032
 
#define EEPROM_CHECKSUM_REG   0x003F
 
#define EEPROM_ICW1_SIGNATURE_MASK   0xC000
 
#define EEPROM_ICW1_SIGNATURE_VALID   0x4000
 
#define EEPROM_ICW1_SIGNATURE_CLEAR   0x0000
 
#define EEPROM_SUM   0xBABA
 
#define PBA_SIZE   4
 

Functions

u16 ixgb_read_eeprom (struct ixgb_hw *hw, u16 reg)
 
bool ixgb_validate_eeprom_checksum (struct ixgb_hw *hw)
 
void ixgb_update_eeprom_checksum (struct ixgb_hw *hw)
 
void ixgb_write_eeprom (struct ixgb_hw *hw, u16 reg, u16 data)
 

Macro Definition Documentation

#define EEPROM_CHECKSUM_REG   0x003F

Definition at line 58 of file ixgb_ee.h.

#define EEPROM_CIRCUIT_CTRL_REG   0x0021

Definition at line 55 of file ixgb_ee.h.

#define EEPROM_COMPATIBILITY_REG   0x0003

Definition at line 45 of file ixgb_ee.h.

#define EEPROM_D0_D3_POWER_REG   0x0022

Definition at line 56 of file ixgb_ee.h.

#define EEPROM_DEVICE_ID_REG   0x000D

Definition at line 51 of file ixgb_ee.h.

#define EEPROM_ERASE_OPCODE   0x7 /* EEPROM erase opcode */

Definition at line 37 of file ixgb_ee.h.

#define EEPROM_EWDS_OPCODE   0x10 /* EEPROM erase/write disable */

Definition at line 39 of file ixgb_ee.h.

#define EEPROM_EWEN_OPCODE   0x13 /* EEPROM erase/write enable */

Definition at line 38 of file ixgb_ee.h.

#define EEPROM_FLASH_VERSION   0x0032

Definition at line 57 of file ixgb_ee.h.

#define EEPROM_IA_1_2_REG   0x0000

Definition at line 42 of file ixgb_ee.h.

#define EEPROM_IA_3_4_REG   0x0001

Definition at line 43 of file ixgb_ee.h.

#define EEPROM_IA_5_6_REG   0x0002

Definition at line 44 of file ixgb_ee.h.

#define EEPROM_ICW1_SIGNATURE_CLEAR   0x0000

Definition at line 64 of file ixgb_ee.h.

#define EEPROM_ICW1_SIGNATURE_MASK   0xC000

Definition at line 62 of file ixgb_ee.h.

#define EEPROM_ICW1_SIGNATURE_VALID   0x4000

Definition at line 63 of file ixgb_ee.h.

#define EEPROM_INIT_CONTROL1_REG   0x000A

Definition at line 48 of file ixgb_ee.h.

#define EEPROM_INIT_CONTROL2_REG   0x000F

Definition at line 53 of file ixgb_ee.h.

#define EEPROM_PBA_1_2_REG   0x0008

Definition at line 46 of file ixgb_ee.h.

#define EEPROM_PBA_3_4_REG   0x0009

Definition at line 47 of file ixgb_ee.h.

#define EEPROM_READ_OPCODE   0x6 /* EEPROM read opcode */

Definition at line 35 of file ixgb_ee.h.

#define EEPROM_SUBSYS_ID_REG   0x000B

Definition at line 49 of file ixgb_ee.h.

#define EEPROM_SUBVEND_ID_REG   0x000C

Definition at line 50 of file ixgb_ee.h.

#define EEPROM_SUM   0xBABA

Definition at line 67 of file ixgb_ee.h.

#define EEPROM_SWDPINS_REG   0x0020

Definition at line 54 of file ixgb_ee.h.

#define EEPROM_VENDOR_ID_REG   0x000E

Definition at line 52 of file ixgb_ee.h.

#define EEPROM_WRITE_OPCODE   0x5 /* EEPROM write opcode */

Definition at line 36 of file ixgb_ee.h.

#define IXGB_EEPROM_SIZE   64 /* Size in words */

Definition at line 32 of file ixgb_ee.h.

#define PBA_SIZE   4

Definition at line 70 of file ixgb_ee.h.

Function Documentation

u16 ixgb_read_eeprom ( struct ixgb_hw hw,
u16  reg 
)

Definition at line 430 of file ixgb_ee.c.

void ixgb_update_eeprom_checksum ( struct ixgb_hw hw)

Definition at line 353 of file ixgb_ee.c.

bool ixgb_validate_eeprom_checksum ( struct ixgb_hw hw)

Definition at line 330 of file ixgb_ee.c.

void ixgb_write_eeprom ( struct ixgb_hw hw,
u16  reg,
u16  data 
)

Definition at line 378 of file ixgb_ee.c.