ReactOS 0.4.15-dev-7942-gd23573b
rtlhw.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _PACKET_HEADER
 
struct  _ETH_HEADER
 

Macros

#define MAXIMUM_MULTICAST_ADDRESSES   8
 
#define DEFAULT_INTERRUPT_MASK
 
#define TX_DESC_COUNT   4
 
#define R_MAC   0x00
 
#define R_MCAST0   0x08
 
#define R_MCAST1   0x09
 
#define R_MCAST2   0x0A
 
#define R_MCAST3   0x0B
 
#define R_MCAST4   0x0C
 
#define R_MCAST5   0x0D
 
#define R_MCAST6   0x0E
 
#define R_MCAST7   0x0F
 
#define R_TXSTS0   0x10
 
#define R_TXSTS1   0x14
 
#define R_TXSTS2   0x18
 
#define R_TXSTS3   0x1C
 
#define R_TXSAD0   0x20
 
#define R_TXSAD1   0x24
 
#define R_TXSAD2   0x28
 
#define R_TXSAD3   0x2C
 
#define R_RXSA   0x30
 
#define R_ERXBC   0x34
 
#define R_ERXSTS   0x36
 
#define R_TXS_HOSTOWNS   0x00002000
 
#define R_TXS_UNDERRUN   0x00004000
 
#define R_TXS_STATOK   0x00008000
 
#define R_TXS_OOW   0x20000000
 
#define R_TXS_ABORTED   0x40000000
 
#define R_TXS_CARLOST   0x80000000
 
#define R_CMD   0x37
 
#define R_CMD_RXEMPTY   0x01
 
#define B_CMD_TXE   0x04
 
#define B_CMD_RXE   0x08
 
#define B_CMD_RST   0x10
 
#define R_CAPR   0x38
 
#define R_CBA   0x3A
 
#define R_IM   0x3C
 
#define R_IS   0x3E
 
#define R_TC   0x40
 
#define R_I_RXOK   0x0001
 
#define R_I_RXERR   0x0002
 
#define R_I_TXOK   0x0004
 
#define R_I_TXERR   0x0008
 
#define R_I_RXOVRFLW   0x0010
 
#define R_I_RXUNDRUN   0x0020
 
#define R_I_FIFOOVR   0x0040
 
#define R_I_PCSTMOUT   0x4000
 
#define R_I_PCIERR   0x8000
 
#define R_RC   0x44
 
#define B_RC_AAP   0x01
 
#define B_RC_APM   0x02
 
#define B_RC_AM   0x04
 
#define B_RC_AB   0x08
 
#define B_RC_AR   0x10
 
#define R_TCTR   0x48
 
#define R_MPC   0x4C
 
#define R_9346CR   0x50
 
#define R_CFG0   0x51
 
#define R_CFG1   0x52
 
#define R_TINTR   0x54
 
#define R_MS   0x58
 
#define R_MS_LINKDWN   0x04
 
#define R_MS_SPEED_10   0x08
 
#define R_CFG3   0x59
 
#define R_CFG4   0x5A
 
#define R_MINTS   0x5C
 
#define R_PCIID   0x5E
 
#define R_DTSTS   0x60
 
#define R_BMC   0x62
 
#define R_BMSTS   0x64
 
#define R_ANA   0x66
 
#define R_ANLP   0x68
 
#define R_ANEX   0x6A
 
#define R_DCTR   0x6C
 
#define R_FCSCTR   0x6E
 
#define R_NWT   0x70
 
#define R_RXERRCTR   0x72
 
#define R_CSCFG   0x74
 
#define R_CSCR_LINKOK   0x00400
 
#define R_CSCR_LINKCHNG   0x00800
 
#define R_PHYP1   0x78
 
#define R_TWP   0x7C
 
#define R_PHYP2   0x80
 
#define R_PCRC0   0x84
 
#define R_PCRC1   0x85
 
#define R_PCRC2   0x86
 
#define R_PCRC3   0x87
 
#define R_PCRC4   0x88
 
#define R_PCRC5   0x89
 
#define R_PCRC6   0x8A
 
#define R_PCRC7   0x8B
 
#define R_WAKE0   0x8C
 
#define R_WAKE1   0x94
 
#define R_WAKE2   0x9C
 
