Lines Matching +full:rx +full:- +full:enable

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
38 #define BFE_PFE 0x00000080 /* Pattern Filtering Enable */
41 #define BFE_PME 0x00001000 /* PHY Mode Enable */
42 #define BFE_PMCE 0x00002000 /* PHY Mode Clocks Enable */
46 #define BFE_BIST_STAT 0x0000000C /* Built-In Self-Test Status */
58 #define BFE_ISTAT_RX 0x00010000 /* RX Interrupt */
71 #define BFE_CTRL_CRC32_ENAB 0x00000001 /* CRC32 Generation Enable */
79 #define BFE_FLOW_PAUSE_ENAB 0x00008000 /* Enable Pause Frame Generation */
87 #define BFE_TX_CTRL_ENABLE 0x00000001 /* Enable */
89 #define BFE_TX_CTRL_LPBACK 0x00000004 /* Loopback Enable */
111 #define BFE_DMARX_CTRL 0x00000210 /* DMA RX Control */
112 #define BFE_RX_CTRL_ENABLE 0x00000001 /* Enable */
116 #define BFE_DMARX_ADDR 0x00000214 /* DMA RX Descriptor Ring Address */
117 #define BFE_DMARX_PTR 0x00000218 /* DMA RX Last Posted Descriptor */
118 #define BFE_DMARX_STAT 0x0000021C /* DMA RX Current Active Desc. + Status */
120 #define BFE_RXCONF 0x00000400 /* EMAC RX Config */
124 #define BFE_RXCONF_PROMISC 0x00000008 /* Promiscuous Enable */
125 #define BFE_RXCONF_LPBACK 0x00000010 /* Loopback Enable */
126 #define BFE_RXCONF_FLOW 0x00000020 /* Flow Control Enable */
130 #define BFE_RXMAXLEN 0x00000404 /* EMAC RX Max Packet Length */
135 #define BFE_MDIO_PREAMBLE 0x00000080 /* MII Preamble Enable */
166 #define BFE_CAM_ENABLE 0x00000001 /* CAM Enable */
175 #define BFE_ENET_ENABLE 0x00000001 /* EMAC Enable */
183 #define BFE_TX_SBENAB 0x00000004 /* Single Backoff Enable */
216 #define BFE_RX_GOOD_O 0x00000580 /* MIB RX Good Octets */
217 #define BFE_RX_GOOD_P 0x00000584 /* MIB RX Good Packets */
218 #define BFE_RX_O 0x00000588 /* MIB RX Octets */
219 #define BFE_RX_P 0x0000058C /* MIB RX Packets */
220 #define BFE_RX_BCAST 0x00000590 /* MIB RX Broadcast Packets */
221 #define BFE_RX_MCAST 0x00000594 /* MIB RX Multicast Packets */
222 #define BFE_RX_64 0x00000598 /* MIB RX <= 64 byte Packets */
223 #define BFE_RX_65_127 0x0000059C /* MIB RX 65 to 127 byte Packets */
224 #define BFE_RX_128_255 0x000005A0 /* MIB RX 128 to 255 byte Packets */
225 #define BFE_RX_256_511 0x000005A4 /* MIB RX 256 to 511 byte Packets */
226 #define BFE_RX_512_1023 0x000005A8 /* MIB RX 512 to 1023 byte Packets */
227 #define BFE_RX_1024_MAX 0x000005AC /* MIB RX 1024 to max byte Packets */
228 #define BFE_RX_JABBER 0x000005B0 /* MIB RX Jabber Packets */
229 #define BFE_RX_OSIZE 0x000005B4 /* MIB RX Oversize Packets */
230 #define BFE_RX_FRAG 0x000005B8 /* MIB RX Fragment Packets */
231 #define BFE_RX_MISS 0x000005BC /* MIB RX Missed Packets */
232 #define BFE_RX_CRCA 0x000005C0 /* MIB RX CRC Align Errors */
233 #define BFE_RX_USIZE 0x000005C4 /* MIB RX Undersize Packets */
234 #define BFE_RX_CRC 0x000005C8 /* MIB RX CRC Errors */
235 #define BFE_RX_ALIGN 0x000005CC /* MIB RX Align Errors */
236 #define BFE_RX_SYM 0x000005D0 /* MIB RX Symbol Errors */
237 #define BFE_RX_PAUSE 0x000005D4 /* MIB RX Pause Packets */
238 #define BFE_RX_NPAUSE 0x000005D8 /* MIB RX Non-Pause Packets */
254 #define BFE_INTVEC_PCI 0x00000001 /* Enable interrupts for PCI */
255 #define BFE_INTVEC_ENET0 0x00000002 /* Enable interrupts for enet 0 */
256 #define BFE_INTVEC_ILINE20 0x00000004 /* Enable interrupts for iline20 */
257 #define BFE_INTVEC_CODEC 0x00000008 /* Enable interrupts for v90 codec */
258 #define BFE_INTVEC_USB 0x00000010 /* Enable interrupts for usb */
259 #define BFE_INTVEC_EXTIF 0x00000020 /* Enable interrupts for external i/f */
260 #define BFE_INTVEC_ENET1 0x00000040 /* Enable interrupts for enet 1 */
265 #define BFE_CLOCK 0x00010000 /* Clock Enable */
267 #define BFE_PE 0x40000000 /* Power Management Enable */
268 #define BFE_BE 0x80000000 /* BIST Enable */
271 #define BFE_SERR 0x00000001 /* S-error */
410 #define BFE_RX_FLAG_LARGE 0x00000010 /* Frame is > RX MAX Length */
444 #define CSR_READ_4(sc, reg) bus_read_4(sc->bfe_res, reg)
446 #define CSR_WRITE_4(sc, reg, val) bus_write_4(sc->bfe_res, reg, val)
454 #define BFE_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->bfe_mtx, MA_OWNED)
455 #define BFE_LOCK(_sc) mtx_lock(&(_sc)->bfe_mtx)
456 #define BFE_UNLOCK(_sc) mtx_unlock(&(_sc)->bfe_mtx)
458 #define BFE_INC(x, y) (x) = ((x) == ((y)-1)) ? 0 : (x)+1
530 #define BFE_MIB_CNT (MIB_RX_NPAUSE - MIB_TX_GOOD_O + 1)