1 /*****************************************************************************/
4 * comstats.h -- Serial Port Stats.
6 * Copyright (c) 1994-1996 Greg Ungerer (gerg@stallion.oz.au).
9 * Redistribution and use in source and binary forms, with or without
10 * modification, are permitted provided that the following conditions
12 * 1. Redistributions of source code must retain the above copyright
13 * notice, this list of conditions and the following disclaimer.
14 * 2. Redistributions in binary form must reproduce the above copyright
15 * notice, this list of conditions and the following disclaimer in the
16 * documentation and/or other materials provided with the distribution.
17 * 3. All advertising materials mentioning features or use of this software
18 * must display the following acknowledgement:
19 * This product includes software developed by Greg Ungerer.
20 * 4. Neither the name of the author nor the names of any co-contributors
21 * may be used to endorse or promote products derived from this software
22 * without specific prior written permission.
24 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
25 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 * $FreeBSD: src/sys/i386/include/comstats.h,v 1.5 1999/08/28 00:44:09 peter Exp $
37 * $DragonFly: src/sys/platform/pc32/include/comstats.h,v 1.3 2003/06/28 04:16:03 dillon Exp $
44 * Serial port stats structure. The structure itself is UART
45 * independent, but some fields may be UART/driver specific (for
55 unsigned long txtotal;
56 unsigned long rxtotal;
57 unsigned long txbuffered;
58 unsigned long rxbuffered;
59 unsigned long rxoverrun;
60 unsigned long rxparity;
61 unsigned long rxframing;
63 unsigned long txbreaks;
64 unsigned long rxbreaks;
69 unsigned long txctson;
70 unsigned long txctsoff;
71 unsigned long rxrtson;
72 unsigned long rxrtsoff;
76 unsigned long ttystate;
81 unsigned long signals;
86 * Board stats structure. Returns usefull info about the board.
89 #define COM_MAXPANELS 8
95 unsigned long nrports;
103 unsigned long ioaddr;
104 unsigned long ioaddr2;
105 unsigned long memaddr;
107 unsigned long nrpanels;
108 unsigned long nrports;
109 companel_t panels[COM_MAXPANELS];
114 * Define the ioctl operations for stats stuff.
116 #define COM_GETPORTSTATS _IOWR('c', 30, comstats_t)
117 #define COM_CLRPORTSTATS _IOWR('c', 31, comstats_t)
118 #define COM_GETBRDSTATS _IOWR('c', 32, combrd_t)
120 /*****************************************************************************/