20 #ifndef LIBCPU_POWERPC_TSEC_H 21 #define LIBCPU_POWERPC_TSEC_H 26 #include <bsp/tsec-config.h> 90 uint8_t reserved0x2_4000[0x24010-0x24000];
94 uint8_t reserved0x2_401c[0x24020-0x2401c];
100 uint8_t reserved0x2_4034[0x2408c-0x24034];
102 uint32_t fifo_tx_thr;
103 uint8_t reserved0x2_4090[0x24094-0x24090];
105 uint32_t fifo_tx_starve;
106 uint32_t fifo_tx_starve_shutoff;
107 uint8_t reserved0x2_40A0[0x24100-0x240A0];
111 uint8_t reserved0x2_4108[0x24110-0x24108];
113 uint8_t reserved0x2_4114[0x24124-0x24114];
115 uint8_t reserved0x2_4128[0x24184-0x24128];
117 uint8_t reserved0x2_4188[0x24204-0x24188];
119 uint8_t reserved0x2_4208[0x242B0-0x24208];
122 uint8_t reserved0x2_42B8[0x24300-0x242B8];
126 uint8_t reserved0x2_4308[0x2430C-0x24308];
129 uint8_t reserved0x2_4314[0x24324-0x24314];
131 uint8_t reserved0x2_4328[0x24340-0x24328];
133 uint8_t reserved0x2_4344[0x24384-0x24344];
135 uint8_t reserved0x2_4388[0x24404-0x24388];
137 uint8_t reserved0x2_4408[0x24500-0x24408];
144 uint8_t reserved0x2_4514[0x24520-0x24514];
151 uint8_t reserved0x2_4538[0x2453c-0x24538];
153 uint32_t macstnaddr[2];
154 uint8_t reserved0x2_4548[0x24680-0x24548];
157 uint32_t rmon_mib[TSEC_RMON_CNT];
162 uint8_t reserved0x2_4740[0x24800-0x24740];
166 uint8_t reserved0x2_4820[0x24880-0x24820];
168 uint8_t reserved0x2_48A0[0x24B00-0x248A0];
171 uint8_t reserved0x2_4B00[0x24BF8-0x24B00];
174 uint8_t reserved0x2_4C00[0x25000-0x24C00];
180 #define TSEC_IEVENT_BABR (1<<(31- 0)) 181 #define TSEC_IEVENT_RXC (1<<(31- 1)) 182 #define TSEC_IEVENT_BSY (1<<(31- 2)) 183 #define TSEC_IEVENT_EBERR (1<<(31- 3)) 184 #define TSEC_IEVENT_MSRO (1<<(31- 5)) 185 #define TSEC_IEVENT_GTSC (1<<(31- 6)) 186 #define TSEC_IEVENT_BABT (1<<(31- 7)) 187 #define TSEC_IEVENT_TXC (1<<(31- 8)) 188 #define TSEC_IEVENT_TXE (1<<(31- 9)) 189 #define TSEC_IEVENT_TXB (1<<(31-10)) 190 #define TSEC_IEVENT_TXF (1<<(31-11)) 191 #define TSEC_IEVENT_LC (1<<(31-13)) 192 #define TSEC_IEVENT_CRL_XDA (1<<(31-14)) 193 #define TSEC_IEVENT_XFUN (1<<(31-15)) 194 #define TSEC_IEVENT_RXB (1<<(31-16)) 195 #define TSEC_IEVENT_MMRD (1<<(31-21)) 196 #define TSEC_IEVENT_MMWR (1<<(31-22)) 197 #define TSEC_IEVENT_GRSC (1<<(31-23)) 198 #define TSEC_IEVENT_RXF (1<<(31-24)) 203 #define TSEC_DMACTL_TDSEN (1<<(31-24)) 204 #define TSEC_DMACTL_TBDSEN (1<<(31-25)) 205 #define TSEC_DMACTL_GRS (1<<(31-27)) 206 #define TSEC_DMACTL_GTS (1<<(31-28)) 207 #define TSEC_DMACTL_WWR (1<<(31-30)) 208 #define TSEC_DMACTL_WOP (1<<(31-31)) 213 #define TSEC_TSTAT_THLT (1<<(31-0)) 218 #define TSEC_RSTAT_QHLT (1<<(31-8)) 222 #define TSEC_ECNTRL_CLRCNT (1 << (31-17)) 223 #define TSEC_ECNTRL_AUTOZ (1 << (31-18)) 224 #define TSEC_ECNTRL_STEN (1 << (31-19)) 225 #define TSEC_ECNTRL_TBIM (1 << (31-26)) 226 #define TSEC_ECNTRL_RPM (1 << (31-27)) 227 #define TSEC_ECNTRL_R100M (1 << (31-28)) 231 #define TSEC_EDIS_BSYDIS (1 << (31- 2)) 232 #define TSEC_EDIS_EBERRDIS (1 << (31- 3)) 233 #define TSEC_EDIS_TXEDIS (1 << (31- 9)) 234 #define TSEC_EDIS_LCDIS (1 << (31-13)) 235 #define TSEC_EDIS_CRLXDADIS (1 << (31-14)) 236 #define TSEC_EDIS_FUNDIS (1 << (31-15)) 241 #define TSEC_RCTRL_BC_REJ (1 << (31-27)) 242 #define TSEC_RCTRL_PROM (1 << (31-28)) 243 #define TSEC_RCTRL_RSF (1 << (31-29)) 248 #define TSEC_TXIC_ICEN (1 << (31- 0)) 249 #define TSEC_TXIC_ICFCT(n) (((n)&0xff) << (31-10)) 250 #define TSEC_TXIC_ICTT(n) (((n)&0xffff) << (31-31)) 255 #define TSEC_RXIC_ICEN (1 << (31- 0)) 256 #define TSEC_RXIC_ICFCT(n) (((n)&0xff) << (31-10)) 257 #define TSEC_RXIC_ICTT(n) (((n)&0xffff) << (31-31)) 262 #define TSEC_MACCFG1_SOFTRST (1 << (31- 0)) 263 #define TSEC_MACCFG1_RES_RXMC (1 << (31-12)) 264 #define TSEC_MACCFG1_RES_TXMC (1 << (31-13)) 265 #define TSEC_MACCFG1_RES_RXFUN (1 << (31-14)) 266 #define TSEC_MACCFG1_RES_TXFUN (1 << (31-15)) 267 #define TSEC_MACCFG1_LOOPBACK (1 << (31-23)) 268 #define TSEC_MACCFG1_RX_FLOW (1 << (31-26)) 269 #define TSEC_MACCFG1_TX_FLOW (1 << (31-27)) 270 #define TSEC_MACCFG1_SYNVRXEN (1 << (31-28)) 271 #define TSEC_MACCFG1_RXEN (1 << (31-29)) 272 #define TSEC_MACCFG1_SYNVTXEN (1 << (31-30)) 273 #define TSEC_MACCFG1_TXEN (1 << (31-31)) 278 #define TSEC_MACCFG2_PRELEN(n) (((n)&0x0f) << (31-19)) 280 #define TSEC_MACCFG2_IFMODE_MSK (3 << (31-23)) 281 #define TSEC_MACCFG2_IFMODE_NIB (1 << (31-23)) 282 #define TSEC_MACCFG2_IFMODE_BYT (2 << (31-23)) 284 #define TSEC_MACCFG2_HUGE_FRAME (1 << (31-26)) 285 #define TSEC_MACCFG2_LENGTH_CHK (1 << (31-27)) 286 #define TSEC_MACCFG2_PAD_CRC (1 << (31-29)) 287 #define TSEC_MACCFG2_CRC_EN (1 << (31-30)) 288 #define TSEC_MACCFG2_FULLDUPLEX (1 << (31-31)) 293 #define TSEC_MIIMADD_PHY(n) (((n) & 0x3f)<<(31- 23)) 294 #define TSEC_MIIMADD_REGADDR(n) (((n) & 0x3f)<<(31- 31)) 299 #define TSEC_MIIMCOM_SCAN (1 << (31-30)) 300 #define TSEC_MIIMCOM_READ (1 << (31-31)) 305 #define TSEC_MIIMIND_NVAL (1 << (31-29)) 306 #define TSEC_MIIMIND_SCAN (1 << (31-30)) 307 #define TSEC_MIIMIND_BUSY (1 << (31-31)) 312 #define TSEC_ATTR_RDSEN (1 << (31-24)) 313 #define TSEC_ATTR_RBDSEN (1 << (31-25)) 316 volatile uint16_t status;
317 volatile uint16_t length;
318 volatile void *buffer;
324 #define BD_EMPTY (1<<15) 325 #define BD_RO1 (1<<14) 326 #define BD_WRAP (1<<13) 327 #define BD_INTERRUPT (1<<12) 328 #define BD_LAST (1<<11) 329 #define BD_CONTROL_CHAR (1<<11) 330 #define BD_FIRST_IN_FRAME (1<<10) 331 #define BD_MISS (1<<8) 332 #define BD_BROADCAST (1<<7) 333 #define BD_MULTICAST (1<<6) 334 #define BD_LONG (1<<5) 335 #define BD_NONALIGNED (1<<4) 336 #define BD_SHORT (1<<3) 337 #define BD_CRC_ERROR (1<<2) 338 #define BD_OVERRUN (1<<1) 339 #define BD_COLLISION (1<<0) 345 #define BD_READY (1<<15) 346 #define BD_PAD_CRC (1<<14) 348 #define BD_TX_CRC (1<<10) 349 #define BD_DEFER (1<<9) 350 #define BD_TO1 (1<<8) 351 #define BD_HFE_ (1<<7) 352 #define BD_LATE_COLLISION (1<<7) 353 #define BD_RETRY_LIMIT (1<<6) 354 #define BD_RETRY_COUNT(x) (((x)&0x3C)>>2) 355 #define BD_UNDERRUN (1<<1) 356 #define BD_TXTRUNC (1<<0) 358 struct rtems_bsdnet_ifconfig;
365 rtems_irq_number irq_num_tx;
366 rtems_irq_number irq_num_rx;
367 rtems_irq_number irq_num_err;
371 int tsec_driver_attach_detach(
372 struct rtems_bsdnet_ifconfig *
config,
Definition: deflate.c:115