ReactOS 0.4.15-dev-8138-g1e75ea8
eeprom.h File Reference
#include <pshpack1.h>
#include <poppack.h>
Include dependency graph for eeprom.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _DC_SROM_COMPACT_BLOCK
 
struct  _DC_SROM_REPAIR_ENTRY
 
struct  _DC_SROM_ENTRY
 

Macros

#define SRomIsBlockExtended(Byte)   ((Byte) & 0x80)
 
#define SRomGetExtendedBlockLength(Byte)   (((Byte) & 0x7F) + 1)
 
#define SRomGetMediaCode(Byte)   ((Byte) & 0x3F)
 
#define SRomBlockHasExtendedData(Byte)   ((Byte) & 0x40)
 
#define SRomIsDefaultMedia(Word)   ((Word) & 0x4000)
 
#define SRomMediaHasActivityIndicator(Word)   (((Word) & 0x8000) == 0)
 
#define SRomMediaActivityIsActiveLow(Word)   ((Word) & 0x80)
 
#define SRomMediaGetSenseMask(Word)   (1 << (((Word) & 0x0E) >> 1))
 
#define SRomCommandToOpMode(Word)   (((Word) & 0x71) << 18)
 
#define SRomMediaAutoSense(Media)   ((Media) & 0x800)
 
#define SRomMediaToMediaNumber(Word)   ((Word) & 0x1F)
 
#define SRomHmrRegAddress(Byte)   ((Byte) & 0x1F)
 
#define SROM_OPMODE_MASK
 
#define EE_SIZE   128
 
#define EAR_SIZE   32
 
#define EAR_TEST_PATTERN   0xAA5500FFAA5500FFULL
 
#define EEPROM_CMD_WRITE   5
 
#define EEPROM_CMD_READ   6
 
#define EEPROM_CMD_ERASE   7
 
#define EEPROM_CMD_LENGTH   3
 
#define SROM_VERSION   18
 
#define SROM_CONTROLLER_COUNT   19
 
#define SROM_MAC_ADDRESS   20
 
#define SROM_DEVICE_NUMBER(n)   (26 + ((n) * 3))
 
#define SROM_LEAF_OFFSET(n)   (27 + ((n) * 3))
 
#define SROM_CHECKSUM_V1   126
 
#define SROM_CHECKSUM_V2   94
 
#define SROM_BLOCK_TYPE_GPR   0
 
#define SROM_BLOCK_TYPE_MII_1   1
 
#define SROM_BLOCK_TYPE_SIA   2
 
#define SROM_BLOCK_TYPE_MII_2   3
 
#define SROM_BLOCK_TYPE_SYM   4
 
#define SROM_BLOCK_TYPE_RESET   5
 
#define SROM_BLOCK_TYPE_PHY_SHUTDOWN   6
 
#define SROM_BLOCK_TYPE_HOMERUN   7
 
#define SROM_MAX_STREAM_REGS   6
 
#define SROM_MEDIA_10T   0
 
#define SROM_MEDIA_BNC   1
 
#define SROM_MEDIA_AUI   2
 
#define SROM_MEDIA_100T_HD   3
 
#define SROM_MEDIA_10T_FD   4
 
#define SROM_MEDIA_100TX_FD   5
 
#define SROM_MEDIA_100T4   6
 
#define SROM_MEDIA_100FX_HD   7
 
#define SROM_MEDIA_100FX_FD   8
 
#define SROM_MEDIA_MAX   8
 
#define SROM_MEDIA_HMR   18
 

Typedefs

typedef struct _DC_SROM_COMPACT_BLOCK DC_SROM_COMPACT_BLOCK
 
typedef struct _DC_SROM_COMPACT_BLOCKPDC_SROM_COMPACT_BLOCK
 
typedef struct _DC_SROM_REPAIR_ENTRY DC_SROM_REPAIR_ENTRY
 
typedef struct _DC_SROM_REPAIR_ENTRYPDC_SROM_REPAIR_ENTRY
 
typedef struct _DC_SROM_ENTRY DC_SROM_ENTRY
 