#define R_WAKE3   0xA4
 
#define R_WAKE4   0xAC
 
#define R_WAKE5   0xB4
 
#define R_WAKE6   0xBC
 
#define R_WAKE7   0xC4
 
#define R_LSBCRC0   0xCC
 
#define R_LSBCRC1   0xCD
 
#define R_LSBCRC2   0xCE
 
#define R_LSBCRC3   0xCF
 
#define R_LSBCRC4   0xD0
 
#define R_LSBCRC5   0xD1
 
#define R_LSBCRC6   0xD2
 
#define R_LSBCRC7   0xD3
 
#define R_CFG5   0xD8
 
#define EE_DATA_READ   0x01
 
#define EE_DATA_WRITE   0x02
 
#define EE_SHIFT_CLK   0x04
 
#define EE_CS   0x08
 
#define EE_ENB   0x88
 
#define EE_READ_CMD   0x06
 
#define RSR_MAR   0x8000
 
#define RSR_PAM   0x4000
 
#define RSR_BAR   0x2000
 
#define RSR_ISE   0x0020
 
#define RSR_RUNT   0x0010
 
#define RSR_LONG   0x0008
 
#define RSR_CRC   0x0004
 
#define RSR_FAE   0x0002
 
#define RSR_ROK   0x0001
 
#define IEEE_802_ADDR_LENGTH   6
 

Typedefs

typedef struct _PACKET_HEADER PACKET_HEADER
 
typedef struct _PACKET_HEADERPPACKET_HEADER
 
typedef struct _ETH_HEADER ETH_HEADER
 
typedef struct _ETH_HEADERPETH_HEADER
 

Macro Definition Documentation

◆ B_CMD_RST

#define B_CMD_RST   0x10

Definition at line 49 of file rtlhw.h.

◆ B_CMD_RXE

#define B_CMD_RXE   0x08

Definition at line 48 of file rtlhw.h.

◆ B_CMD_TXE

#define B_CMD_TXE   0x04

Definition at line 47 of file rtlhw.h.

◆ B_RC_AAP

#define B_RC_AAP   0x01

Definition at line 68 of file rtlhw.h.

◆ B_RC_AB

#define B_RC_AB   0x08

Definition at line 71 of file rtlhw.h.

◆ B_RC_AM

#define B_RC_AM   0x04

Definition at line 70 of file rtlhw.h.

◆ B_RC_APM

#define B_RC_APM   0x02

Definition at line 69 of file rtlhw.h.

◆ B_RC_AR

#define B_RC_AR   0x10

Definition at line 72 of file rtlhw.h.

◆ DEFAULT_INTERRUPT_MASK

#define DEFAULT_INTERRUPT_MASK
Value:
#define R_I_TXERR
Definition: rtlhw.h:60
#define R_I_RXUNDRUN
Definition: rtlhw.h:62
#define R_I_RXOVRFLW
Definition: rtlhw.h:61
#define R_I_RXOK
Definition: rtlhw.h:57
#define R_I_TXOK
Definition: rtlhw.h:59
#define R_I_FIFOOVR
Definition: rtlhw.h:63
#define R_I_RXERR
Definition: rtlhw.h:58
#define R_I_PCSTMOUT
Definition: rtlhw.h:64
#define R_I_PCIERR
Definition: rtlhw.h:65

Definition at line 11 of file rtlhw.h.

◆ EE_CS

#define EE_CS   0x08

Definition at line 137 of file rtlhw.h.

◆ EE_DATA_READ

#define EE_DATA_READ   0x01

Definition at line 134 of file rtlhw.h.

◆ EE_DATA_WRITE

#define EE_DATA_WRITE   0x02

Definition at line 135 of file rtlhw.h.

◆ EE_ENB

#define EE_ENB   0x88

Definition at line 138 of file rtlhw.h.

◆ EE_READ_CMD

#define EE_READ_CMD   0x06

Definition at line 142 of file rtlhw.h.

◆ EE_SHIFT_CLK

#define EE_SHIFT_CLK   0x04

Definition at line 136 of file rtlhw.h.

◆ IEEE_802_ADDR_LENGTH

#define IEEE_802_ADDR_LENGTH   6

Definition at line 160 of file rtlhw.h.

