Lines Matching +full:disable +full:- +full:eop
1 /* SPDX-License-Identifier: GPL-2.0 */
3 * 7990.h -- LANCE ethernet IC generic routines.
11 * in particular a2065.[ch]. The AMD C-LANCE datasheet was also helpful.
32 * too long (and overflow the RAM on shared-memory cards like the HP LANCE.
41 #define TX_RING_MOD_MASK (TX_RING_SIZE - 1)
42 #define RX_RING_MOD_MASK (RX_RING_SIZE - 1)
74 volatile unsigned short mode; /* Pre-set mode (reg. 15) */
84 /* The Tx and Rx ring entries must be aligned on 8-byte boundaries.
85 * This will be true if this whole struct is 8-byte aligned.
114 int auto_select; /* cable-selection is by carrier */
120 * a DIO-specific register every time you read/write the LANCE regs :-<
143 #define LE_C0_CERR 0x2000 /* No Heartbeat (10BASE-T) */
172 /* these next ones 0x4000 -- 0x0080 are not available on the LANCE 7990,
173 * but they are in NetBSD's am7990.h, presumably for backwards-compatible chips
175 #define LE_MO_DRCVBC 0x4000 /* disable receive broadcast */
176 #define LE_MO_DRCVPA 0x2000 /* disable physical address detection */
177 #define LE_MO_DLNKTST 0x1000 /* disable link status */
178 #define LE_MO_DAPC 0x0800 /* disable automatic polarity correction */
183 /* and this one is from the C-LANCE data sheet... */
185 (C-LANCE, not original LANCE) */
187 #define LE_MO_DRTY 0x0020 /* Disable Retry */
189 #define LE_MO_DXMTFCS 0x0008 /* Disable Transmit CRC */
191 #define LE_MO_DTX 0x0002 /* Disable Transmitter */
192 #define LE_MO_DRX 0x0001 /* Disable Receiver */
206 #define LE_R1_POK 0x03 /* Packet is complete: SOP + EOP */
220 #define LE_T1_POK 0x03 /* Packet is complete: SOP + EOP */
234 #define TX_BUFFS_AVAIL ((lp->tx_old <= lp->tx_new) ? \
235 lp->tx_old + lp->tx_ring_mod_mask - lp->tx_new : \
236 lp->tx_old - lp->tx_new - 1)