The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/i386/include/comstats.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

    1 /*****************************************************************************/
    2 
    3 /*
    4  * comstats.h  -- Serial Port Stats.
    5  *
    6  * Copyright (c) 1994-1996 Greg Ungerer (gerg@stallion.oz.au).
    7  * All rights reserved.
    8  *
    9  * Redistribution and use in source and binary forms, with or without
   10  * modification, are permitted provided that the following conditions
   11  * are met:
   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.
   23  *
   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
   34  * SUCH DAMAGE.
   35  *
   36  * $FreeBSD: src/sys/i386/include/comstats.h,v 1.2.4.1 1999/09/05 08:11:42 peter Exp $
   37  */
   38 
   39 /*****************************************************************************/
   40 #ifndef _COMSTATS_H
   41 #define _COMSTATS_H
   42 /*****************************************************************************/
   43 
   44 /*
   45  *      Serial port stats structure. The structure itself is UART
   46  *      independent, but some fields may be UART/driver specific (for
   47  *      example state).
   48  */
   49 
   50 typedef struct {
   51         unsigned long   brd;
   52         unsigned long   panel;
   53         unsigned long   port;
   54         unsigned long   hwid;
   55         unsigned long   type;
   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;
   63         unsigned long   rxlost;
   64         unsigned long   txbreaks;
   65         unsigned long   rxbreaks;
   66         unsigned long   txxon;
   67         unsigned long   txxoff;
   68         unsigned long   rxxon;
   69         unsigned long   rxxoff;
   70         unsigned long   txctson;
   71         unsigned long   txctsoff;
   72         unsigned long   rxrtson;
   73         unsigned long   rxrtsoff;
   74         unsigned long   modem;
   75         unsigned long   state;
   76         unsigned long   flags;
   77         unsigned long   ttystate;
   78         unsigned long   cflags;
   79         unsigned long   iflags;
   80         unsigned long   oflags;
   81         unsigned long   lflags;
   82         unsigned long   signals;
   83 } comstats_t;
   84 
   85 
   86 /*
   87  *      Board stats structure. Returns usefull info about the board.
   88  */
   89 
   90 #define COM_MAXPANELS   8
   91 
   92 typedef struct {
   93         unsigned long   panel;
   94         unsigned long   type;
   95         unsigned long   hwid;
   96         unsigned long   nrports;
   97 } companel_t;
   98 
   99 typedef struct {
  100         unsigned long   brd;
  101         unsigned long   type;
  102         unsigned long   hwid;
  103         unsigned long   state;
  104         unsigned long   ioaddr;
  105         unsigned long   ioaddr2;
  106         unsigned long   memaddr;
  107         unsigned long   irq;
  108         unsigned long   nrpanels;
  109         unsigned long   nrports;
  110         companel_t      panels[COM_MAXPANELS];
  111 } combrd_t;
  112 
  113 
  114 /*
  115  *      Define the ioctl operations for stats stuff.
  116  */
  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)
  120 
  121 /*****************************************************************************/
  122 #endif

Cache object: 97b069a5e6bc2661b8f9532ecfdf10c1


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.