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
39 /*****************************************************************************/
42 /*****************************************************************************/
45 * Serial port stats structure. The structure itself is UART
46 * independent, but some fields may be UART/driver specific (for
56 unsigned long txtotal;
57 unsigned long rxtotal;
58 unsigned long txbuffered;
59 unsigned long rxbuffered;
60 unsigned long rxoverrun;
61 unsigned long rxparity;
62 unsigned long rxframing;
64 unsigned long txbreaks;
65 unsigned long rxbreaks;
70 unsigned long txctson;
71 unsigned long txctsoff;
72 unsigned long rxrtson;
73 unsigned long rxrtsoff;
77 unsigned long ttystate;
82 unsigned long signals;
87 * Board stats structure. Returns usefull info about the board.
90 #define COM_MAXPANELS 8
96 unsigned long nrports;
104 unsigned long ioaddr;
105 unsigned long ioaddr2;
106 unsigned long memaddr;
108 unsigned long nrpanels;
109 unsigned long nrports;
110 companel_t panels[COM_MAXPANELS];
115 * Define the ioctl operations for stats stuff.
117 #define COM_GETPORTSTATS _IOWR('c', 30, comstats_t)
118 #define COM_CLRPORTSTATS _IOWR('c', 31, comstats_t)
119 #define COM_GETBRDSTATS _IOWR('c', 32, combrd_t)
121 /*****************************************************************************/