typedef struct _DC_SROM_ENTRYPDC_SROM_ENTRY
 

Macro Definition Documentation

◆ EAR_SIZE

#define EAR_SIZE   32

Definition at line 60 of file eeprom.h.

◆ EAR_TEST_PATTERN

#define EAR_TEST_PATTERN   0xAA5500FFAA5500FFULL

Definition at line 62 of file eeprom.h.

◆ EE_SIZE

#define EE_SIZE   128

Definition at line 59 of file eeprom.h.

◆ EEPROM_CMD_ERASE

#define EEPROM_CMD_ERASE   7

Definition at line 66 of file eeprom.h.

◆ EEPROM_CMD_LENGTH

#define EEPROM_CMD_LENGTH   3

Definition at line 68 of file eeprom.h.

◆ EEPROM_CMD_READ

#define EEPROM_CMD_READ   6

Definition at line 65 of file eeprom.h.

◆ EEPROM_CMD_WRITE

#define EEPROM_CMD_WRITE   5

Definition at line 64 of file eeprom.h.

◆ SROM_BLOCK_TYPE_GPR

#define SROM_BLOCK_TYPE_GPR   0

Definition at line 84 of file eeprom.h.

◆ SROM_BLOCK_TYPE_HOMERUN

#define SROM_BLOCK_TYPE_HOMERUN   7

Definition at line 91 of file eeprom.h.

◆ SROM_BLOCK_TYPE_MII_1

#define SROM_BLOCK_TYPE_MII_1   1

Definition at line 85 of file eeprom.h.

◆ SROM_BLOCK_TYPE_MII_2

#define SROM_BLOCK_TYPE_MII_2   3

Definition at line 87 of file eeprom.h.

◆ SROM_BLOCK_TYPE_PHY_SHUTDOWN

#define SROM_BLOCK_TYPE_PHY_SHUTDOWN   6

Definition at line 90 of file eeprom.h.

◆ SROM_BLOCK_TYPE_RESET

#define SROM_BLOCK_TYPE_RESET   5

Definition at line 89 of file eeprom.h.

◆ SROM_BLOCK_TYPE_SIA

#define SROM_BLOCK_TYPE_SIA   2

Definition at line 86 of file eeprom.h.

◆ SROM_BLOCK_TYPE_SYM

#define SROM_BLOCK_TYPE_SYM   4

Definition at line 88 of file eeprom.h.

◆ SROM_CHECKSUM_V1

#define SROM_CHECKSUM_V1   126

Definition at line 78 of file eeprom.h.

◆ SROM_CHECKSUM_V2

#define SROM_CHECKSUM_V2   94

Definition at line 79 of file eeprom.h.

◆ SROM_CONTROLLER_COUNT

#define SROM_CONTROLLER_COUNT   19

Definition at line 74 of file eeprom.h.

◆ SROM_DEVICE_NUMBER

#define SROM_DEVICE_NUMBER (   n)    (26 + ((n) * 3))

Definition at line 76 of file eeprom.h.

◆ SROM_LEAF_OFFSET

#define SROM_LEAF_OFFSET (   n)    (27 + ((n) * 3))

Definition at line 77 of file eeprom.h.

◆ SROM_MAC_ADDRESS

#define SROM_MAC_ADDRESS   20

Definition at line 75 of file eeprom.h.

◆ SROM_MAX_STREAM_REGS

#define SROM_MAX_STREAM_REGS   6

Definition at line 93 of file eeprom.h.

◆ SROM_MEDIA_100FX_FD

#define SROM_MEDIA_100FX_FD   8

Definition at line 106 of file eeprom.h.

◆ SROM_MEDIA_100FX_HD

#define SROM_MEDIA_100FX_HD   7

Definition at line 105 of file eeprom.h.

◆ SROM_MEDIA_100T4

#define SROM_MEDIA_100T4   6

Definition at line 104 of file eeprom.h.

◆ SROM_MEDIA_100T_HD

#define SROM_MEDIA_100T_HD   3

Definition at line 101 of file eeprom.h.

