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

Go to the source code of this file.

Data Structures

struct  bios_params
 
struct  eeprom_port_cfg
 
struct  eeprom_function_cfg
 
struct  eeprom_data
 

Macros

#define FM93C56A_SIZE_8   0x100
 
#define FM93C56A_SIZE_16   0x80
 
#define FM93C66A_SIZE_8   0x200
 
#define FM93C66A_SIZE_16   0x100/* 4010 */
 
#define FM93C86A_SIZE_16   0x400/* 4022 */
 
#define FM93C56A_START   0x1
 
#define FM93C56A_READ   0x2
 
#define FM93C56A_WEN   0x0
 
#define FM93C56A_WRITE   0x1
 
#define FM93C56A_WRITE_ALL   0x0
 
#define FM93C56A_WDS   0x0
 
#define FM93C56A_ERASE   0x3
 
#define FM93C56A_ERASE_ALL   0x0
 
#define FM93C56A_WEN_EXT   0x3
 
#define FM93C56A_WRITE_ALL_EXT   0x1
 
#define FM93C56A_WDS_EXT   0x0
 
#define FM93C56A_ERASE_ALL_EXT   0x2
 
#define FM93C56A_NO_ADDR_BITS_16   8 /* 4010 */
 
#define FM93C56A_NO_ADDR_BITS_8   9 /* 4010 */
 
#define FM93C86A_NO_ADDR_BITS_16   10 /* 4022 */
 
#define FM93C56A_DATA_BITS_16   16
 
#define FM93C56A_DATA_BITS_8   8
 
#define FM93C56A_READ_DUMMY_BITS   1
 
#define FM93C56A_READY   0
 
#define FM93C56A_BUSY   1
 
#define FM93C56A_CMD_BITS   2
 
#define AUBURN_EEPROM_DI   0x8
 
#define AUBURN_EEPROM_DI_0   0x0
 
#define AUBURN_EEPROM_DI_1   0x8
 
#define AUBURN_EEPROM_DO   0x4
 
#define AUBURN_EEPROM_DO_0   0x0
 
#define AUBURN_EEPROM_DO_1   0x4
 
#define AUBURN_EEPROM_CS   0x2
 
#define AUBURN_EEPROM_CS_0   0x0
 
#define AUBURN_EEPROM_CS_1   0x2
 
#define AUBURN_EEPROM_CLK_RISE   0x1
 
#define AUBURN_EEPROM_CLK_FALL   0x0
 
#define EEPROM_BOARDID_ELDORADO   1
 
#define EEPROM_BOARDID_PLACER   2
 
#define EEPROM_SERIAL_NUM_SIZE   16
 
#define MAC_CONFIG_ENABLE_ANEG   0x0001
 
#define MAC_CONFIG_ENABLE_PAUSE   0x0002
 
#define PHY_CONFIG_PHY_ADDR_MASK   0x1f
 
#define PHY_CONFIG_ENABLE_FW_MANAGEMENT_MASK   0x20
 
#define EEPROM_UNUSED_1_SIZE   2
 
#define EEPROM_UNUSED_2_SIZE   4
 
#define EEPROM_UNUSED_3_SIZE
 
#define FM93C56A_SIGNATURE   0x9356
 
#define FM93C66A_SIGNATURE   0x9366
 
#define EEPROM_UNUSED_4_SIZE   250
 

Variables

u8 asic_id [4]
 
u8 version
 
u8 reserved
 
u16 board_id
 
u8 serial_number [EEPROM_SERIAL_NUM_SIZE]
 
u16 ext_hw_conf
 
u8 mac0 [6]
 
u8 mac1 [6]
 
u8 mac2 [6]
 
u8 mac3 [6]
 
u16 etherMtu
 
u16 macConfig
 
u16 phyConfig
 
u16 reserved_56
 
u8 unused_1 [EEPROM_UNUSED_1_SIZE]
 
u16 bufletSize
 
u16 bufletCount
 
u16 bufletPauseThreshold
 
u16 tcpWindowThreshold50
 
u16 tcpWindowThreshold25
 
u16 tcpWindowThreshold0
 
u16 ipHashTableBaseHi
 
u16 ipHashTableBaseLo
 
u16 ipHashTableSize
 
u16 tcpHashTableBaseHi
 
u16 tcpHashTableBaseLo
 
u16 tcpHashTableSize
 
u16 ncbTableBaseHi
 
u16 ncbTableBaseLo
 
u16 ncbTableSize
 
