Lines Matching +full:tx +full:- +full:output +full:- +full:config
1 /* SPDX-License-Identifier: GPL-2.0 */
15 #define GLOB_MSIZE 0x0cUL /* Local-mem size (64K) */
43 #define CREG_TXDS 0x0cUL /* TX descriptor ring ptr */
45 #define CREG_TIMASK 0x14UL /* TX Interrupt Mask */
50 #define CREG_TXWBUFPTR 0x28UL /* Local memory tx write ptr */
51 #define CREG_TXRBUFPTR 0x2cUL /* Local memory tx read ptr */
59 #define CREG_STAT_TXDERROR 0x00080000 /* TX Descriptor is bogus */
76 #define CREG_QMASK_TXLERR 0x00040000 /* TX late error */
77 #define CREG_QMASK_TXPERR 0x00020000 /* TX parity error */
78 #define CREG_QMASK_TXSERR 0x00010000 /* TX sbus error ack */
86 #define BMAC_XIFCFG 0x000UL /* XIF config register */
87 /* 0x004-->0x0fc, reserved */
90 /* 0x108-->0x204, reserved */
92 #define BMAC_TXCFG 0x20cUL /* Transmitter config register */
93 #define BMAC_IGAP1 0x210UL /* Inter-packet gap 1 */
94 #define BMAC_IGAP2 0x214UL /* Inter-packet gap 2 */
105 #define BMAC_NCCTR 0x240UL /* Transmit normal-collision counter */
106 #define BMAC_FCCTR 0x244UL /* Transmit first-collision counter */
107 #define BMAC_EXCTR 0x248UL /* Transmit excess-collision counter */
108 #define BMAC_LTCTR 0x24cUL /* Transmit late-collision counter */
111 /* 0x258-->0x304, reserved */
113 #define BMAC_RXCFG 0x30cUL /* Receiver config register */
120 #define BMAC_GLECTR 0x328UL /* Receive giant-length error counter */
136 /* BigMac XIF config register. */
137 #define BIGMAC_XCFG_ODENABLE 0x00000001 /* Output driver enable */
139 #define BIGMAC_XCFG_MLBACK 0x00000004 /* Loopback-mode MII enable */
145 #define BIGMAC_STAT_ACNTEXP 0x00000004 /* Align-error counter expired */
146 #define BIGMAC_STAT_CCNTEXP 0x00000008 /* CRC-error counter expired */
147 #define BIGMAC_STAT_LCNTEXP 0x00000010 /* Length-error counter expired */
149 #define BIGMAC_STAT_CVCNTEXP 0x00000040 /* Code-violation counter expired */
152 #define BIGMAC_STAT_MAXPKTERR 0x00000400 /* Max-packet size error */
153 #define BIGMAC_STAT_NCNTEXP 0x00000800 /* Normal-collision counter expired */
154 #define BIGMAC_STAT_ECNTEXP 0x00001000 /* Excess-collision counter expired */
155 #define BIGMAC_STAT_LCCNTEXP 0x00002000 /* Late-collision counter expired */
156 #define BIGMAC_STAT_FCNTEXP 0x00004000 /* First-collision counter expired */
157 #define BIGMAC_STAT_DTIMEXP 0x00008000 /* Defer-timer expired */
162 #define BIGMAC_IMASK_ACNTEXP 0x00000004 /* Align-error counter expired */
163 #define BIGMAC_IMASK_CCNTEXP 0x00000008 /* CRC-error counter expired */
164 #define BIGMAC_IMASK_LCNTEXP 0x00000010 /* Length-error counter expired */
166 #define BIGMAC_IMASK_CVCNTEXP 0x00000040 /* Code-violation counter expired */
169 #define BIGMAC_IMASK_MAXPKTERR 0x00000400 /* Max-packet size error */
170 #define BIGMAC_IMASK_NCNTEXP 0x00000800 /* Normal-collision counter expired */
171 #define BIGMAC_IMASK_ECNTEXP 0x00001000 /* Excess-collision counter expired */
172 #define BIGMAC_IMASK_LCCNTEXP 0x00002000 /* Late-collision counter expired */
173 #define BIGMAC_IMASK_FCNTEXP 0x00004000 /* First-collision counter expired */
174 #define BIGMAC_IMASK_DTIMEXP 0x00008000 /* Defer-timer expired */
176 /* BigMac transmit config register. */
178 #define BIGMAC_TXCFG_FIFO 0x00000010 /* Default tx fthresh... */
183 #define BIGMAC_TXCFG_FULLDPLX 0x00000200 /* Enable full-duplex */
185 /* BigMac receive config register. */
217 #define MGMT_PAL_OENAB 0x00000002 /* Output enabler */
254 #define NEXT_RX(num) (((num) + 1) & (RX_RING_SIZE - 1))
255 #define NEXT_TX(num) (((num) + 1) & (TX_RING_SIZE - 1))
256 #define PREV_RX(num) (((num) - 1) & (RX_RING_SIZE - 1))
257 #define PREV_TX(num) (((num) - 1) & (TX_RING_SIZE - 1))
260 (((bp)->tx_old <= (bp)->tx_new) ? \
261 (bp)->tx_old + (TX_RING_SIZE - 1) - (bp)->tx_new : \
262 (bp)->tx_old - (bp)->tx_new - 1)
274 ((__u32)((unsigned long)(&(((struct bmac_init_block *)0)->mem[elem]))))
294 struct bmac_init_block *bmac_block; /* RX and TX descriptors */
295 dma_addr_t bblock_dvma; /* RX and TX descriptors */
322 ((((unsigned long)(addr) + (64 - 1)) & ~(64 - 1)) - (unsigned long)(addr))
330 int offset = ALIGNED_RX_SKB_ADDR(skb->data); in big_mac_alloc_skb()