Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
eeprom.c File Reference
#include <linux/pci.h>
#include <linux/slab.h>
#include "tulip.h"
#include <linux/init.h>
#include <asm/unaligned.h>

Go to the source code of this file.

Macros

#define EE_SHIFT_CLK   0x02 /* EEPROM shift clock. */
 
#define EE_CS   0x01 /* EEPROM chip select. */
 
#define EE_DATA_WRITE   0x04 /* Data from the Tulip to EEPROM. */
 
#define EE_WRITE_0   0x01
 
#define EE_WRITE_1   0x05
 
#define EE_DATA_READ   0x08 /* Data from the EEPROM chip. */
 
#define EE_ENB   (0x4800 | EE_CS)
 
#define eeprom_delay()   ioread32(ee_addr)
 
#define EE_READ_CMD   (6)
 

Functions

void __devinit tulip_parse_eeprom (struct net_device *dev)
 
int __devinit tulip_read_eeprom (struct net_device *dev, int location, int addr_len)
 

Macro Definition Documentation

#define EE_CS   0x01 /* EEPROM chip select. */

Definition at line 326 of file eeprom.c.

#define EE_DATA_READ   0x08 /* Data from the EEPROM chip. */

Definition at line 330 of file eeprom.c.

#define EE_DATA_WRITE   0x04 /* Data from the Tulip to EEPROM. */

Definition at line 327 of file eeprom.c.

#define EE_ENB   (0x4800 | EE_CS)

Definition at line 331 of file eeprom.c.

#define EE_READ_CMD   (6)

Definition at line 339 of file eeprom.c.

#define EE_SHIFT_CLK   0x02 /* EEPROM shift clock. */

Definition at line 325 of file eeprom.c.

#define EE_WRITE_0   0x01

Definition at line 328 of file eeprom.c.

#define EE_WRITE_1   0x05

Definition at line 329 of file eeprom.c.

#define eeprom_delay (   void)    ioread32(ee_addr)

Definition at line 336 of file eeprom.c.

Function Documentation

void __devinit tulip_parse_eeprom ( struct net_device dev)

Definition at line 143 of file eeprom.c.

int __devinit tulip_read_eeprom ( struct net_device dev,
int  location,
int  addr_len 
)

Definition at line 342 of file eeprom.c.