◆ MAXIMUM_MULTICAST_ADDRESSES

#define MAXIMUM_MULTICAST_ADDRESSES   8

Definition at line 10 of file rtlhw.h.

◆ R_9346CR

#define R_9346CR   0x50

Definition at line 76 of file rtlhw.h.

◆ R_ANA

#define R_ANA   0x66

Definition at line 92 of file rtlhw.h.

◆ R_ANEX

#define R_ANEX   0x6A

Definition at line 94 of file rtlhw.h.

◆ R_ANLP

#define R_ANLP   0x68

Definition at line 93 of file rtlhw.h.

◆ R_BMC

#define R_BMC   0x62

Definition at line 90 of file rtlhw.h.

◆ R_BMSTS

#define R_BMSTS   0x64

Definition at line 91 of file rtlhw.h.

◆ R_CAPR

#define R_CAPR   0x38

Definition at line 51 of file rtlhw.h.

◆ R_CBA

#define R_CBA   0x3A

Definition at line 52 of file rtlhw.h.

◆ R_CFG0

#define R_CFG0   0x51

Definition at line 77 of file rtlhw.h.

◆ R_CFG1

#define R_CFG1   0x52

Definition at line 78 of file rtlhw.h.

◆ R_CFG3

#define R_CFG3   0x59

Definition at line 85 of file rtlhw.h.

◆ R_CFG4

#define R_CFG4   0x5A

Definition at line 86 of file rtlhw.h.

◆ R_CFG5

#define R_CFG5   0xD8

Definition at line 131 of file rtlhw.h.

◆ R_CMD

#define R_CMD   0x37

Definition at line 45 of file rtlhw.h.

◆ R_CMD_RXEMPTY

#define R_CMD_RXEMPTY   0x01

Definition at line 46 of file rtlhw.h.

◆ R_CSCFG

#define R_CSCFG   0x74

Definition at line 99 of file rtlhw.h.

◆ R_CSCR_LINKCHNG

#define R_CSCR_LINKCHNG   0x00800

Definition at line 102 of file rtlhw.h.

◆ R_CSCR_LINKOK

#define R_CSCR_LINKOK   0x00400

Definition at line 101 of file rtlhw.h.

◆ R_DCTR

#define R_DCTR   0x6C

Definition at line 95 of file rtlhw.h.

◆ R_DTSTS

#define R_DTSTS   0x60

Definition at line 89 of file rtlhw.h.

◆ R_ERXBC

#define R_ERXBC   0x34

Definition at line 35 of file rtlhw.h.

◆ R_ERXSTS

#define R_ERXSTS   0x36

Definition at line 36 of file rtlhw.h.

◆ R_FCSCTR

#define R_FCSCTR   0x6E

Definition at line 96 of file rtlhw.h.

◆ R_I_FIFOOVR

#define R_I_FIFOOVR   0x0040

Definition at line 63 of file rtlhw.h.

◆ R_I_PCIERR

#define R_I_PCIERR   0x8000

Definition at line 65 of file rtlhw.h.

◆ R_I_PCSTMOUT

#define R_I_PCSTMOUT   0x4000

Definition at line 64 of file rtlhw.h.

◆ R_I_RXERR

#define R_I_RXERR   0x0002

Definition at line 58 of file rtlhw.h.

◆ R_I_RXOK

#define R_I_RXOK   0x0001

Definition at line 57 of file rtlhw.h.

◆ R_I_RXOVRFLW

#define R_I_RXOVRFLW   0x0010

Definition at line 61 of file rtlhw.h.

◆ R_I_RXUNDRUN

#define R_I_RXUNDRUN   0x0020

Definition at line 62 of file rtlhw.h.

◆ R_I_TXERR

#define R_I_TXERR   0x0008

Definition at line 60 of file rtlhw.h.

◆ R_I_TXOK

#define R_I_TXOK   0x0004

Definition at line 59 of file rtlhw.h.

◆ R_IM

#define R_IM   0x3C

Definition at line 53 of file rtlhw.h.

◆ R_IS

#define R_IS   0x3E

Definition at line 54 of file rtlhw.h.

◆ R_LSBCRC0

#define R_LSBCRC0   0xCC

Definition at line 123 of file rtlhw.h.

