Lines Matching +full:in +full:- +full:masks
1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Copyright (c) 2010 - 2012 Xilinx, Inc. All rights reserved.
151 #define XAE_IFGP_OFFSET 0x00000008 /* Tx Inter-frame gap adjustment*/
181 #define XAE_AM0_OFFSET 0x00000750 /* Frame Filter Mask Value Bytes 3-0 */
182 #define XAE_AM1_OFFSET 0x00000754 /* Frame Filter Mask Value Bytes 7-4 */
188 /* Bit Masks for Axi Ethernet RAF register */
207 /* Bit Masks for Axi Ethernet TPF and IFGP registers */
209 /* Transmit inter-frame gap adjustment value */
212 /* Bit Masks for Axi Ethernet IS, IE and IP registers, Same masks apply
232 /* Bit masks for Axi Ethernet VLAN TPID Word 0 register */
236 /* Bit masks for Axi Ethernet VLAN TPID Word 1 register */
240 /* Bit masks for Axi Ethernet RCW1 register */
243 /* In-Band FCS enable (FCS not stripped) */
252 * stored in register RCW0
256 /* Bit masks for Axi Ethernet TC register */
259 /* In-Band FCS enable (FCS not generated) */
263 /* Inter-frame gap adjustment enable */
266 /* Bit masks for Axi Ethernet FCC register */
270 /* Bit masks for Axi Ethernet EMMC register */
282 /* Bit masks for Axi Ethernet PHYC register */
285 #define XAE_PHYC_RGMIIHD_MASK 0x00000002 /* RGMII Half-duplex */
294 /* Bit masks for Axi Ethernet ability register */
304 /* Bit masks for Axi Ethernet MDIO interface MC register */
308 /* Bit masks for Axi Ethernet MDIO interface MCR register */
320 /* Bit masks for Axi Ethernet MDIO interface MIS, MIP, MIE, MIC registers */
323 /* Bit masks for Axi Ethernet UAW1 register */
325 * bits [31:0] are stored in register UAW0
329 /* Bit masks for Axi Ethernet FMC register */
335 /* Defines for different options for C_PHY_TYPE parameter in Axi Ethernet IP */
343 /* Total number of entries in the hardware multicast table. */
366 /* enum temac_stat - TEMAC statistics counters
422 * struct axidma_bd - Axi Dma buffer descriptor layout
458 * struct skbuf_dma_descriptor - skb for each dma descriptor
463 * @sg_len: number of entries in the sglist.
474 * struct axienet_local - axienet private per device data
481 * @switch_x_sgmii: Whether switchable 1000BaseX/SGMII mode is enabled in the core
482 * @axi_clk: AXI4-Lite bus clock
483 * @misc_clks: Misc ethernet clocks (AXI4-Stream, Ref, MGT clocks)
494 * @rx_bd_ci: Stores the index of the Rx buffer descriptor in the ring being
504 * @tx_bd_ci: Stores the next Tx buffer descriptor in the ring that may be
506 * @tx_bd_tail: Stores the index of the next Tx buffer descriptor in the ring
513 * @hw_last_counter: Last-seen value of each statistic counter
527 * @phy_mode: Phy type to identify between MII/GMII/RGMII/SGMII/1000 Base-X
531 * Txed/Rxed in the existing hardware. If jumbo option is
629 * struct axienet_option - Used to set axi ethernet hardware options
632 * @m_or: Mask to be ORed for setting the option in the register
641 * axienet_ior - Memory mapped Axi Ethernet register read
651 return ioread32(lp->regs + offset); in axienet_ior()
661 if (lp->mii_bus) in axienet_lock_mii()
662 mutex_lock(&lp->mii_bus->mdio_lock); in axienet_lock_mii()
667 if (lp->mii_bus) in axienet_unlock_mii()
668 mutex_unlock(&lp->mii_bus->mdio_lock); in axienet_unlock_mii()
672 * axienet_iow - Memory mapped Axi Ethernet register write
683 iowrite32(value, lp->regs + offset); in axienet_iow()
687 * axienet_dma_out32 - Memory mapped Axi DMA register write.
699 iowrite32(value, lp->dma_regs + reg); in axienet_dma_out32()
704 * axienet_dma_out64 - Memory mapped Axi DMA register write.
715 iowrite64(value, lp->dma_regs + reg); in axienet_dma_out64()
721 if (lp->features & XAE_FEATURE_DMA_64BIT) in axienet_dma_out_addr()
737 /* Function prototypes visible in xilinx_axienet_mdio.c for other files */