Eeprom Data Structure Definition - Compaq Tru64 UNIX Installation Manual

Writing network device drivers
Table of Contents

Advertisement

2.7 EEPROM Data Structure Definition

The following code shows the definition for the w3_eeprom data structure.
This data structure stores information about the 3Com 3C5x9 device.
struct w3_eeprom {
unsigned short addr[3];
unsigned short pid;
unsigned short mandata[3];
unsigned short mid;
unsigned short addrconf;
unsigned short resconf;
unsigned short oem[3];
unsigned short swinfo;
unsigned short compat;
unsigned short cs1;
unsigned short cw2;
unsigned short res1;
unsigned int
unsigned short swinfo2;
unsigned short res[2];
unsigned short cs2;
unsigned short pnp[40];
};
Defines an EEPROM data structure called w3_eeprom. This data
1
structure has the following members:
addr
pid
mandata
mid
addrconf
resconf
oem
swinfo
compat
cs1
cw2
res1
icw
swinfo2
res
cs2
pnp
1
icw;
Contains the local area network (LAN) address.
Contains the product ID.
Contains manufacturing data.
Contains the manufacturer ID.
Contains the address configuration.
Contains the resource configuration.
Contains original equipment manufacturer
(OEM) address fields.
Contains software information.
Contains a compatibility word.
Contains the first part of the checksum.
Contains a second compatibility word.
Reserved.
Contains an internal configuration word.
Contains secondary software information.
Reserved.
Contains the second part of the checksum.
Contains plug-and-play data.
Defining Device Register Offsets 2–13

Advertisement

Table of Contents
loading

Table of Contents