◆ SROM_MEDIA_100TX_FD

#define SROM_MEDIA_100TX_FD   5

Definition at line 103 of file eeprom.h.

◆ SROM_MEDIA_10T

#define SROM_MEDIA_10T   0

Definition at line 98 of file eeprom.h.

◆ SROM_MEDIA_10T_FD

#define SROM_MEDIA_10T_FD   4

Definition at line 102 of file eeprom.h.

◆ SROM_MEDIA_AUI

#define SROM_MEDIA_AUI   2

Definition at line 100 of file eeprom.h.

◆ SROM_MEDIA_BNC

#define SROM_MEDIA_BNC   1

Definition at line 99 of file eeprom.h.

◆ SROM_MEDIA_HMR

#define SROM_MEDIA_HMR   18

Definition at line 108 of file eeprom.h.

◆ SROM_MEDIA_MAX

#define SROM_MEDIA_MAX   8

Definition at line 107 of file eeprom.h.

◆ SROM_OPMODE_MASK

#define SROM_OPMODE_MASK
Value:
#define DC_OPMODE_PORT_SCRAMBLER
Definition: dc21x4hw.h:339
#define DC_OPMODE_PORT_PCS
Definition: dc21x4hw.h:338
#define DC_OPMODE_PORT_XMIT_10
Definition: dc21x4hw.h:337
#define DC_OPMODE_PORT_SELECT
Definition: dc21x4hw.h:334

Definition at line 53 of file eeprom.h.

◆ SROM_VERSION

#define SROM_VERSION   18

Definition at line 73 of file eeprom.h.

◆ SRomBlockHasExtendedData

#define SRomBlockHasExtendedData (   Byte)    ((Byte) & 0x40)

Definition at line 43 of file eeprom.h.

◆ SRomCommandToOpMode

#define SRomCommandToOpMode (   Word)    (((Word) & 0x71) << 18)

Definition at line 48 of file eeprom.h.

◆ SRomGetExtendedBlockLength

#define SRomGetExtendedBlockLength (   Byte)    (((Byte) & 0x7F) + 1)

Definition at line 41 of file eeprom.h.

◆ SRomGetMediaCode

#define SRomGetMediaCode (   Byte)    ((Byte) & 0x3F)

Definition at line 42 of file eeprom.h.

◆ SRomHmrRegAddress

#define SRomHmrRegAddress (   Byte)    ((Byte) & 0x1F)

Definition at line 51 of file eeprom.h.

◆ SRomIsBlockExtended

#define SRomIsBlockExtended (   Byte)    ((Byte) & 0x80)

Definition at line 40 of file eeprom.h.

◆ SRomIsDefaultMedia

#define SRomIsDefaultMedia (   Word)    ((Word) & 0x4000)

Definition at line 44 of file eeprom.h.

◆ SRomMediaActivityIsActiveLow

#define SRomMediaActivityIsActiveLow (   Word)    ((Word) & 0x80)

Definition at line 46 of file eeprom.h.

◆ SRomMediaAutoSense

#define SRomMediaAutoSense (   Media)    ((Media) & 0x800)

Definition at line 49 of file eeprom.h.

◆ SRomMediaGetSenseMask

#define SRomMediaGetSenseMask (   Word)    (1 << (((Word) & 0x0E) >> 1))

Definition at line 47 of file eeprom.h.

◆ SRomMediaHasActivityIndicator

#define SRomMediaHasActivityIndicator (   Word)    (((Word) & 0x8000) == 0)

Definition at line 45 of file eeprom.h.

◆ SRomMediaToMediaNumber

#define SRomMediaToMediaNumber (   Word)    ((Word) & 0x1F)

Definition at line 50 of file eeprom.h.

Typedef Documentation

◆ DC_SROM_COMPACT_BLOCK

◆ DC_SROM_ENTRY

◆ DC_SROM_REPAIR_ENTRY

◆ PDC_SROM_COMPACT_BLOCK

◆ PDC_SROM_ENTRY

◆ PDC_SROM_REPAIR_ENTRY