Lines Matching +full:led +full:- +full:cur

1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2001-2024, Intel Corporation
92 #include <dev/led/led.h>
104 * Valid Range: 80-256 for 82542 and 82543-based adapters
105 * 80-4096 for others
121 * EM_MAX_RXD - Maximum number of receive Descriptors
122 * Valid Range: 80-256 for 82542 and 82543-based adapters
123 * 80-4096 for others
140 * EM_TIDV - Transmit Interrupt Delay Value
141 * Valid Range: 0-65535 (0=off)
152 * EM_TADV - Transmit Absolute Interrupt Delay Value
154 * Valid Range: 0-65535 (0=off)
157 * transmit interrupt is generated. Useful only if EM_TIDV is non-zero,
166 * EM_RDTR - Receive Interrupt Delay Timer (Packet Timer)
167 * Valid Range: 0-65535 (0=off)
188 * Valid Range: 0-65535 (0=off)
191 * receive interrupt is generated. Useful only if EM_RDTR is non-zero,
201 * 0 - Disable autonegotiation
202 * 1 - Enable autonegotiation
209 * 1 - Wait for autonegotiation to complete
210 * 0 - Don't wait for autonegotiation to complete
214 /* Tunables -- End */
287 #define IGB_RX_PTHRESH ((hw->mac.type == e1000_i354) ? 12 : \
288 ((hw->mac.type <= e1000_82576) ? 16 : 8))
290 #define IGB_RX_WTHRESH ((hw->mac.type == e1000_82576 && \
291 (sc->intr_type == IFLIB_INTR_MSIX)) ? 1 : 4)
293 #define IGB_TX_PTHRESH ((hw->mac.type == e1000_i354) ? 20 : 8)
295 #define IGB_TX_WTHRESH ((hw->mac.type != e1000_82575 && \
296 sc->intr_type == IFLIB_INTR_MSIX) ? 1 : 16)
309 #define TARC_SPEED_MODE_BIT (1 << 21) /* On PCI-E MACs only */
359 * and since its only used in MSI-X, and in
360 * the em driver only 82574 uses MSI-X we can
365 * 82574 only reports 3 MSI-X vectors by default;
374 * VFs use 32-bit counter that rolls over.
376 #define UPDATE_VF_REG(reg, last, cur) \ argument
378 u32 new = E1000_READ_REG(&sc->hw, reg); \
380 cur += 0x100000000LL; \
382 cur &= 0xFFFFFFFF00000000LL; \
383 cur |= new; \
389 struct e1000_softc *sc; /* Back-pointer to the sc struct */
480 #define tx_num_queues shared->isc_ntxqsets
481 #define rx_num_queues shared->isc_nrxqsets
482 #define intr_type shared->isc_intr
483 /* FreeBSD operating-system-specific structures. */
563 struct e1000_hw_stats stats; /* !sc->vf_ifp */
564 struct e1000_vf_stats vf_stats; /* sc->vf_ifp */