Lines Matching +full:- +full:15 +full:v

1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Altera Triple-Speed Ethernet MAC driver
3 * Copyright (C) 2008-2014 Altera Corporation. All rights reserved
53 #define GET_BIT_VALUE(v, bit) (((v) >> (bit)) & 0x1) argument
72 #define MAC_CMDCFG_LOOP_ENA BIT(15)
73 #define MAC_CMDCFG_TX_ADDR_SEL(v) (((v) & 0x7) << 16) argument
85 #define MAC_CMDCFG_TX_ENA_GET(v) GET_BIT_VALUE(v, 0) argument
86 #define MAC_CMDCFG_RX_ENA_GET(v) GET_BIT_VALUE(v, 1) argument
87 #define MAC_CMDCFG_XON_GEN_GET(v) GET_BIT_VALUE(v, 2) argument
88 #define MAC_CMDCFG_ETH_SPEED_GET(v) GET_BIT_VALUE(v, 3) argument
89 #define MAC_CMDCFG_PROMIS_EN_GET(v) GET_BIT_VALUE(v, 4) argument
90 #define MAC_CMDCFG_PAD_EN_GET(v) GET_BIT_VALUE(v, 5) argument
91 #define MAC_CMDCFG_CRC_FWD_GET(v) GET_BIT_VALUE(v, 6) argument
92 #define MAC_CMDCFG_PAUSE_FWD_GET(v) GET_BIT_VALUE(v, 7) argument
93 #define MAC_CMDCFG_PAUSE_IGNORE_GET(v) GET_BIT_VALUE(v, 8) argument
94 #define MAC_CMDCFG_TX_ADDR_INS_GET(v) GET_BIT_VALUE(v, 9) argument
95 #define MAC_CMDCFG_HD_ENA_GET(v) GET_BIT_VALUE(v, 10) argument
96 #define MAC_CMDCFG_EXCESS_COL_GET(v) GET_BIT_VALUE(v, 11) argument
97 #define MAC_CMDCFG_LATE_COL_GET(v) GET_BIT_VALUE(v, 12) argument
98 #define MAC_CMDCFG_SW_RESET_GET(v) GET_BIT_VALUE(v, 13) argument
99 #define MAC_CMDCFG_MHASH_SEL_GET(v) GET_BIT_VALUE(v, 14) argument
100 #define MAC_CMDCFG_LOOP_ENA_GET(v) GET_BIT_VALUE(v, 15) argument
101 #define MAC_CMDCFG_TX_ADDR_SEL_GET(v) (((v) >> 16) & 0x7) argument
102 #define MAC_CMDCFG_MAGIC_ENA_GET(v) GET_BIT_VALUE(v, 19) argument
103 #define MAC_CMDCFG_SLEEP_GET(v) GET_BIT_VALUE(v, 20) argument
104 #define MAC_CMDCFG_WAKEUP_GET(v) GET_BIT_VALUE(v, 21) argument
105 #define MAC_CMDCFG_XOFF_GEN_GET(v) GET_BIT_VALUE(v, 22) argument
106 #define MAC_CMDCFG_CNTL_FRM_ENA_GET(v) GET_BIT_VALUE(v, 23) argument
107 #define MAC_CMDCFG_NO_LGTH_CHECK_GET(v) GET_BIT_VALUE(v, 24) argument
108 #define MAC_CMDCFG_ENA_10_GET(v) GET_BIT_VALUE(v, 25) argument
109 #define MAC_CMDCFG_RX_ERR_DISC_GET(v) GET_BIT_VALUE(v, 26) argument
110 #define MAC_CMDCFG_DISABLE_READ_TIMEOUT_GET(v) GET_BIT_VALUE(v, 27) argument
111 #define MAC_CMDCFG_CNT_RESET_GET(v) GET_BIT_VALUE(v, 31) argument
119 u32 phy_id2; /* Bits 15:0 of PHY identifier */
120 u32 auto_negotiation_advertisement; /* Auto-negotiation
160 /* Bits 15:0: MegaCore function revision (0x0800). Bit 31:16: Customer
172 /* 32-bit primary MAC address word 0 bits 0 to 31 of the primary
176 /* 32-bit primary MAC address word 1 bits 32 to 47 of the primary
180 /* 14-bit maximum frame length. The MAC receive logic */
186 /* 12-bit receive FIFO section-empty threshold */
188 /* 12-bit receive FIFO section-full threshold */
190 /* 12-bit transmit FIFO section-empty threshold */
192 /* 12-bit transmit FIFO section-full threshold */
194 /* 12-bit receive FIFO almost-empty threshold */
196 /* 12-bit receive FIFO almost-full threshold */
198 /* 12-bit transmit FIFO almost-empty threshold */
200 /* 12-bit transmit FIFO almost-full threshold */
202 /* MDIO address of PHY Device 0. Bits 0 to 4 hold a 5-bit PHY address */
204 /* MDIO address of PHY Device 1. Bits 0 to 4 hold a 5-bit PHY address */
207 /* Bit[15:0]—16-bit holdoff quanta */
244 /* IETF MIB (MIB-II) Object Support */
465 int phy_addr; /* PHY's MDIO address, -1 for autodetection */