|
PS2SDK
PS2 Homebrew Libraries
|
Include dependency graph for smapregs.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Data Structures | |
| struct | _smap_bd |
Typedefs | |
| typedef struct _smap_bd | smap_bd_t |
SMAP (PS2 Network Adapter) register definitions. Contains register definitions for the Ethernet MAC (EMAC). The EMAC is similar to the EMAC from the IBM PowerPC 405gp.
Definition in file smapregs.h.
| struct _smap_bd |
Buffer descriptors.
Definition at line 284 of file smapregs.h.
| Data Fields | ||
|---|---|---|
| vu16 | ctrl_stat | |
| vu16 | reserved |
must be zero |
| vu16 | length |
number of bytes in pkt |
| vu16 | pointer | |
| #define SMAP_INTR_EMAC3 (1 << 6) |
Definition at line 25 of file smapregs.h.
| #define SMAP_INTR_RXEND (1 << 5) |
Definition at line 26 of file smapregs.h.
| #define SMAP_INTR_TXEND (1 << 4) |
Definition at line 27 of file smapregs.h.
| #define SMAP_INTR_RXDNV (1 << 3) /* descriptor not valid */ |
Definition at line 28 of file smapregs.h.
| #define SMAP_INTR_TXDNV (1 << 2) /* descriptor not valid */ |
Definition at line 29 of file smapregs.h.
| #define SMAP_INTR_CLR_ALL (SMAP_INTR_RXEND | SMAP_INTR_TXEND | SMAP_INTR_RXDNV) |
Definition at line 30 of file smapregs.h.
| #define SMAP_INTR_ENA_ALL (SMAP_INTR_EMAC3 | SMAP_INTR_CLR_ALL) |
Definition at line 31 of file smapregs.h.
| #define SMAP_INTR_BITMSK (SMAP_INTR_EMAC3 | SMAP_INTR_RXEND | SMAP_INTR_TXEND | SMAP_INTR_RXDNV | SMAP_INTR_TXDNV) |
Definition at line 32 of file smapregs.h.
| #define SMAP_REGBASE (SPD_REGBASE + 0x100) |
Definition at line 36 of file smapregs.h.
| #define USE_SMAP_REGS |
Definition at line 38 of file smapregs.h.
| #define SMAP_REG8 | ( | offset | ) |
Definition at line 41 of file smapregs.h.
| #define SMAP_REG16 | ( | offset | ) |
Definition at line 42 of file smapregs.h.
| #define SMAP_REG32 | ( | offset | ) |
Definition at line 43 of file smapregs.h.
| #define SMAP_R_BD_MODE 0x02 |
Definition at line 45 of file smapregs.h.
| #define SMAP_BD_SWAP (1 << 0) |
Definition at line 46 of file smapregs.h.
| #define SMAP_R_INTR_CLR 0x28 |
Definition at line 48 of file smapregs.h.
| #define SMAP_R_TXFIFO_CTRL 0xf00 |
Definition at line 52 of file smapregs.h.
| #define SMAP_TXFIFO_RESET (1 << 0) |
Definition at line 53 of file smapregs.h.
| #define SMAP_TXFIFO_DMAEN (1 << 1) |
Definition at line 54 of file smapregs.h.
| #define SMAP_R_TXFIFO_WR_PTR 0xf04 |
Definition at line 55 of file smapregs.h.
| #define SMAP_R_TXFIFO_SIZE 0xf08 |
Definition at line 56 of file smapregs.h.
| #define SMAP_R_TXFIFO_FRAME_CNT 0xf0C |
Definition at line 57 of file smapregs.h.
| #define SMAP_R_TXFIFO_FRAME_INC 0xf10 |
Definition at line 58 of file smapregs.h.
| #define SMAP_R_TXFIFO_DATA 0x1000 |
Definition at line 59 of file smapregs.h.
| #define SMAP_R_RXFIFO_CTRL 0xf30 |
Definition at line 61 of file smapregs.h.
| #define SMAP_RXFIFO_RESET (1 << 0) |
Definition at line 62 of file smapregs.h.
| #define SMAP_RXFIFO_DMAEN (1 << 1) |
Definition at line 63 of file smapregs.h.
| #define SMAP_R_RXFIFO_RD_PTR 0xf34 |
Definition at line 64 of file smapregs.h.
| #define SMAP_R_RXFIFO_SIZE 0xf38 |
Definition at line 65 of file smapregs.h.
| #define SMAP_R_RXFIFO_FRAME_CNT 0xf3C |
Definition at line 66 of file smapregs.h.
| #define SMAP_R_RXFIFO_FRAME_DEC 0xf40 |
Definition at line 67 of file smapregs.h.
| #define SMAP_R_RXFIFO_DATA 0x1100 |
Definition at line 68 of file smapregs.h.
| #define SMAP_R_FIFO_ADDR 0x1200 |
Definition at line 70 of file smapregs.h.
| #define SMAP_FIFO_CMD_READ (1 << 1) |
Definition at line 71 of file smapregs.h.
| #define SMAP_FIFO_DATA_SWAP (1 << 0) |
Definition at line 72 of file smapregs.h.
| #define SMAP_R_FIFO_DATA 0x1208 |
Definition at line 73 of file smapregs.h.
| #define SMAP_EMAC3_REGBASE 0x1f00 |
Definition at line 77 of file smapregs.h.
| #define USE_SMAP_EMAC3_REGS |
Definition at line 81 of file smapregs.h.
| #define SMAP_EMAC3_REG | ( | offset | ) |
Definition at line 84 of file smapregs.h.
| #define SMAP_EMAC3_REG32 | ( | offset | ) |
Definition at line 85 of file smapregs.h.
| #define SMAP_EMAC3_GET | ( | offset | ) |
Definition at line 87 of file smapregs.h.
| #define SMAP_EMAC3_GET32 | ( | offset | ) |
Definition at line 90 of file smapregs.h.
| #define SMAP_EMAC3_WRITE32 | ( | offset, | |
| val ) |
Definition at line 93 of file smapregs.h.
| #define SMAP_EMAC3_WRITE | ( | offset, | |
| val ) |
Definition at line 96 of file smapregs.h.
| #define SMAP_EMAC3_SET | ( | offset, | |
| val ) |
Definition at line 100 of file smapregs.h.
| #define SMAP_EMAC3_SET32 | ( | offset, | |
| val ) |
Definition at line 104 of file smapregs.h.
| #define SMAP_R_EMAC3_MODE0 0x00 |
Definition at line 108 of file smapregs.h.
| #define SMAP_E3_RXMAC_IDLE (1 << 31) |
Definition at line 109 of file smapregs.h.
| #define SMAP_E3_TXMAC_IDLE (1 << 30) |
Definition at line 110 of file smapregs.h.
| #define SMAP_E3_SOFT_RESET (1 << 29) |
Definition at line 111 of file smapregs.h.
| #define SMAP_E3_TXMAC_ENABLE (1 << 28) |
Definition at line 112 of file smapregs.h.
| #define SMAP_E3_RXMAC_ENABLE (1 << 27) |
Definition at line 113 of file smapregs.h.
| #define SMAP_E3_WAKEUP_ENABLE (1 << 26) |
Definition at line 114 of file smapregs.h.
| #define SMAP_R_EMAC3_MODE1 0x04 |
Definition at line 116 of file smapregs.h.
| #define SMAP_E3_FDX_ENABLE (1 << 31) |
Definition at line 117 of file smapregs.h.
| #define SMAP_E3_INLPBK_ENABLE (1 << 30) |
internal loop back
Definition at line 119 of file smapregs.h.
| #define SMAP_E3_VLAN_ENABLE (1 << 29) |
Definition at line 120 of file smapregs.h.
| #define SMAP_E3_FLOWCTRL_ENABLE (1 << 28) |
integrated flow ctrl(pause frame)
Definition at line 122 of file smapregs.h.
| #define SMAP_E3_ALLOW_PF (1 << 27) |
allow pause frame
Definition at line 124 of file smapregs.h.
| #define SMAP_E3_ALLOW_EXTMNGIF (1 << 25) |
allow external management IF
Definition at line 126 of file smapregs.h.
| #define SMAP_E3_IGNORE_SQE (1 << 24) |
Definition at line 127 of file smapregs.h.
| #define SMAP_E3_MEDIA_FREQ_BITSFT (22) |
Definition at line 128 of file smapregs.h.
| #define SMAP_E3_MEDIA_10M (0 << 22) |
Definition at line 129 of file smapregs.h.
| #define SMAP_E3_MEDIA_100M (1 << 22) |
Definition at line 130 of file smapregs.h.
| #define SMAP_E3_MEDIA_1000M (2 << 22) |
Definition at line 131 of file smapregs.h.
| #define SMAP_E3_MEDIA_MSK (3 << 22) |
Definition at line 132 of file smapregs.h.
| #define SMAP_E3_RXFIFO_SIZE_BITSFT (20) |
Definition at line 133 of file smapregs.h.
| #define SMAP_E3_RXFIFO_512 (0 << 20) |
Definition at line 134 of file smapregs.h.
| #define SMAP_E3_RXFIFO_1K (1 << 20) |
Definition at line 135 of file smapregs.h.
| #define SMAP_E3_RXFIFO_2K (2 << 20) |
Definition at line 136 of file smapregs.h.
| #define SMAP_E3_RXFIFO_4K (3 << 20) |
Definition at line 137 of file smapregs.h.
| #define SMAP_E3_TXFIFO_SIZE_BITSFT (18) |
Definition at line 138 of file smapregs.h.
| #define SMAP_E3_TXFIFO_512 (0 << 18) |
Definition at line 139 of file smapregs.h.
| #define SMAP_E3_TXFIFO_1K (1 << 18) |
Definition at line 140 of file smapregs.h.
| #define SMAP_E3_TXFIFO_2K (2 << 18) |
Definition at line 141 of file smapregs.h.
| #define SMAP_E3_TXREQ0_BITSFT (15) |
Definition at line 142 of file smapregs.h.
| #define SMAP_E3_TXREQ0_SINGLE (0 << 15) |
Definition at line 143 of file smapregs.h.
| #define SMAP_E3_TXREQ0_MULTI (1 << 15) |
Definition at line 144 of file smapregs.h.
| #define SMAP_E3_TXREQ0_DEPEND (2 << 15) |
Definition at line 145 of file smapregs.h.
| #define SMAP_E3_TXREQ1_BITSFT (13) |
Definition at line 146 of file smapregs.h.
| #define SMAP_E3_TXREQ1_SINGLE (0 << 13) |
Definition at line 147 of file smapregs.h.
| #define SMAP_E3_TXREQ1_MULTI (1 << 13) |
Definition at line 148 of file smapregs.h.
| #define SMAP_E3_TXREQ1_DEPEND (2 << 13) |
Definition at line 149 of file smapregs.h.
| #define SMAP_E3_JUMBO_ENABLE (1 << 12) |
Definition at line 150 of file smapregs.h.
| #define SMAP_R_EMAC3_TxMODE0 0x08 |
Definition at line 152 of file smapregs.h.
| #define SMAP_E3_TX_GNP_0 (1 << 31) |
get new packet
Definition at line 154 of file smapregs.h.
| #define SMAP_E3_TX_GNP_1 (1 << 30) |
get new packet
Definition at line 156 of file smapregs.h.
| #define SMAP_E3_TX_GNP_DEPEND (1 << 29) |
get new packet
Definition at line 158 of file smapregs.h.
| #define SMAP_E3_TX_FIRST_CHANNEL (1 << 28) |
Definition at line 159 of file smapregs.h.
| #define SMAP_R_EMAC3_TxMODE1 0x0C |
Definition at line 161 of file smapregs.h.
| #define SMAP_E3_TX_LOW_REQ_MSK (0x1F) |
low priority request
Definition at line 163 of file smapregs.h.
| #define SMAP_E3_TX_LOW_REQ_BITSFT (27) |
low priority request
Definition at line 165 of file smapregs.h.
| #define SMAP_E3_TX_URG_REQ_MSK (0xFF) |
urgent priority request
Definition at line 167 of file smapregs.h.
| #define SMAP_E3_TX_URG_REQ_BITSFT (16) |
urgent priority request
Definition at line 169 of file smapregs.h.
| #define SMAP_R_EMAC3_RxMODE 0x10 |
Definition at line 171 of file smapregs.h.
| #define SMAP_E3_RX_STRIP_PAD (1 << 31) |
Definition at line 172 of file smapregs.h.
| #define SMAP_E3_RX_STRIP_FCS (1 << 30) |
Definition at line 173 of file smapregs.h.
| #define SMAP_E3_RX_RX_RUNT_FRAME (1 << 29) |
Definition at line 174 of file smapregs.h.
| #define SMAP_E3_RX_RX_FCS_ERR (1 << 28) |
Definition at line 175 of file smapregs.h.
| #define SMAP_E3_RX_RX_TOO_LONG_ERR (1 << 27) |
Definition at line 176 of file smapregs.h.
| #define SMAP_E3_RX_RX_IN_RANGE_ERR (1 << 26) |
Definition at line 177 of file smapregs.h.
| #define SMAP_E3_RX_PROP_PF (1 << 25) |
propagate pause frame
Definition at line 179 of file smapregs.h.
| #define SMAP_E3_RX_PROMISC (1 << 24) |
Definition at line 180 of file smapregs.h.
| #define SMAP_E3_RX_PROMISC_MCAST (1 << 23) |
Definition at line 181 of file smapregs.h.
| #define SMAP_E3_RX_INDIVID_ADDR (1 << 22) |
Definition at line 182 of file smapregs.h.
| #define SMAP_E3_RX_INDIVID_HASH (1 << 21) |
Definition at line 183 of file smapregs.h.
| #define SMAP_E3_RX_BCAST (1 << 20) |
Definition at line 184 of file smapregs.h.
| #define SMAP_E3_RX_MCAST (1 << 19) |
Definition at line 185 of file smapregs.h.
| #define SMAP_R_EMAC3_INTR_STAT 0x14 |
Definition at line 187 of file smapregs.h.
| #define SMAP_R_EMAC3_INTR_ENABLE 0x18 |
Definition at line 188 of file smapregs.h.
| #define SMAP_E3_INTR_OVERRUN (1 << 25) |
this bit does NOT WORK
Definition at line 190 of file smapregs.h.
| #define SMAP_E3_INTR_PF (1 << 24) |
Definition at line 191 of file smapregs.h.
| #define SMAP_E3_INTR_BAD_FRAME (1 << 23) |
Definition at line 192 of file smapregs.h.
| #define SMAP_E3_INTR_RUNT_FRAME (1 << 22) |
Definition at line 193 of file smapregs.h.
| #define SMAP_E3_INTR_SHORT_EVENT (1 << 21) |
Definition at line 194 of file smapregs.h.
| #define SMAP_E3_INTR_ALIGN_ERR (1 << 20) |
Definition at line 195 of file smapregs.h.
| #define SMAP_E3_INTR_BAD_FCS (1 << 19) |
Definition at line 196 of file smapregs.h.
| #define SMAP_E3_INTR_TOO_LONG (1 << 18) |
Definition at line 197 of file smapregs.h.
| #define SMAP_E3_INTR_OUT_RANGE_ERR (1 << 17) |
Definition at line 198 of file smapregs.h.
| #define SMAP_E3_INTR_IN_RANGE_ERR (1 << 16) |
Definition at line 199 of file smapregs.h.
| #define SMAP_E3_INTR_DEAD_DEPEND (1 << 9) |
Definition at line 200 of file smapregs.h.
| #define SMAP_E3_INTR_DEAD_0 (1 << 8) |
Definition at line 201 of file smapregs.h.
| #define SMAP_E3_INTR_SQE_ERR_0 (1 << 7) |
Definition at line 202 of file smapregs.h.
| #define SMAP_E3_INTR_TX_ERR_0 (1 << 6) |
Definition at line 203 of file smapregs.h.
| #define SMAP_E3_INTR_DEAD_1 (1 << 5) |
Definition at line 204 of file smapregs.h.
| #define SMAP_E3_INTR_SQE_ERR_1 (1 << 4) |
Definition at line 205 of file smapregs.h.
| #define SMAP_E3_INTR_TX_ERR_1 (1 << 3) |
Definition at line 206 of file smapregs.h.
| #define SMAP_E3_INTR_MMAOP_SUCCESS (1 << 1) |
Definition at line 207 of file smapregs.h.
| #define SMAP_E3_INTR_MMAOP_FAIL (1 << 0) |
Definition at line 208 of file smapregs.h.
| #define SMAP_E3_INTR_ALL |
Definition at line 209 of file smapregs.h.
| #define SMAP_E3_DEAD_ALL |
Definition at line 220 of file smapregs.h.
| #define SMAP_R_EMAC3_ADDR_HI 0x1C |
Definition at line 224 of file smapregs.h.
| #define SMAP_R_EMAC3_ADDR_LO 0x20 |
Definition at line 225 of file smapregs.h.
| #define SMAP_R_EMAC3_VLAN_TPID 0x24 |
Definition at line 227 of file smapregs.h.
| #define SMAP_E3_VLAN_ID_MSK 0xFFFF |
Definition at line 228 of file smapregs.h.
| #define SMAP_R_EMAC3_VLAN_TCI 0x28 |
Definition at line 230 of file smapregs.h.
| #define SMAP_E3_VLAN_TCITAG_MSK 0xFFFF |
Definition at line 231 of file smapregs.h.
| #define SMAP_R_EMAC3_PAUSE_TIMER 0x2C |
Definition at line 233 of file smapregs.h.
| #define SMAP_E3_PTIMER_MSK 0xFFFF |
Definition at line 234 of file smapregs.h.
| #define SMAP_R_EMAC3_INDIVID_HASH1 0x30 |
Definition at line 236 of file smapregs.h.
| #define SMAP_R_EMAC3_INDIVID_HASH2 0x34 |
Definition at line 237 of file smapregs.h.
| #define SMAP_R_EMAC3_INDIVID_HASH3 0x38 |
Definition at line 238 of file smapregs.h.
| #define SMAP_R_EMAC3_INDIVID_HASH4 0x3C |
Definition at line 239 of file smapregs.h.
| #define SMAP_R_EMAC3_GROUP_HASH1 0x40 |
Definition at line 240 of file smapregs.h.
| #define SMAP_R_EMAC3_GROUP_HASH2 0x44 |
Definition at line 241 of file smapregs.h.
| #define SMAP_R_EMAC3_GROUP_HASH3 0x48 |
Definition at line 242 of file smapregs.h.
| #define SMAP_R_EMAC3_GROUP_HASH4 0x4C |
Definition at line 243 of file smapregs.h.
| #define SMAP_E3_HASH_MSK 0xFFFF |
Definition at line 244 of file smapregs.h.
| #define SMAP_R_EMAC3_LAST_SA_HI 0x50 |
Definition at line 246 of file smapregs.h.
| #define SMAP_R_EMAC3_LAST_SA_LO 0x54 |
Definition at line 247 of file smapregs.h.
| #define SMAP_R_EMAC3_INTER_FRAME_GAP 0x58 |
Definition at line 249 of file smapregs.h.
| #define SMAP_E3_IFGAP_MSK 0x3F |
Definition at line 250 of file smapregs.h.
| #define SMAP_R_EMAC3_STA_CTRL 0x5C |
Definition at line 252 of file smapregs.h.
| #define SMAP_E3_PHY_DATA_MSK (0xFFFF) |
Definition at line 253 of file smapregs.h.
| #define SMAP_E3_PHY_DATA_BITSFT (16) |
Definition at line 254 of file smapregs.h.
| #define SMAP_E3_PHY_OP_COMP (1 << 15) |
operation complete
Definition at line 256 of file smapregs.h.
| #define SMAP_E3_PHY_ERR_READ (1 << 14) |
Definition at line 257 of file smapregs.h.
| #define SMAP_E3_PHY_STA_CMD_BITSFT (12) |
Definition at line 258 of file smapregs.h.
| #define SMAP_E3_PHY_READ (1 << 12) |
Definition at line 259 of file smapregs.h.
| #define SMAP_E3_PHY_WRITE (2 << 12) |
Definition at line 260 of file smapregs.h.
| #define SMAP_E3_PHY_OPBCLCK_BITSFT (10) |
Definition at line 261 of file smapregs.h.
| #define SMAP_E3_PHY_50M (0 << 10) |
Definition at line 262 of file smapregs.h.
| #define SMAP_E3_PHY_66M (1 << 10) |
Definition at line 263 of file smapregs.h.
| #define SMAP_E3_PHY_83M (2 << 10) |
Definition at line 264 of file smapregs.h.
| #define SMAP_E3_PHY_100M (3 << 10) |
Definition at line 265 of file smapregs.h.
| #define SMAP_E3_PHY_ADDR_MSK (0x1F) |
Definition at line 266 of file smapregs.h.
| #define SMAP_E3_PHY_ADDR_BITSFT (5) |
Definition at line 267 of file smapregs.h.
| #define SMAP_E3_PHY_REG_ADDR_MSK (0x1F) |
Definition at line 268 of file smapregs.h.
| #define SMAP_R_EMAC3_TX_THRESHOLD 0x60 |
Definition at line 270 of file smapregs.h.
| #define SMAP_E3_TX_THRESHLD_MSK (0x1F) |
Definition at line 271 of file smapregs.h.
| #define SMAP_E3_TX_THRESHLD_BITSFT (27) |
Definition at line 272 of file smapregs.h.
| #define SMAP_R_EMAC3_RX_WATERMARK 0x64 |
Definition at line 274 of file smapregs.h.
| #define SMAP_E3_RX_LO_WATER_MSK (0x1FF) |
Definition at line 275 of file smapregs.h.
| #define SMAP_E3_RX_LO_WATER_BITSFT (23) |
Definition at line 276 of file smapregs.h.
| #define SMAP_E3_RX_HI_WATER_MSK (0x1FF) |
Definition at line 277 of file smapregs.h.
| #define SMAP_E3_RX_HI_WATER_BITSFT (7) |
Definition at line 278 of file smapregs.h.
| #define SMAP_R_EMAC3_TX_OCTETS 0x68 |
Definition at line 280 of file smapregs.h.
| #define SMAP_R_EMAC3_RX_OCTETS 0x6C |
Definition at line 281 of file smapregs.h.
| #define SMAP_BD_REGBASE 0x2f00 |
Definition at line 294 of file smapregs.h.
| #define SMAP_BD_TX_BASE (SMAP_BD_REGBASE + 0x0000) |
Definition at line 295 of file smapregs.h.
| #define SMAP_TX_BASE SMAP_TX_BUFBASE |
Definition at line 297 of file smapregs.h.
| #define SMAP_TX_BUFBASE 0x1000 |
Definition at line 298 of file smapregs.h.
| #define SMAP_TX_BUFSIZE 4096 |
Definition at line 299 of file smapregs.h.
| #define SMAP_BD_RX_BASE (SMAP_BD_REGBASE + 0x0200) |
Definition at line 300 of file smapregs.h.
| #define SMAP_RX_BUFBASE 0x4000 |
Definition at line 301 of file smapregs.h.
| #define SMAP_RX_BUFSIZE 16384 |
Definition at line 302 of file smapregs.h.
| #define SMAP_BD_SIZE 512 |
Definition at line 303 of file smapregs.h.
| #define SMAP_BD_MAX_ENTRY 64 |
Definition at line 304 of file smapregs.h.
| #define USE_SMAP_TX_BD |
Definition at line 306 of file smapregs.h.
| #define USE_SMAP_RX_BD |
Definition at line 308 of file smapregs.h.
| #define SMAP_BD_TX_READY (1 << 15) |
set:driver, clear:HW
Definition at line 313 of file smapregs.h.
| #define SMAP_BD_TX_GENFCS (1 << 9) |
generate FCS
Definition at line 315 of file smapregs.h.
| #define SMAP_BD_TX_GENPAD (1 << 8) |
generate padding
Definition at line 317 of file smapregs.h.
| #define SMAP_BD_TX_INSSA (1 << 7) |
insert source address
Definition at line 319 of file smapregs.h.
| #define SMAP_BD_TX_RPLSA (1 << 6) |
replace source address
Definition at line 321 of file smapregs.h.
| #define SMAP_BD_TX_INSVLAN (1 << 5) |
insert VLAN Tag
Definition at line 323 of file smapregs.h.
| #define SMAP_BD_TX_RPLVLAN (1 << 4) |
replace VLAN Tag
Definition at line 325 of file smapregs.h.
| #define SMAP_BD_TX_READY (1 << 15) |
set:driver, clear:HW
Definition at line 313 of file smapregs.h.
| #define SMAP_BD_TX_BADFCS (1 << 9) |
bad FCS
Definition at line 331 of file smapregs.h.
| #define SMAP_BD_TX_BADPKT (1 << 8) |
bad previous pkt in dependent mode
Definition at line 333 of file smapregs.h.
| #define SMAP_BD_TX_LOSSCR (1 << 7) |
loss of carrior sense
Definition at line 335 of file smapregs.h.
| #define SMAP_BD_TX_EDEFER (1 << 6) |
excessive deferal
Definition at line 337 of file smapregs.h.
| #define SMAP_BD_TX_ECOLL (1 << 5) |
excessive collision
Definition at line 339 of file smapregs.h.
| #define SMAP_BD_TX_LCOLL (1 << 4) |
late collision
Definition at line 341 of file smapregs.h.
| #define SMAP_BD_TX_MCOLL (1 << 3) |
multiple collision
Definition at line 343 of file smapregs.h.
| #define SMAP_BD_TX_SCOLL (1 << 2) |
single collision
Definition at line 345 of file smapregs.h.
| #define SMAP_BD_TX_UNDERRUN (1 << 1) |
underrun
Definition at line 347 of file smapregs.h.
| #define SMAP_BD_TX_SQE (1 << 0) |
SQE
Definition at line 349 of file smapregs.h.
| #define SMAP_BD_TX_ERROR |
Definition at line 351 of file smapregs.h.
| #define SMAP_BD_RX_EMPTY (1 << 15) |
set:driver, clear:HW
Definition at line 356 of file smapregs.h.
| #define SMAP_BD_RX_EMPTY (1 << 15) |
set:driver, clear:HW
Definition at line 356 of file smapregs.h.
| #define SMAP_BD_RX_OVERRUN (1 << 9) |
overrun
Definition at line 362 of file smapregs.h.
| #define SMAP_BD_RX_PFRM (1 << 8) |
pause frame
Definition at line 364 of file smapregs.h.
| #define SMAP_BD_RX_BADFRM (1 << 7) |
bad frame
Definition at line 366 of file smapregs.h.
| #define SMAP_BD_RX_RUNTFRM (1 << 6) |
runt frame
Definition at line 368 of file smapregs.h.
| #define SMAP_BD_RX_SHORTEVNT (1 << 5) |
short event
Definition at line 370 of file smapregs.h.
| #define SMAP_BD_RX_ALIGNERR (1 << 4) |
alignment error
Definition at line 372 of file smapregs.h.
| #define SMAP_BD_RX_BADFCS (1 << 3) |
bad FCS
Definition at line 374 of file smapregs.h.
| #define SMAP_BD_RX_FRMTOOLONG (1 << 2) |
frame too long
Definition at line 376 of file smapregs.h.
| #define SMAP_BD_RX_OUTRANGE (1 << 1) |
out of range error
Definition at line 378 of file smapregs.h.
| #define SMAP_BD_RX_INRANGE (1 << 0) |
in range error
Definition at line 380 of file smapregs.h.
| #define SMAP_BD_RX_ERROR |
Definition at line 382 of file smapregs.h.
| #define SMAP_NS_OUI 0x080017 |
Definition at line 388 of file smapregs.h.
| #define SMAP_DsPHYTER_ADDRESS 0x1 |
Definition at line 389 of file smapregs.h.
| #define SMAP_DsPHYTER_BMCR 0x00 |
Definition at line 391 of file smapregs.h.
| #define SMAP_PHY_BMCR_RST (1 << 15) |
Definition at line 393 of file smapregs.h.
| #define SMAP_PHY_BMCR_LPBK (1 << 14) |
Definition at line 395 of file smapregs.h.
| #define SMAP_PHY_BMCR_100M (1 << 13) |
Definition at line 397 of file smapregs.h.
| #define SMAP_PHY_BMCR_10M (0 << 13) |
Definition at line 399 of file smapregs.h.
| #define SMAP_PHY_BMCR_ANEN (1 << 12) |
Definition at line 401 of file smapregs.h.
| #define SMAP_PHY_BMCR_PWDN (1 << 11) |
Definition at line 403 of file smapregs.h.
| #define SMAP_PHY_BMCR_ISOL (1 << 10) |
Definition at line 405 of file smapregs.h.
| #define SMAP_PHY_BMCR_RSAN (1 << 9) |
Definition at line 407 of file smapregs.h.
| #define SMAP_PHY_BMCR_DUPM (1 << 8) |
Definition at line 409 of file smapregs.h.
| #define SMAP_PHY_BMCR_COLT (1 << 7) |
Definition at line 411 of file smapregs.h.
| #define SMAP_DsPHYTER_BMSR 0x01 |
Definition at line 413 of file smapregs.h.
| #define SMAP_PHY_BMSR_ANCP (1 << 5) |
Auto-Negotiation ComPlete
Definition at line 415 of file smapregs.h.
| #define SMAP_PHY_BMSR_LINK (1 << 2) |
LINK status
Definition at line 417 of file smapregs.h.
| #define SMAP_DsPHYTER_PHYIDR1 0x02 |
Definition at line 419 of file smapregs.h.
| #define SMAP_PHY_IDR1_VAL (((SMAP_NS_OUI << 2) >> 8) & 0xffff) |
Definition at line 420 of file smapregs.h.
| #define SMAP_DsPHYTER_PHYIDR2 0x03 |
Definition at line 422 of file smapregs.h.
| #define SMAP_PHY_IDR2_VMDL 0x2 /* Vendor MoDeL number */ |
Definition at line 423 of file smapregs.h.
| #define SMAP_PHY_IDR2_VAL (((SMAP_NS_OUI << 10) & 0xFC00) | ((SMAP_PHY_IDR2_VMDL << 4) & 0x3F0)) |
Definition at line 424 of file smapregs.h.
| #define SMAP_PHY_IDR2_MSK 0xFFF0 |
Definition at line 426 of file smapregs.h.
| #define SMAP_PHY_IDR2_REV_MSK 0x000F |
Definition at line 427 of file smapregs.h.
| #define SMAP_DsPHYTER_ANAR 0x04 |
Definition at line 429 of file smapregs.h.
| #define SMAP_PHY_ANAR_RFLT (1 << 13) |
Remote FauLT
Definition at line 431 of file smapregs.h.
| #define SMAP_PHY_ANAR_PAUSE (1 << 10) |
Pause
Definition at line 433 of file smapregs.h.
| #define SMAP_PHY_ANAR_T4 (1 << 9) |
100BASE-T4 Support
Definition at line 435 of file smapregs.h.
| #define SMAP_PHY_ANAR_TX_FD (1 << 8) |
100BASE-TX Full Duplex Support
Definition at line 437 of file smapregs.h.
| #define SMAP_PHY_ANAR_TX (1 << 7) |
100BASE-TX Support
Definition at line 439 of file smapregs.h.
| #define SMAP_PHY_ANAR_10_FD (1 << 6) |
10BASE-T Full Duplex Support
Definition at line 441 of file smapregs.h.
| #define SMAP_PHY_ANAR_10 (1 << 5) |
10BASE-T Support
Definition at line 443 of file smapregs.h.
| #define SMAP_DsPHYTER_ANLPAR 0x05 |
Definition at line 444 of file smapregs.h.
| #define SMAP_DsPHYTER_ANLPARNP 0x05 |
Definition at line 445 of file smapregs.h.
| #define SMAP_DsPHYTER_ANER 0x06 |
Definition at line 446 of file smapregs.h.
| #define SMAP_DsPHYTER_ANNPTR 0x07 |
Definition at line 447 of file smapregs.h.
| #define SMAP_DsPHYTER_PHYSTS 0x10 |
Definition at line 450 of file smapregs.h.
| #define SMAP_PHY_STS_REL (1 << 13) |
Receive Error Latch
Definition at line 452 of file smapregs.h.
| #define SMAP_PHY_STS_POST (1 << 12) |
POlarity STatus
Definition at line 454 of file smapregs.h.
| #define SMAP_PHY_STS_FCSL (1 << 11) |
False Carrier Sense Latch
Definition at line 456 of file smapregs.h.
| #define SMAP_PHY_STS_SD (1 << 10) |
100BT unconditional Signal Detect
Definition at line 458 of file smapregs.h.
| #define SMAP_PHY_STS_DSL (1 << 9) |
100BT DeScrambler Lock
Definition at line 460 of file smapregs.h.
| #define SMAP_PHY_STS_PRCV (1 << 8) |
Page ReCeiVed
Definition at line 462 of file smapregs.h.
| #define SMAP_PHY_STS_RFLT (1 << 6) |
Remote FauLT
Definition at line 464 of file smapregs.h.
| #define SMAP_PHY_STS_JBDT (1 << 5) |
JaBber DetecT
Definition at line 466 of file smapregs.h.
| #define SMAP_PHY_STS_ANCP (1 << 4) |
Auto-Negotiation ComPlete
Definition at line 468 of file smapregs.h.
| #define SMAP_PHY_STS_LPBK (1 << 3) |
LooPBacK status
Definition at line 470 of file smapregs.h.
| #define SMAP_PHY_STS_DUPS (1 << 2) |
DUPlex Status,1:FDX,0:HDX
Definition at line 472 of file smapregs.h.
| #define SMAP_PHY_STS_FDX (1 << 2) |
Full Duplex
Definition at line 474 of file smapregs.h.
| #define SMAP_PHY_STS_HDX (0 << 2) |
Half Duplex
Definition at line 476 of file smapregs.h.
| #define SMAP_PHY_STS_SPDS (1 << 1) |
SPeeD Status
Definition at line 478 of file smapregs.h.
| #define SMAP_PHY_STS_10M (1 << 1) |
10Mbps
Definition at line 480 of file smapregs.h.
| #define SMAP_PHY_STS_100M (0 << 1) |
100Mbps
Definition at line 482 of file smapregs.h.
| #define SMAP_PHY_STS_LINK (1 << 0) |
LINK status
Definition at line 484 of file smapregs.h.
| #define SMAP_DsPHYTER_FCSCR 0x14 |
Definition at line 485 of file smapregs.h.
| #define SMAP_DsPHYTER_RECR 0x15 |
Definition at line 486 of file smapregs.h.
| #define SMAP_DsPHYTER_PCSR 0x16 |
Definition at line 487 of file smapregs.h.
| #define SMAP_DsPHYTER_PHYCTRL 0x19 |
Definition at line 488 of file smapregs.h.
| #define SMAP_DsPHYTER_10BTSCR 0x1A |
Definition at line 489 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_LOOPBACK_10_DIS (1 << 8) |
10BASE-T Loopback Disable
Definition at line 491 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_LP_DIS (1 << 7) |
Normal Link Pulse Disable
Definition at line 493 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_FORCE_10_LINK (1 << 6) |
Force 10Mb Good Link
Definition at line 495 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_FORCE_POL_COR (1 << 5) |
Force 10Mb Polarity Correction
Definition at line 497 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_POLARITY (1 << 4) |
10Mb Polarity Status
Definition at line 499 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_AUTOPOL_DIS (1 << 3) |
Auto Polarity Detection & Correction Disable
Definition at line 501 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_2 (1 << 2) |
RESERVED - Must be set to 1
Definition at line 503 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_HEARTBEAT_DIS (1 << 1) |
Heartbeat Disable
Definition at line 505 of file smapregs.h.
| #define SMAP_PHY_10BTSCR_JABBER_DIS (1 << 0) |
Jabber Disable
Definition at line 507 of file smapregs.h.
| #define SMAP_DsPHYTER_CDCTRL 0x1B |
Definition at line 508 of file smapregs.h.