HAMMER 60I/Many: Mirroring
[dragonfly.git] / sys / dev / atm / hfa / fore_stats.h
blobf0047d4ceb5c2618068fbabe71b73585b5d48a98
1 /*
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/hfa/fore_stats.h,v 1.2 1999/08/28 00:41:52 peter Exp $
27 * @(#) $DragonFly: src/sys/dev/atm/hfa/fore_stats.h,v 1.2 2003/06/17 04:28:27 dillon Exp $
32 * FORE Systems 200-Series Adapter Support
33 * ---------------------------------------
35 * Driver statistics definitions
39 #ifndef _FORE_STATS_H
40 #define _FORE_STATS_H
44 * Fore Driver Statistics
46 struct Stats_driver {
47 u_long drv_xm_notact; /* PDU drops out - VCC not active */
48 u_long drv_xm_full; /* Xmit queue full */
49 u_long drv_xm_maxpdu; /* PDU drops out - max segment/size */
50 u_long drv_xm_segnoal; /* Non-aligned segments */
51 u_long drv_xm_seglen; /* Padded length segments */
52 u_long drv_xm_segdma; /* PDU drops out - no dma address */
53 u_long drv_rv_novcc; /* PDU drops in - no VCC */
54 u_long drv_rv_nosbf; /* No small buffers */
55 u_long drv_rv_nomb; /* PDU drops in - no buffer */
56 u_long drv_rv_ifull; /* PDU drops in - intr queue full */
57 u_long drv_bf_segdma; /* Buffer supply - no dma address */
58 u_long drv_cm_full; /* Command queue full */
59 u_long drv_cm_nodma; /* Command failed - no dma address */
61 typedef struct Stats_driver Stats_driver;
65 * Fore Device Statistics
67 * This structure is used by pass all statistics (including CP maintained
68 * and driver maintained) data to user space (atm command).
70 struct fore_stats {
71 Fore_cp_stats st_cpstat; /* CP stats */
72 Stats_driver st_drv; /* Driver maintained stats */
74 typedef struct fore_stats Fore_stats;
76 #define st_taxi st_cpstat.st_cp_taxi
77 #define st_oc3 st_cpstat.st_cp_oc3
78 #define st_atm st_cpstat.st_cp_atm
79 #define st_aal0 st_cpstat.st_cp_aal0
80 #define st_aal4 st_cpstat.st_cp_aal4
81 #define st_aal5 st_cpstat.st_cp_aal5
82 #define st_misc st_cpstat.st_cp_misc
84 #endif /* _FORE_STATS_H */