Lines Matching +full:unimac +full:- +full:mdio
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Copyright (c) 2014-2024 Broadcom
19 #include "../unimac.h"
80 u32 cnt_255; /* RO Rx/Tx 65-255 bytes packet */
81 u32 cnt_511; /* RO Rx/Tx 256-511 bytes packet */
82 u32 cnt_1023; /* RO Rx/Tx 512-1023 bytes packet */
83 u32 cnt_1518; /* RO Rx/Tx 1024-1518 bytes packet */
84 u32 cnt_mgv; /* RO Rx/Tx 1519-1522 good VLAN packet */
85 u32 cnt_2047; /* RO Rx/Tx 1522-2047 bytes packet*/
86 u32 cnt_4095; /* RO Rx/Tx 2048-4095 bytes packet*/
87 u32 cnt_9216; /* RO Rx/Tx 4096-9216 bytes packet*/
237 /* uniMac intrl2 registers */
457 /* We support both runtime GENET detection and compile-time
458 * to optimize code-paths for a given hardware
468 #define GENET_IS_V1(p) ((p)->version == GENET_V1)
469 #define GENET_IS_V2(p) ((p)->version == GENET_V2)
470 #define GENET_IS_V3(p) ((p)->version == GENET_V3)
471 #define GENET_IS_V4(p) ((p)->version == GENET_V4)
472 #define GENET_IS_V5(p) ((p)->version == GENET_V5)
508 #define GENET_CB(skb) ((struct bcmgenet_skb_cb *)((skb)->cb))
604 /* MDIO bus variables */
658 * peripheral registers for CPU-native byte order. \
661 return __raw_readl(priv->base + offset + off); \
663 return readl_relaxed(priv->base + offset + off); \
669 __raw_writel(val, priv->base + offset + off); \
671 writel_relaxed(val, priv->base + offset + off); \
683 GENET_IO_MACRO(hfb, priv->hw_params->hfb_offset);
686 GENET_IO_MACRO(hfb_reg, priv->hw_params->hfb_reg_offset);
691 /* MDIO routines */
700 /* Wake-on-LAN routines */