Initial import from FreeBSD RELENG_4:
[dragonfly.git] / sys / dev / atm / hfa / fore_stats.h
1 /*
2  *
3  * ===================================
4  * HARP  |  Host ATM Research Platform
5  * ===================================
6  *
7  *
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.
12  *
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.
20  *
21  * Copyright 1994-1998 Network Computing Services, Inc.
22  *
23  * Copies of this Software may be made, however, the above copyright
24  * notice must be reproduced on all copies.
25  *
26  *      @(#) $FreeBSD: src/sys/dev/hfa/fore_stats.h,v 1.2 1999/08/28 00:41:52 peter Exp $
27  *
28  */
29
30 /*
31  * FORE Systems 200-Series Adapter Support
32  * ---------------------------------------
33  *
34  * Driver statistics definitions
35  *
36  */
37
38 #ifndef _FORE_STATS_H
39 #define _FORE_STATS_H
40
41
42 /*
43  * Fore Driver Statistics
44  */
45 struct Stats_driver {
46         u_long          drv_xm_notact;  /* PDU drops out - VCC not active */
47         u_long          drv_xm_full;    /* Xmit queue full */
48         u_long          drv_xm_maxpdu;  /* PDU drops out - max segment/size */
49         u_long          drv_xm_segnoal; /* Non-aligned segments */
50         u_long          drv_xm_seglen;  /* Padded length segments */
51         u_long          drv_xm_segdma;  /* PDU drops out - no dma address */
52         u_long          drv_rv_novcc;   /* PDU drops in - no VCC */
53         u_long          drv_rv_nosbf;   /* No small buffers */
54         u_long          drv_rv_nomb;    /* PDU drops in - no buffer */
55         u_long          drv_rv_ifull;   /* PDU drops in - intr queue full */
56         u_long          drv_bf_segdma;  /* Buffer supply - no dma address */
57         u_long          drv_cm_full;    /* Command queue full */
58         u_long          drv_cm_nodma;   /* Command failed - no dma address */
59 };
60 typedef struct Stats_driver     Stats_driver;
61
62
63 /*
64  * Fore Device Statistics
65  *
66  * This structure is used by pass all statistics (including CP maintained 
67  * and driver maintained) data to user space (atm command).
68  */
69 struct fore_stats {
70         Fore_cp_stats   st_cpstat;      /* CP stats */
71         Stats_driver    st_drv;         /* Driver maintained stats */
72 };
73 typedef struct fore_stats       Fore_stats;
74
75 #define st_taxi         st_cpstat.st_cp_taxi
76 #define st_oc3          st_cpstat.st_cp_oc3
77 #define st_atm          st_cpstat.st_cp_atm
78 #define st_aal0         st_cpstat.st_cp_aal0
79 #define st_aal4         st_cpstat.st_cp_aal4
80 #define st_aal5         st_cpstat.st_cp_aal5
81 #define st_misc         st_cpstat.st_cp_misc
82
83 #endif  /* _FORE_STATS_H */