1 /*****************************************************************************/
4 * comstats.h -- Serial Port Stats.
6 * Copyright (C) 1996-1998 Stallion Technologies
7 * Copyright (C) 1994-1996 Greg Ungerer.
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
19 * You should have received a copy of the GNU General Public License
20 * along with this program; if not, write to the Free Software
21 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
24 /*****************************************************************************/
27 /*****************************************************************************/
30 * Serial port stats structure. The structure itself is UART
31 * independent, but some fields may be UART/driver specific (for
41 unsigned long txtotal;
42 unsigned long rxtotal;
43 unsigned long txbuffered;
44 unsigned long rxbuffered;
45 unsigned long rxoverrun;
46 unsigned long rxparity;
47 unsigned long rxframing;
49 unsigned long txbreaks;
50 unsigned long rxbreaks;
55 unsigned long txctson;
56 unsigned long txctsoff;
57 unsigned long rxrtson;
58 unsigned long rxrtsoff;
62 unsigned long ttystate;
67 unsigned long signals;
72 * Board stats structure. Returns useful info about the board.
75 #define COM_MAXPANELS 8
81 unsigned long nrports;
90 unsigned long ioaddr2;
91 unsigned long memaddr;
93 unsigned long nrpanels;
94 unsigned long nrports;
95 companel_t panels[COM_MAXPANELS];
100 * Define the ioctl operations for stats stuff.
102 #include <linux/ioctl.h>
104 #define COM_GETPORTSTATS _IO('c',30)
105 #define COM_CLRPORTSTATS _IO('c',31)
106 #define COM_GETBRDSTATS _IO('c',32)
110 * Define the set of ioctls that give user level access to the
111 * private port, panel and board structures. The argument required
112 * will be driver dependent!
114 #define COM_READPORT _IO('c',40)
115 #define COM_READBOARD _IO('c',41)
116 #define COM_READPANEL _IO('c',42)
118 /*****************************************************************************/