u16 drbTableBaseHi
 
u16 drbTableBaseLo
 
u16 drbTableSize
 
u8 unused_2 [EEPROM_UNUSED_2_SIZE]
 
u16 ipReassemblyTimeout
 
u16 tcpMaxWindowSizeHi
 
u16 tcpMaxWindowSizeLo
 
u32 net_ip_addr0
 
u32 net_ip_addr1
 
u32 scsi_ip_addr0
 
u32 scsi_ip_addr1
 
u8 unused_3 [EEPROM_UNUSED_3_SIZE]
 
u16 subsysVendorId_f0
 
u16 subsysDeviceId_f0
 
u16 signature
 
u8 unused_4 [EEPROM_UNUSED_4_SIZE]
 
u16 subsysVendorId_f1
 
u16 subsysDeviceId_f1
 
u16 checksum
 
u8 asicId [4]
 
u8 reserved_5
 
u16 boardId
 
u8 boardIdStr [16]
 
u8 serialNumber [16]
 
struct eeprom_port_cfg macCfg_port0
 
struct eeprom_port_cfg macCfg_port1
 
u16 reserved_142 [4]
 
u16 tcpMaxWindowSize
 
u16 ipSecurity
 
u8 reserved_156 [294]
 
u16 qDebug [8]
 
struct eeprom_function_cfg funcCfg_fn0
 
u16 reserved_510
 
u8 oemSpace [432]
 
struct bios_params sBIOSParams_fn1
 
struct eeprom_function_cfg funcCfg_fn1
 
u16 reserved_1022
 
u8 reserved_1024 [464]
 
struct eeprom_function_cfg funcCfg_fn2
 
u16 reserved_1534
 
u8 reserved_1536 [432]
 
struct bios_params sBIOSParams_fn3
 
struct eeprom_function_cfg funcCfg_fn3
 

Macro Definition Documentation

#define AUBURN_EEPROM_CLK_FALL   0x0

Definition at line 63 of file ql4_nvram.h.

#define AUBURN_EEPROM_CLK_RISE   0x1

Definition at line 62 of file ql4_nvram.h.

#define AUBURN_EEPROM_CS   0x2

Definition at line 59 of file ql4_nvram.h.

#define AUBURN_EEPROM_CS_0   0x0

Definition at line 60 of file ql4_nvram.h.

#define AUBURN_EEPROM_CS_1   0x2

Definition at line 61 of file ql4_nvram.h.

#define AUBURN_EEPROM_DI   0x8

Definition at line 53 of file ql4_nvram.h.

#define AUBURN_EEPROM_DI_0   0x0

Definition at line 54 of file ql4_nvram.h.

#define AUBURN_EEPROM_DI_1   0x8

Definition at line 55 of file ql4_nvram.h.

#define AUBURN_EEPROM_DO   0x4

Definition at line 56 of file ql4_nvram.h.

#define AUBURN_EEPROM_DO_0   0x0

Definition at line 57 of file ql4_nvram.h.

#define AUBURN_EEPROM_DO_1   0x4

Definition at line 58 of file ql4_nvram.h.

#define EEPROM_BOARDID_ELDORADO   1

Definition at line 190 of file ql4_nvram.h.

#define EEPROM_BOARDID_PLACER   2

Definition at line 191 of file ql4_nvram.h.

#define EEPROM_SERIAL_NUM_SIZE   16

Definition at line 193 of file ql4_nvram.h.

#define EEPROM_UNUSED_1_SIZE   2

Definition at line 217 of file ql4_nvram.h.

#define EEPROM_UNUSED_2_SIZE   4

Definition at line 238 of file ql4_nvram.h.

#define EEPROM_UNUSED_3_SIZE
Value:
128 /* changed from 144 to account
* for ip addresses */

Definition at line 248 of file ql4_nvram.h.

#define EEPROM_UNUSED_4_SIZE   250

Definition at line 258 of file ql4_nvram.h.

#define FM93C56A_BUSY   1

Definition at line 49 of file ql4_nvram.h.

#define FM93C56A_CMD_BITS   2

Definition at line 50 of file ql4_nvram.h.

#define FM93C56A_DATA_BITS_16   16

Definition at line 43 of file ql4_nvram.h.

#define FM93C56A_DATA_BITS_8   8

Definition at line 44 of file ql4_nvram.h.

#define FM93C56A_ERASE   0x3

Definition at line 28 of file ql4_nvram.h.

#define FM93C56A_ERASE_ALL   0x0

