Lines Matching +full:tx +full:- +full:device
69 * MAC TX Event stats
168 #define HSTAT(erip, x) erip->stats.x++;
169 #define HSTATN(erip, x, n) erip->stats.x += n;
175 * Per-Stream instance state information.
178 * at close(). Each per-Stream instance points to at most one
179 * per-device structure using the sb_erip field. All instances
181 * ordered on minor device number.
190 #define ERI_RPENDING (erip->rpending)
195 #define ERI_TPENDING (erip->tpending)
200 #define NEXTRMD(erip, rmdp) (((rmdp) + 1) == (erip)->rmdlimp ? \
201 (erip)->rmdp : ((rmdp) + 1))
202 #define NEXTTMD(erip, tmdp) (((tmdp) + 1) == (erip)->eri_tmdlimp ? \
203 (erip)->eri_tmdp : ((tmdp) + 1))
204 #define PREVTMD(erip, tmdp) ((tmdp) == (erip)->eri_tmdp ? \
205 ((erip)->eri_tmdlimp - 1) : ((tmdp) - 1))
267 * states for bringing up the link in auto-negotiation mode
279 #define ISOLATE_ISSUED 2 /* Isolate-remove command has been issued */
285 * On some product implementations, the built-in Serial Link may not be present
303 * Values for the eri_non-serial-link field
320 #define ERI_USE_SERIAL_LINK 1 /* Select serial-link */
321 #define ERI_USE_NON_SERIAL_LINK 2 /* Select non-serial-link */
334 * structure used to detect tx hang condition
337 ulong_t starts; /* # of tx packets posted to the hw */
338 uint64_t reclaim_opackets; /* # of tx packets reclaimed */
342 * ERI Device Channel instance state information.
351 int pci_mode; /* sbus/pci device (future) */
361 int tpending; /* Max.no. of tX bufs post */
397 uint32_t tx_kick; /* TX kick register val */
398 uint32_t tx_completion; /* TX completion reg val */
449 uint16_t device_id; /* Device Model */
450 uint16_t device_rev; /* Device Rev. */
480 int pauseTX; /* pcs link-pause TX enable */
481 int pauseRX; /* pcs link-pause RX enable */
482 int macfdx; /* mac full-duplex mode */
522 kmutex_t xmitlock; /* protect xmit-side fields */
524 kmutex_t intrlock; /* protect intr-side fields */
525 kmutex_t linklock; /* protect link-side fields */
555 * array of words defined by erip->ladrf, converting a bit (0-255) into
560 #define LADRF_WORD(erip, bit) erip->ladrf[(15 - ((bit) / 16))]
598 #define ERI_TXINIT 0x40 /* TX Portion Init'ed */
600 #define ERI_MACLOOPBACK 0x100 /* device has MAC int lpbk (DIAG) */
601 #define ERI_SERLOOPBACK 0x200 /* device has SERDES int lpbk (DIAG) */
630 * MAC TX Event stats
681 #define ROUNDUP(a, n) (((a) + ((n) - 1)) & ~((n) - 1))
682 #define ROUNDUP2(a, n) (uchar_t *)((((uintptr_t)(a)) + ((n) - 1)) & ~((n) - 1))
687 * - hb_buf starts on an ERI_BURSTSIZE boundary.
688 * - eribuf is an even multiple of ERI_BURSTSIZE
689 * - hb_buf[] is large enough to contain max frame (1518) plus
696 #define ERI_BURSTMASK (ERIBURSTSIZE - 1)