3 * ===================================
4 * HARP | Host ATM Research Platform
5 * ===================================
8 * This Host ATM Research Platform ("HARP") file (the "Software") is
9 * made available by Network Computing Services, Inc. ("NetworkCS")
10 * "AS IS". NetworkCS does not provide maintenance, improvements or
11 * support of any kind.
13 * NETWORKCS MAKES NO WARRANTIES OR REPRESENTATIONS, EXPRESS OR IMPLIED,
14 * INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY
15 * AND FITNESS FOR A PARTICULAR PURPOSE, AS TO ANY ELEMENT OF THE
16 * SOFTWARE OR ANY SUPPORT PROVIDED IN CONNECTION WITH THIS SOFTWARE.
17 * In no event shall NetworkCS be responsible for any damages, including
18 * but not limited to consequential damages, arising from or relating to
19 * any use of the Software or related support.
21 * Copyright 1994-1998 Network Computing Services, Inc.
23 * Copies of this Software may be made, however, the above copyright
24 * notice must be reproduced on all copies.
26 * @(#) $FreeBSD: src/sys/dev/hea/eni_stats.h,v 1.2 1999/08/28 00:41:46 peter Exp $
31 * Efficient ENI Adapter Support
32 * -----------------------------
34 * Defines for statistics
38 #ifndef _ENI_ENI_STATS_H
39 #define _ENI_ENI_STATS_H
41 struct eni_stats_oc3 {
42 u_long oc3_sect_bip8; /* Section 8-bit intrlv parity errors */
43 u_long oc3_path_bip8; /* Path 8-bit intrlv parity errors */
44 u_long oc3_line_bip24; /* Line 24-bit intrlv parity errors */
45 u_long oc3_line_febe; /* Line far-end block errors */
46 u_long oc3_path_febe; /* Path far-end block errors */
47 u_long oc3_hec_corr; /* Correctable HEC errors */
48 u_long oc3_hec_uncorr; /* Uncorrectable HEC errors */
49 u_long oc3_pad; /* Pad to quad-word boundary */
51 typedef struct eni_stats_oc3 Eni_Stats_oc3;
53 struct eni_stats_atm {
54 u_long atm_xmit; /* Cells transmitted */
55 u_long atm_rcvd; /* Cells received */
56 u_long atm_pad[2]; /* Pad to quad-word boundary */
58 typedef struct eni_stats_atm Eni_Stats_atm;
60 struct eni_stats_aal0 {
61 u_long aal0_xmit; /* Cells transmitted */
62 u_long aal0_rcvd; /* Cells received */
63 u_long aal0_drops; /* Cells dropped */
64 u_long aal0_pad; /* Pad to quad-word boundary */
66 typedef struct eni_stats_aal0 Eni_Stats_aal0;
68 struct eni_stats_aal5 {
69 u_long aal5_xmit; /* Cells transmitted */
70 u_long aal5_rcvd; /* Cells received */
71 u_long aal5_crc_len; /* Cells with CRC/length errors */
72 u_long aal5_drops; /* Cell drops */
73 u_long aal5_pdu_xmit; /* CS PDUs transmitted */
74 u_long aal5_pdu_rcvd; /* CS PDUs received */
75 u_long aal5_pdu_crc; /* CS PDUs with CRC errors */
76 u_long aal5_pdu_errs; /* CS layer protocol errors */
77 u_long aal5_pdu_drops; /* CS PDUs dropped */
78 u_long aal5_pad[3]; /* Pad to quad-word boundary */
80 typedef struct eni_stats_aal5 Eni_Stats_aal5;
82 struct eni_stats_driver {
84 * Adapter memory allocator stats
86 u_long drv_mm_toobig; /* Size larger then adapter supports */
87 u_long drv_mm_nodesc; /* No memory area descriptor avail */
88 u_long drv_mm_nobuf; /* No memory buffer available */
89 u_long drv_mm_notuse; /* Calling free() on free buffer */
90 u_long drv_mm_notfnd; /* Couldn't find descr for free() */
95 u_long drv_vc_maxpdu; /* Requested PDU size too large */
96 u_long drv_vc_badrng; /* VPI and/or VCI too large */
101 u_long drv_rv_norsc; /* No buffer for resource pointers */
102 u_long drv_rv_nobufs; /* No buffers for PDU */
103 u_long drv_rv_nodma; /* No room in RXDMA list */
104 u_long drv_rv_rxq; /* No room in local rxqueue */
105 u_long drv_rv_novcc; /* Draining PDU on closed VCC */
106 u_long drv_rv_intrq; /* No room in atm_intrq */
107 u_long drv_rv_null; /* Trying to pass null PDU up stack */
108 u_long drv_rv_segdma; /* No DMA address */
113 u_long drv_xm_segdma; /* No DMA address */
114 u_long drv_xm_segnoal; /* Non-aligned segment */
115 u_long drv_xm_seglen; /* Padded length segment */
116 u_long drv_xm_maxpdu; /* Too many segments - dropped */
117 u_long drv_xm_nobuf; /* No space in TX buffer - dropped */
118 u_long drv_xm_norsc; /* No buffers for resource pointers */
119 u_long drv_xm_nodma; /* No space in TXDMA list */
120 u_long drv_xm_dmaovfl; /* DMA overflow */
123 typedef struct eni_stats_driver Eni_Stats_drv;
126 Eni_Stats_oc3 eni_st_oc3; /* OC3 layer stats */
127 Eni_Stats_atm eni_st_atm; /* ATM layer stats */
128 Eni_Stats_aal0 eni_st_aal0; /* AAL0 layer stats */
129 Eni_Stats_aal5 eni_st_aal5; /* AAL5 layer stats */
130 Eni_Stats_drv eni_st_drv; /* Driver stats */
132 typedef struct eni_stats Eni_stats;
134 #endif /* _ENI_ENI_STATS_H */