Definition at line 29 of file ql4_nvram.h.

#define FM93C56A_ERASE_ALL_EXT   0x2

Definition at line 35 of file ql4_nvram.h.

#define FM93C56A_NO_ADDR_BITS_16   8 /* 4010 */

Definition at line 38 of file ql4_nvram.h.

#define FM93C56A_NO_ADDR_BITS_8   9 /* 4010 */

Definition at line 39 of file ql4_nvram.h.

#define FM93C56A_READ   0x2

Definition at line 23 of file ql4_nvram.h.

#define FM93C56A_READ_DUMMY_BITS   1

Definition at line 47 of file ql4_nvram.h.

#define FM93C56A_READY   0

Definition at line 48 of file ql4_nvram.h.

#define FM93C56A_SIGNATURE   0x9356

Definition at line 254 of file ql4_nvram.h.

#define FM93C56A_SIZE_16   0x80

Definition at line 15 of file ql4_nvram.h.

#define FM93C56A_SIZE_8   0x100

AM29LV Flash definitions

Definition at line 14 of file ql4_nvram.h.

#define FM93C56A_START   0x1

Definition at line 20 of file ql4_nvram.h.

#define FM93C56A_WDS   0x0

Definition at line 27 of file ql4_nvram.h.

#define FM93C56A_WDS_EXT   0x0

Definition at line 34 of file ql4_nvram.h.

#define FM93C56A_WEN   0x0

Definition at line 24 of file ql4_nvram.h.

#define FM93C56A_WEN_EXT   0x3

Definition at line 32 of file ql4_nvram.h.

#define FM93C56A_WRITE   0x1

Definition at line 25 of file ql4_nvram.h.

#define FM93C56A_WRITE_ALL   0x0

Definition at line 26 of file ql4_nvram.h.

#define FM93C56A_WRITE_ALL_EXT   0x1

Definition at line 33 of file ql4_nvram.h.

#define FM93C66A_SIGNATURE   0x9366

Definition at line 255 of file ql4_nvram.h.

#define FM93C66A_SIZE_16   0x100/* 4010 */

Definition at line 17 of file ql4_nvram.h.

#define FM93C66A_SIZE_8   0x200

Definition at line 16 of file ql4_nvram.h.

#define FM93C86A_NO_ADDR_BITS_16   10 /* 4022 */

Definition at line 40 of file ql4_nvram.h.

#define FM93C86A_SIZE_16   0x400/* 4022 */

Definition at line 18 of file ql4_nvram.h.

#define MAC_CONFIG_ENABLE_ANEG   0x0001

Definition at line 210 of file ql4_nvram.h.

#define MAC_CONFIG_ENABLE_PAUSE   0x0002

Definition at line 211 of file ql4_nvram.h.

#define PHY_CONFIG_ENABLE_FW_MANAGEMENT_MASK   0x20

Definition at line 214 of file ql4_nvram.h.

#define PHY_CONFIG_PHY_ADDR_MASK   0x1f

Definition at line 213 of file ql4_nvram.h.

Variable Documentation

u8 asic_id[4]

Definition at line 186 of file ql4_nvram.h.

u8 asicId[4]

Definition at line 249 of file ql4_nvram.h.

u16 board_id

Definition at line 189 of file ql4_nvram.h.

u16 boardId

Definition at line 252 of file ql4_nvram.h.

u8 boardIdStr[16]

Definition at line 253 of file ql4_nvram.h.

u16 bufletCount

Definition at line 220 of file ql4_nvram.h.

u16 bufletPauseThreshold

Definition at line 221 of file ql4_nvram.h.

u16 bufletSize

Definition at line 219 of file ql4_nvram.h.

u16 checksum

Definition at line 262 of file ql4_nvram.h.

u16 drbTableBaseHi

Definition at line 234 of file ql4_nvram.h.

u16 drbTableBaseLo

Definition at line 235 of file ql4_nvram.h.

u16 drbTableSize

Definition at line 236 of file ql4_nvram.h.

u16 etherMtu

Definition at line 208 of file ql4_nvram.h.

u16 ext_hw_conf

Definition at line 203 of file ql4_nvram.h.

Definition at line 291 of file ql4_nvram.h.

Definition at line 297 of file ql4_nvram.h.

Definition at line 302 of file ql4_nvram.h.

Definition at line 308 of file ql4_nvram.h.

u16 ipHashTableBaseHi

Definition at line 225 of file ql4_nvram.h.

u16 ipHashTableBaseLo

