/* START OF GLOBAL REGISTER ADDRESS MAP */ /* 10bit registers * *Txqueuestartaddressreginglobaladdressmapataddress0x0000 *txqueueendaddressreginglobaladdressmapataddress0x0004 *rxqueuestartaddressreginglobaladdressmapataddress0x0008 *rxqueueendaddressreginglobaladdressmapataddress0x000C
*/
/* structure for power management control status reg in global address map *locatedataddress0x0010 *jagcore_rx_rdybit9 *jagcore_tx_rdybit8 *phy_lped_enbit7 *phy_sw_comabit6 *rxclk_gatebit5 *txclk_gatebit4 *sysclk_gatebit3 *jagcore_rx_enbit2 *jagcore_tx_enbit1 *gigephy_enbit0
*/ #define ET_PM_PHY_SW_COMA 0x40 #define ET_PMCSR_INIT 0x38
/* structure for dma writeback lo reg in rxdma address map *locatedataddress0x2004 *Definedearlier(u32)
*/
/* structure for dma writeback hi reg in rxdma address map *locatedataddress0x2008 *Definedearlier(u32)
*/
/* structure for number of packets done reg in rxdma address map *locatedataddress0x200C * *31-8:unused *7-0:numdone
*/
/* structure for max packet time reg in rxdma address map *locatedataddress0x2010 * *31-18:unused *17-0:timedone
*/
/* structure for rx queue read address reg in rxdma address map *locatedataddress0x2014 *Definedearlier(u32)
*/
/* structure for rx queue read address external reg in rxdma address map *locatedataddress0x2018 *Definedearlier(u32)
*/
/* structure for rx queue write address reg in rxdma address map *locatedataddress0x201C *Definedearlier(u32)
*/
/* structure for packet status ring base address lo reg in rxdma address map *locatedataddress0x2020 *Definedearlier(u32)
*/
/* structure for packet status ring base address hi reg in rxdma address map *locatedataddress0x2024 *Definedearlier(u32)
*/
/* structure for packet status ring number of descriptors reg in rxdma address *map.Locatedataddress0x2028 * *31-12:unused *11-0:psrndes
*/ #define ET_RXDMA_PSR_NUM_DES_MASK 0xFFF
/* structure for packet status ring available offset reg in rxdma address map *locatedataddress0x202C * *31-13:unused *12:psravailwrap *11-0:psravail
*/
/* structure for packet status ring full offset reg in rxdma address map *locatedataddress0x2030 * *31-13:unused *12:psrfullwrap *11-0:psrfull
*/
/* structure for packet status ring access index reg in rxdma address map *locatedataddress0x2034 * *31-5:unused *4-0:psr_ai
*/
/* structure for packet status ring minimum descriptors reg in rxdma address *map.Locatedataddress0x2038 * *31-12:unused *11-0:psr_min
*/
/* structure for free buffer ring base lo address reg in rxdma address map *locatedataddress0x203C *Definedearlier(u32)
*/
/* structure for free buffer ring base hi address reg in rxdma address map *locatedataddress0x2040 *Definedearlier(u32)
*/
/* structure for free buffer ring number of descriptors reg in rxdma address *map.Locatedataddress0x2044 * *31-10:unused *9-0:fbrndesc
*/
/* structure for free buffer ring 0 available offset reg in rxdma address map *locatedataddress0x2048 *Definedearlier(u32)
*/
/* structure for free buffer ring 0 full offset reg in rxdma address map *locatedataddress0x204C *Definedearlier(u32)
*/
/* structure for free buffer cache 0 full offset reg in rxdma address map *locatedataddress0x2050 * *31-5:unused *4-0:fbcrdi
*/
/* structure for free buffer ring 0 minimum descriptor reg in rxdma address map *locatedataddress0x2054 * *31-10:unused *9-0:fbrmin
*/
/* structure for free buffer ring 1 base address lo reg in rxdma address map *locatedataddress0x2058-0x205C *Definedearlier(RXDMA_FBR_BASE_LO_tandRXDMA_FBR_BASE_HI_t)
*/
/* structure for free buffer ring 1 number of descriptors reg in rxdma address *map.Locatedataddress0x2060 *Definedearlier(RXDMA_FBR_NUM_DES_t)
*/
/* structure for free buffer ring 1 available offset reg in rxdma address map *locatedataddress0x2064 *DefinedEarlier(RXDMA_FBR_AVAIL_OFFSET_t)
*/
/* structure for free buffer ring 1 full offset reg in rxdma address map *locatedataddress0x2068 *DefinedEarlier(RXDMA_FBR_FULL_OFFSET_t)
*/
/* structure for free buffer cache 1 read index reg in rxdma address map *locatedataddress0x206C *DefinedEarlier(RXDMA_FBC_RD_INDEX_t)
*/
/* structure for free buffer ring 1 minimum descriptor reg in rxdma address map *locatedataddress0x2070 *DefinedEarlier(RXDMA_FBR_MIN_DES_t)
*/
/* structure for rxmac control reg in rxmac address map *locatedataddress0x4000 * *31-7:reserved *6:rxmac_int_disable *5:async_disable *4:mif_disable *3:wol_disable *2:pkt_filter_disable *1:mcif_disable *0:rxmac_en
*/ #define ET_RX_CTRL_WOL_DISABLE 0x0008 #define ET_RX_CTRL_RXMAC_ENABLE 0x0001
/* structure for Wake On Lan Control and CRC 0 reg in rxmac address map *locatedataddress0x4004 *31-16:crc *15-12:reserved *11:ignore_pp *10:ignore_mp *9:clr_intr *8:ignore_link_chg *7:ignore_uni *6:ignore_multi *5:ignore_broad *4-0:valid_crc4-0
*/
/* structure for CRC 1 and CRC 2 reg in rxmac address map *locatedataddress0x4008 * *31-16:crc2 *15-0:crc1
*/
/* structure for CRC 3 and CRC 4 reg in rxmac address map *locatedataddress0x400C * *31-16:crc4 *15-0:crc3
*/
/* structure for Wake On Lan Source Address Lo reg in rxmac address map *locatedataddress0x4010 * *31-24:sa3 *23-16:sa4 *15-8:sa5 *7-0:sa6
*/ #define ET_RX_WOL_LO_SA3_SHIFT 24 #define ET_RX_WOL_LO_SA4_SHIFT 16 #define ET_RX_WOL_LO_SA5_SHIFT 8
/* structure for Wake On Lan Source Address Hi reg in rxmac address map *locatedataddress0x4014 * *31-16:reserved *15-8:sa1 *7-0:sa2
*/ #define ET_RX_WOL_HI_SA1_SHIFT 8
/* structure for Wake On Lan mask reg in rxmac address map *locatedataddress0x4018-0x4064 *Definedearlier(u32)
*/
/* structure for Memory Controller Interface Control Max Segment reg in rxmac *addressmap.Locatedataddress0x4088 * *31-10:reserved *9-2:max_size *1:fc_en *0:seg_en
*/ #define ET_RX_MCIF_CTRL_MAX_SEG_SIZE_SHIFT 2 #define ET_RX_MCIF_CTRL_MAX_SEG_FC_ENABLE 0x0002 #define ET_RX_MCIF_CTRL_MAX_SEG_ENABLE 0x0001
/* structure for Memory Controller Interface Water Mark reg in rxmac address *map.Locatedataddress0x408C * *31-26:unused *25-16:mark_hi *15-10:unused *9-0:mark_lo
*/
/* structure for Rx Queue Dialog reg in rxmac address map. *locatedataddress0x4090 * *31-26:reserved *25-16:rd_ptr *15-10:reserved *9-0:wr_ptr
*/
/* structure for space available reg in rxmac address map. *locatedataddress0x4094 * *31-17:reserved *16:space_avail_en *15-10:reserved *9-0:space_avail
*/
/* structure for management interface reg in rxmac address map. *locatedataddress0x4098 * *31-18:reserved *17:drop_pkt_en *16-0:drop_pkt_mask
*/
/* structure for Error reg in rxmac address map. *locatedataddress0x409C * *31-4:unused *3:mif *2:async *1:pkt_filter *0:mcif
*/
/* structure for Interpacket gap reg in mac address map. *locatedataddress0x5008 * *31:reserved *30-24:nonB2Bipg1 *23:undefined *22-16:nonB2Bipg2 *15-8:Minifgenforce *7-0:B2Bipg * *structureforhalfduplexreginmacaddressmap. *locatedataddress0x500C *31-24:reserved *23-20:AltBEBtrunc *19:AltBEBenable *18:BPnobackoff *17:nobackoff *16:excessdefer *15-12:re-xmitmax *11-10:reserved *9-0:collisionwindow
*/
/* structure for Maximum Frame Length reg in mac address map. *locatedataddress0x5010:bits0-15holdthelength.
*/
/* structure for Reserve 1 reg in mac address map. *locatedataddress0x5014-0x5018 *Definedearlier(u32)
*/
/* structure for Test reg in mac address map. *locatedataddress0x501C *test:bits0-2,restunused
*/
/* structure for MII Management Configuration reg in mac address map. *locatedataddress0x5020 * *31:resetMIImgmt *30-6:unused *5:scanautoincrement *4:preamblesuppress *3:undefined *2-0:mgmtclockreset
*/ #define ET_MAC_MIIMGMT_CLK_RST 0x0007
/* structure for MII Management Command reg in mac address map. *locatedataddress0x5024 *bit1:scancycle *bit0:readcycle
*/
/* structure for MII Management Address reg in mac address map. *locatedataddress0x5028 *31-13:reserved *12-8:phyaddr *7-5:reserved *4-0:register
*/ #define ET_MAC_MII_ADDR(phy, reg) ((phy) << 8 | (reg))
/* structure for MII Management Control reg in mac address map. *locatedataddress0x502C *31-16:reserved *15-0:phycontrol
*/
/* structure for MII Management Status reg in mac address map. *locatedataddress0x5030 *31-16:reserved *15-0:phycontrol
*/ #define ET_MAC_MIIMGMT_STAT_PHYCRTL_MASK 0xFFFF
/* structure for MII Management Indicators reg in mac address map. *locatedataddress0x5034 *31-3:reserved *2:notvalid *1:scanning *0:busy
*/ #define ET_MAC_MGMT_BUSY 0x00000001 /* busy */ #define ET_MAC_MGMT_WAIT 0x00000005 /* busy | not valid */
/* structure for Interface Control reg in mac address map. *locatedataddress0x5038 * *31:resetifmodule *30-28:reserved *27:tbimode *26:ghdmode *25:lhdmode *24:phymode *23:resetpermii *22-17:reserved *16:speed *15:resetpe100x *14-11:reserved *10:forcequiet *9:nocipher *8:disablelinkfail *7:resetgpsi *6-1:reserved *0:enablejabberprotection
*/ #define ET_MAC_IFCTRL_GHDMODE (1 << 26) #define ET_MAC_IFCTRL_PHYMODE (1 << 24)
/* structure for Interface Status reg in mac address map. *locatedataddress0x503C * *31-10:reserved *9:excess_defer *8:clash *7:phy_jabber *6:phy_link_ok *5:phy_full_duplex *4:phy_speed *3:pe100x_link_fail *2:pe10t_loss_carrier *1:pe10t_sqe_error *0:pe10t_jabber
*/
/* structure for Mac Station Address, Part 1 reg in mac address map. *locatedataddress0x5040 * *31-24:Octet6 *23-16:Octet5 *15-8:Octet4 *7-0:Octet3
*/ #define ET_MAC_STATION_ADDR1_OC6_SHIFT 24 #define ET_MAC_STATION_ADDR1_OC5_SHIFT 16 #define ET_MAC_STATION_ADDR1_OC4_SHIFT 8
/* structure for Mac Station Address, Part 2 reg in mac address map. *locatedataddress0x5044 * *31-24:Octet2 *23-16:Octet1 *15-0:reserved
*/ #define ET_MAC_STATION_ADDR2_OC2_SHIFT 24 #define ET_MAC_STATION_ADDR2_OC1_SHIFT 16
/* Defines for generic MII registers 0x00 -> 0x0F can be found in *include/linux/mii.h
*/ /* some defines for modem registers that seem to be 'reserved' */ #define PHY_INDEX_REG 0x10 #define PHY_DATA_REG 0x11 #define PHY_MPHY_CONTROL_REG 0x12
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.