Lines Matching +full:short +full:- +full:descriptor

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)
49 /* Each receive buffer is described by a receive message descriptor (RMD) */
51 volatile unsigned short rmd0; /* low address of packet */
52 volatile unsigned char rmd1_bits; /* descriptor bits */
54 volatile short length; /* This length is 2s complement (negative)!
56 volatile unsigned short mblength; /* Actual number of bytes received */
61 volatile unsigned short tmd0; /* low address of packet */
62 volatile unsigned char tmd1_bits; /* descriptor bits */
64 volatile short length; /* Length is 2s complement (negative)! */
65 volatile unsigned short misc;
69 * the initialization block, the receive and transmit descriptor rings,
74 volatile unsigned short mode; /* Pre-set mode (reg. 15) */
79 volatile unsigned short rx_ptr; /* receive descriptor addr */
80 volatile unsigned short rx_len; /* receive len and high addr */
81 volatile unsigned short tx_ptr; /* transmit descriptor addr */
82 volatile unsigned short tx_len; /* transmit len and high addr */
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 */
115 unsigned short busmaster_regval;
120 * a DIO-specific register every time you read/write the LANCE regs :-<
123 void (*writerap)(void *, unsigned short);
124 void (*writerdp)(void *, unsigned short);
125 unsigned short (*readrdp)(void *);
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
183 /* and this one is from the C-LANCE data sheet... */
185 (C-LANCE, not original LANCE) */
198 #define LE_R1_OWN 0x80 /* LANCE owns the descriptor */
212 #define LE_T1_OWN 0x80 /* LANCE owns the descriptor */
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)