Definition at line 226 of file ql4_nvram.h.

u16 ipHashTableSize

Definition at line 227 of file ql4_nvram.h.

u16 ipReassemblyTimeout

Definition at line 240 of file ql4_nvram.h.

u16 ipSecurity

Definition at line 288 of file ql4_nvram.h.

u8 mac0[6]

Definition at line 204 of file ql4_nvram.h.

u8 mac1[6]

Definition at line 205 of file ql4_nvram.h.

u8 mac2[6]

Definition at line 206 of file ql4_nvram.h.

u8 mac3[6]

Definition at line 207 of file ql4_nvram.h.

struct eeprom_port_cfg macCfg_port0

Definition at line 260 of file ql4_nvram.h.

struct eeprom_port_cfg macCfg_port1

Definition at line 263 of file ql4_nvram.h.

u16 macConfig

Definition at line 209 of file ql4_nvram.h.

u16 ncbTableBaseHi

Definition at line 231 of file ql4_nvram.h.

u16 ncbTableBaseLo

Definition at line 232 of file ql4_nvram.h.

u16 ncbTableSize

Definition at line 233 of file ql4_nvram.h.

u32 net_ip_addr0

Definition at line 243 of file ql4_nvram.h.

u32 net_ip_addr1

Definition at line 245 of file ql4_nvram.h.

u8 oemSpace[432]

Definition at line 295 of file ql4_nvram.h.

u16 phyConfig

Definition at line 212 of file ql4_nvram.h.

u16 qDebug[8]

Definition at line 290 of file ql4_nvram.h.

u8 reserved

Definition at line 188 of file ql4_nvram.h.

u16 reserved_1022

Definition at line 298 of file ql4_nvram.h.

u8 reserved_1024[464]

Definition at line 301 of file ql4_nvram.h.

u16 reserved_142[4]

Definition at line 283 of file ql4_nvram.h.

u16 reserved_1534

Definition at line 303 of file ql4_nvram.h.

u8 reserved_1536[432]

Definition at line 306 of file ql4_nvram.h.

u8 reserved_156[294]

Definition at line 289 of file ql4_nvram.h.

u8 reserved_5

Definition at line 251 of file ql4_nvram.h.

u16 reserved_510

Definition at line 292 of file ql4_nvram.h.

u16 reserved_56

Definition at line 215 of file ql4_nvram.h.

struct bios_params sBIOSParams_fn1

Definition at line 296 of file ql4_nvram.h.

struct bios_params sBIOSParams_fn3

Definition at line 307 of file ql4_nvram.h.

u32 scsi_ip_addr0

Definition at line 246 of file ql4_nvram.h.

u32 scsi_ip_addr1

Definition at line 247 of file ql4_nvram.h.

u8 serial_number[EEPROM_SERIAL_NUM_SIZE]

Definition at line 194 of file ql4_nvram.h.

u8 serialNumber[16]

Definition at line 254 of file ql4_nvram.h.

u16 signature

Definition at line 256 of file ql4_nvram.h.

u16 subsysDeviceId_f0

Definition at line 251 of file ql4_nvram.h.

u16 subsysDeviceId_f1

Definition at line 261 of file ql4_nvram.h.

u16 subsysVendorId_f0

Definition at line 250 of file ql4_nvram.h.

u16 subsysVendorId_f1

Definition at line 260 of file ql4_nvram.h.

u16 tcpHashTableBaseHi

Definition at line 228 of file ql4_nvram.h.

u16 tcpHashTableBaseLo

Definition at line 229 of file ql4_nvram.h.

u16 tcpHashTableSize

Definition at line 230 of file ql4_nvram.h.

u16 tcpMaxWindowSize

Definition at line 287 of file ql4_nvram.h.

u16 tcpMaxWindowSizeHi

Definition at line 241 of file ql4_nvram.h.

u16 tcpMaxWindowSizeLo

Definition at line 242 of file ql4_nvram.h.

u16 tcpWindowThreshold0

Definition at line 224 of file ql4_nvram.h.

u16 tcpWindowThreshold25

Definition at line 223 of file ql4_nvram.h.

u16 tcpWindowThreshold50

Definition at line 222 of file ql4_nvram.h.

Definition at line 218 of file ql4_nvram.h.

Definition at line 239 of file ql4_nvram.h.

Definition at line 249 of file ql4_nvram.h.

Definition at line 259 of file ql4_nvram.h.

u8 version

Definition at line 187 of file ql4_nvram.h.