◆ R_LSBCRC1

#define R_LSBCRC1   0xCD

Definition at line 124 of file rtlhw.h.

◆ R_LSBCRC2

#define R_LSBCRC2   0xCE

Definition at line 125 of file rtlhw.h.

◆ R_LSBCRC3

#define R_LSBCRC3   0xCF

Definition at line 126 of file rtlhw.h.

◆ R_LSBCRC4

#define R_LSBCRC4   0xD0

Definition at line 127 of file rtlhw.h.

◆ R_LSBCRC5

#define R_LSBCRC5   0xD1

Definition at line 128 of file rtlhw.h.

◆ R_LSBCRC6

#define R_LSBCRC6   0xD2

Definition at line 129 of file rtlhw.h.

◆ R_LSBCRC7

#define R_LSBCRC7   0xD3

Definition at line 130 of file rtlhw.h.

◆ R_MAC

#define R_MAC   0x00

Definition at line 17 of file rtlhw.h.

◆ R_MCAST0

#define R_MCAST0   0x08

Definition at line 18 of file rtlhw.h.

◆ R_MCAST1

#define R_MCAST1   0x09

Definition at line 19 of file rtlhw.h.

◆ R_MCAST2

#define R_MCAST2   0x0A

Definition at line 20 of file rtlhw.h.

◆ R_MCAST3

#define R_MCAST3   0x0B

Definition at line 21 of file rtlhw.h.

◆ R_MCAST4

#define R_MCAST4   0x0C

Definition at line 22 of file rtlhw.h.

◆ R_MCAST5

#define R_MCAST5   0x0D

Definition at line 23 of file rtlhw.h.

◆ R_MCAST6

#define R_MCAST6   0x0E

Definition at line 24 of file rtlhw.h.

◆ R_MCAST7

#define R_MCAST7   0x0F

Definition at line 25 of file rtlhw.h.

◆ R_MINTS

#define R_MINTS   0x5C

Definition at line 87 of file rtlhw.h.

◆ R_MPC

#define R_MPC   0x4C

Definition at line 75 of file rtlhw.h.

◆ R_MS

#define R_MS   0x58

Definition at line 80 of file rtlhw.h.

◆ R_MS_LINKDWN

#define R_MS_LINKDWN   0x04

Definition at line 82 of file rtlhw.h.

◆ R_MS_SPEED_10

#define R_MS_SPEED_10   0x08

Definition at line 83 of file rtlhw.h.

◆ R_NWT

#define R_NWT   0x70

Definition at line 97 of file rtlhw.h.

◆ R_PCIID

#define R_PCIID   0x5E

Definition at line 88 of file rtlhw.h.

◆ R_PCRC0

#define R_PCRC0   0x84

Definition at line 107 of file rtlhw.h.

◆ R_PCRC1

#define R_PCRC1   0x85

Definition at line 108 of file rtlhw.h.

◆ R_PCRC2

#define R_PCRC2   0x86

Definition at line 109 of file rtlhw.h.

◆ R_PCRC3

#define R_PCRC3   0x87

Definition at line 110 of file rtlhw.h.

◆ R_PCRC4

#define R_PCRC4   0x88

Definition at line 111 of file rtlhw.h.

◆ R_PCRC5

#define R_PCRC5   0x89

Definition at line 112 of file rtlhw.h.

◆ R_PCRC6

#define R_PCRC6   0x8A

Definition at line 113 of file rtlhw.h.

◆ R_PCRC7

#define R_PCRC7   0x8B

Definition at line 114 of file rtlhw.h.

◆ R_PHYP1

#define R_PHYP1   0x78

Definition at line 104 of file rtlhw.h.

◆ R_PHYP2

#define R_PHYP2   0x80

Definition at line 106 of file rtlhw.h.

◆ R_RC

#define R_RC   0x44

Definition at line 67 of file rtlhw.h.

◆ R_RXERRCTR

#define R_RXERRCTR   0x72

Definition at line 98 of file rtlhw.h.

◆ R_RXSA

#define R_RXSA   0x30

Definition at line 34 of file rtlhw.h.

◆ R_TC

#define R_TC   0x40

Definition at line 55 of file rtlhw.h.

◆ R_TCTR

#define R_TCTR   0x48

