Lines Matching +full:max +full:- +full:frame +full:- +full:size

1 /* SPDX-License-Identifier: GPL-2.0 */
14 #define GLOB_PSIZE 0x08UL /* Packet Size */
15 #define GLOB_MSIZE 0x0cUL /* Local-mem size (64K) */
16 #define GLOB_RSIZE 0x10UL /* Receive partition size */
17 #define GLOB_TSIZE 0x14UL /* Transmit partition size */
34 #define GLOB_PSIZE_2048 0x00 /* 2k packet size */
35 #define GLOB_PSIZE_4096 0x01 /* 4k packet size */
36 #define GLOB_PSIZE_6144 0x10 /* 6k packet size */
37 #define GLOB_PSIZE_8192 0x11 /* 8k packet size */
87 /* 0x004-->0x0fc, reserved */
90 /* 0x108-->0x204, reserved */
93 #define BMAC_IGAP1 0x210UL /* Inter-packet gap 1 */
94 #define BMAC_IGAP2 0x214UL /* Inter-packet gap 2 */
97 #define BMAC_PLEN 0x220UL /* Size of transmit preamble */
101 #define BMAC_TXPMAX 0x230UL /* Transmit max pkt size */
102 #define BMAC_TXPMIN 0x234UL /* Transmit min pkt size */
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 */
114 #define BMAC_RXPMAX 0x310UL /* Receive max pkt size */
115 #define BMAC_RXPMIN 0x314UL /* Receive min pkt size */
119 #define BMAC_FRCTR 0x324UL /* Receive frame receive counter */
120 #define BMAC_GLECTR 0x328UL /* Receive giant-length error counter */
139 #define BIGMAC_XCFG_MLBACK 0x00000004 /* Loopback-mode MII enable */
143 #define BIGMAC_STAT_GOTFRAME 0x00000001 /* Received a frame */
144 #define BIGMAC_STAT_RCNTEXP 0x00000002 /* Receive frame counter expired */
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 */
150 #define BIGMAC_STAT_SENTFRAME 0x00000100 /* Transmitted a frame */
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 */
160 #define BIGMAC_IMASK_GOTFRAME 0x00000001 /* Received a frame */
161 #define BIGMAC_IMASK_RCNTEXP 0x00000002 /* Receive frame counter 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 */
167 #define BIGMAC_IMASK_SENTFRAME 0x00000100 /* Transmitted a frame */
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 */
183 #define BIGMAC_TXCFG_FULLDPLX 0x00000200 /* Enable full-duplex */
204 /* Frame commands. */
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]))))
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()