Definition at line 74 of file rtlhw.h.

◆ R_TINTR

#define R_TINTR   0x54

Definition at line 79 of file rtlhw.h.

◆ R_TWP

#define R_TWP   0x7C

Definition at line 105 of file rtlhw.h.

◆ R_TXS_ABORTED

#define R_TXS_ABORTED   0x40000000

Definition at line 42 of file rtlhw.h.

◆ R_TXS_CARLOST

#define R_TXS_CARLOST   0x80000000

Definition at line 43 of file rtlhw.h.

◆ R_TXS_HOSTOWNS

#define R_TXS_HOSTOWNS   0x00002000

Definition at line 38 of file rtlhw.h.

◆ R_TXS_OOW

#define R_TXS_OOW   0x20000000

Definition at line 41 of file rtlhw.h.

◆ R_TXS_STATOK

#define R_TXS_STATOK   0x00008000

Definition at line 40 of file rtlhw.h.

◆ R_TXS_UNDERRUN

#define R_TXS_UNDERRUN   0x00004000

Definition at line 39 of file rtlhw.h.

◆ R_TXSAD0

#define R_TXSAD0   0x20

Definition at line 30 of file rtlhw.h.

◆ R_TXSAD1

#define R_TXSAD1   0x24

Definition at line 31 of file rtlhw.h.

◆ R_TXSAD2

#define R_TXSAD2   0x28

Definition at line 32 of file rtlhw.h.

◆ R_TXSAD3

#define R_TXSAD3   0x2C

Definition at line 33 of file rtlhw.h.

◆ R_TXSTS0

#define R_TXSTS0   0x10

Definition at line 26 of file rtlhw.h.

◆ R_TXSTS1

#define R_TXSTS1   0x14

Definition at line 27 of file rtlhw.h.

◆ R_TXSTS2

#define R_TXSTS2   0x18

Definition at line 28 of file rtlhw.h.

◆ R_TXSTS3

#define R_TXSTS3   0x1C

Definition at line 29 of file rtlhw.h.

◆ R_WAKE0

#define R_WAKE0   0x8C

Definition at line 115 of file rtlhw.h.

◆ R_WAKE1

#define R_WAKE1   0x94

Definition at line 116 of file rtlhw.h.

◆ R_WAKE2

#define R_WAKE2   0x9C

Definition at line 117 of file rtlhw.h.

◆ R_WAKE3

#define R_WAKE3   0xA4

Definition at line 118 of file rtlhw.h.

◆ R_WAKE4

#define R_WAKE4   0xAC

Definition at line 119 of file rtlhw.h.

◆ R_WAKE5

#define R_WAKE5   0xB4

Definition at line 120 of file rtlhw.h.

◆ R_WAKE6

#define R_WAKE6   0xBC

Definition at line 121 of file rtlhw.h.

◆ R_WAKE7

#define R_WAKE7   0xC4

Definition at line 122 of file rtlhw.h.

◆ RSR_BAR

#define RSR_BAR   0x2000

Definition at line 146 of file rtlhw.h.

◆ RSR_CRC

#define RSR_CRC   0x0004

Definition at line 150 of file rtlhw.h.

◆ RSR_FAE

#define RSR_FAE   0x0002

Definition at line 151 of file rtlhw.h.

◆ RSR_ISE

#define RSR_ISE   0x0020

Definition at line 147 of file rtlhw.h.

◆ RSR_LONG

#define RSR_LONG   0x0008

Definition at line 149 of file rtlhw.h.

◆ RSR_MAR

#define RSR_MAR   0x8000

Definition at line 144 of file rtlhw.h.

◆ RSR_PAM

#define RSR_PAM   0x4000

Definition at line 145 of file rtlhw.h.

◆ RSR_ROK

#define RSR_ROK   0x0001

Definition at line 152 of file rtlhw.h.

◆ RSR_RUNT

#define RSR_RUNT   0x0010

Definition at line 148 of file rtlhw.h.

◆ TX_DESC_COUNT

#define TX_DESC_COUNT   4

Definition at line 14 of file rtlhw.h.

Typedef Documentation

◆ ETH_HEADER

◆ PACKET_HEADER

◆ PETH_HEADER

◆ PPACKET_HEADER