Linux kernel & device driver programming

Cross-Referenced Linux and Device Driver Code

[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ]
Version: [ 2.6.11.8 ] [ 2.6.25 ] [ 2.6.25.8 ] [ 2.6.31.13 ] Architecture: [ i386 ]

Diff markup

Differences between /linux/drivers/char/rio/riodrvr.h (Version 2.6.25) and /linux/drivers/char/rio/riodrvr.h (Version 2.6.31.13)


  1 /*                                                  1 /*
  2 ** -------------------------------------------      2 ** -----------------------------------------------------------------------------
  3 **                                                  3 **
  4 **  Perle Specialix driver for Linux                4 **  Perle Specialix driver for Linux
  5 **  Ported from existing RIO Driver for SCO so      5 **  Ported from existing RIO Driver for SCO sources.
  6  *                                                  6  *
  7  *  (C) 1990 - 2000 Specialix International Lt      7  *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
  8  *                                                  8  *
  9  *      This program is free software; you can      9  *      This program is free software; you can redistribute it and/or modify
 10  *      it under the terms of the GNU General      10  *      it under the terms of the GNU General Public License as published by
 11  *      the Free Software Foundation; either v     11  *      the Free Software Foundation; either version 2 of the License, or
 12  *      (at your option) any later version.        12  *      (at your option) any later version.
 13  *                                                 13  *
 14  *      This program is distributed in the hop     14  *      This program is distributed in the hope that it will be useful,
 15  *      but WITHOUT ANY WARRANTY; without even     15  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
 16  *      MERCHANTABILITY or FITNESS FOR A PARTI     16  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 17  *      GNU General Public License for more de     17  *      GNU General Public License for more details.
 18  *                                                 18  *
 19  *      You should have received a copy of the     19  *      You should have received a copy of the GNU General Public License
 20  *      along with this program; if not, write     20  *      along with this program; if not, write to the Free Software
 21  *      Foundation, Inc., 675 Mass Ave, Cambri     21  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 22 **                                                 22 **
 23 **      Module          : riodrvr.h                23 **      Module          : riodrvr.h
 24 **      SID             : 1.3                      24 **      SID             : 1.3
 25 **      Last Modified   : 11/6/98 09:22:46         25 **      Last Modified   : 11/6/98 09:22:46
 26 **      Retrieved       : 11/6/98 09:22:46         26 **      Retrieved       : 11/6/98 09:22:46
 27 **                                                 27 **
 28 **  ident @(#)riodrvr.h 1.3                        28 **  ident @(#)riodrvr.h 1.3
 29 **                                                 29 **
 30 ** -------------------------------------------     30 ** -----------------------------------------------------------------------------
 31 */                                                 31 */
 32                                                    32 
 33 #ifndef __riodrvr_h                                33 #ifndef __riodrvr_h
 34 #define __riodrvr_h                                34 #define __riodrvr_h
 35                                                    35 
 36 #include <asm/param.h>          /* for HZ */       36 #include <asm/param.h>          /* for HZ */
 37                                                    37 
 38 #ifdef SCCS_LABELS                             << 
 39 static char *_riodrvr_h_sccs_ = "@(#)riodrvr.h << 
 40 #endif                                         << 
 41                                                << 
 42 #define MEMDUMP_SIZE    32                         38 #define MEMDUMP_SIZE    32
 43 #define MOD_DISABLE     (RIO_NOREAD|RIO_NOWRIT     39 #define MOD_DISABLE     (RIO_NOREAD|RIO_NOWRITE|RIO_NOXPRINT)
 44                                                    40 
 45                                                    41 
 46 struct rio_info {                                  42 struct rio_info {
 47         int mode;               /* Intr or pol     43         int mode;               /* Intr or polled, word/byte */
 48         spinlock_t RIOIntrSem;  /* Interrupt t     44         spinlock_t RIOIntrSem;  /* Interrupt thread sem */
 49         int current_chan;       /* current cha     45         int current_chan;       /* current channel */
 50         int RIOFailed;          /* Not initial     46         int RIOFailed;          /* Not initialised ? */
 51         int RIOInstallAttempts; /* no. of rio-     47         int RIOInstallAttempts; /* no. of rio-install() calls */
 52         int RIOLastPCISearch;   /* status of l     48         int RIOLastPCISearch;   /* status of last search */
 53         int RIONumHosts;        /* Number of R     49         int RIONumHosts;        /* Number of RIO Hosts */
 54         struct Host *RIOHosts;  /* RIO Host va     50         struct Host *RIOHosts;  /* RIO Host values */
 55         struct Port **RIOPortp; /* RIO port va     51         struct Port **RIOPortp; /* RIO port values */
 56 /*                                                 52 /*
 57 ** 02.03.1999 ARG - ESIL 0820 fix                  53 ** 02.03.1999 ARG - ESIL 0820 fix
 58 ** We no longer use RIOBootMode                    54 ** We no longer use RIOBootMode
 59 **                                                 55 **
 60         int                     RIOBootMode;       56         int                     RIOBootMode;            * RIO boot mode *
 61 **                                                 57 **
 62 */                                                 58 */
 63         int RIOPrintDisabled;   /* RIO printin     59         int RIOPrintDisabled;   /* RIO printing disabled ? */
 64         int RIOPrintLogState;   /* RIO printin     60         int RIOPrintLogState;   /* RIO printing state ? */
 65         int RIOPolling;         /* Polling ? *     61         int RIOPolling;         /* Polling ? */
 66 /*                                                 62 /*
 67 ** 09.12.1998 ARG - ESIL 0776 part fix             63 ** 09.12.1998 ARG - ESIL 0776 part fix
 68 ** The 'RIO_QUICK_CHECK' ioctl was using RIOHa     64 ** The 'RIO_QUICK_CHECK' ioctl was using RIOHalted.
 69 ** The fix for this ESIL introduces another me     65 ** The fix for this ESIL introduces another member (RIORtaDisCons) here to be
 70 ** updated in RIOConCon() - to keep track of R     66 ** updated in RIOConCon() - to keep track of RTA connections/disconnections.
 71 ** 'RIO_QUICK_CHECK' now returns the value of      67 ** 'RIO_QUICK_CHECK' now returns the value of RIORtaDisCons.
 72 */                                                 68 */
 73         int RIOHalted;          /* halted ? */     69         int RIOHalted;          /* halted ? */
 74         int RIORtaDisCons;      /* RTA connect     70         int RIORtaDisCons;      /* RTA connections/disconnections */
 75         unsigned int RIOReadCheck;      /* Rio     71         unsigned int RIOReadCheck;      /* Rio read check */
 76         unsigned int RIONoMessage;      /* To      72         unsigned int RIONoMessage;      /* To display message or not */
 77         unsigned int RIONumBootPkts;    /* how     73         unsigned int RIONumBootPkts;    /* how many packets for an RTA */
 78         unsigned int RIOBootCount;      /* siz     74         unsigned int RIOBootCount;      /* size of RTA code */
 79         unsigned int RIOBooting;        /* cou     75         unsigned int RIOBooting;        /* count of outstanding boots */
 80         unsigned int RIOSystemUp;       /* Boo     76         unsigned int RIOSystemUp;       /* Booted ?? */
 81         unsigned int RIOCounting;       /* for     77         unsigned int RIOCounting;       /* for counting interrupts */
 82         unsigned int RIOIntCount;       /* # o     78         unsigned int RIOIntCount;       /* # of intr since last check */
 83         unsigned int RIOTxCount;        /* num     79         unsigned int RIOTxCount;        /* number of xmit intrs  */
 84         unsigned int RIORxCount;        /* num     80         unsigned int RIORxCount;        /* number of rx intrs */
 85         unsigned int RIORupCount;       /* num     81         unsigned int RIORupCount;       /* number of rup intrs */
 86         int RIXTimer;                              82         int RIXTimer;
 87         int RIOBufferSize;      /* Buffersize      83         int RIOBufferSize;      /* Buffersize */
 88         int RIOBufferMask;      /* Buffersize      84         int RIOBufferMask;      /* Buffersize */
 89                                                    85 
 90         int RIOFirstMajor;      /* First host      86         int RIOFirstMajor;      /* First host card's major no */
 91                                                    87 
 92         unsigned int RIOLastPortsMapped;           88         unsigned int RIOLastPortsMapped;        /* highest port number known */
 93         unsigned int RIOFirstPortsMapped;          89         unsigned int RIOFirstPortsMapped;       /* lowest port number known */
 94                                                    90 
 95         unsigned int RIOLastPortsBooted;           91         unsigned int RIOLastPortsBooted;        /* highest port number running */
 96         unsigned int RIOFirstPortsBooted;          92         unsigned int RIOFirstPortsBooted;       /* lowest port number running */
 97                                                    93 
 98         unsigned int RIOLastPortsOpened;           94         unsigned int RIOLastPortsOpened;        /* highest port number running */
 99         unsigned int RIOFirstPortsOpened;          95         unsigned int RIOFirstPortsOpened;       /* lowest port number running */
100                                                    96 
101         /* Flag to say that the topology infor     97         /* Flag to say that the topology information has been changed. */
102         unsigned int RIOQuickCheck;                98         unsigned int RIOQuickCheck;
103         unsigned int CdRegister;        /* ???     99         unsigned int CdRegister;        /* ??? */
104         int RIOSignalProcess;   /* Signalling     100         int RIOSignalProcess;   /* Signalling process */
105         int rio_debug;          /* To debug ..    101         int rio_debug;          /* To debug ... */
106         int RIODebugWait;       /* For what ??    102         int RIODebugWait;       /* For what ??? */
107         int tpri;               /* Thread prio    103         int tpri;               /* Thread prio */
108         int tid;                /* Thread id *    104         int tid;                /* Thread id */
109         unsigned int _RIO_Polled;       /* Cou    105         unsigned int _RIO_Polled;       /* Counter for polling */
110         unsigned int _RIO_Interrupted;  /* Cou    106         unsigned int _RIO_Interrupted;  /* Counter for interrupt */
111         int intr_tid;           /* iointset re    107         int intr_tid;           /* iointset return value */
112         int TxEnSem;            /* TxEnable Se    108         int TxEnSem;            /* TxEnable Semaphore */
113                                                   109 
114                                                   110 
115         struct Error RIOError;  /* to Identify    111         struct Error RIOError;  /* to Identify what went wrong */
116         struct Conf RIOConf;    /* Configurati    112         struct Conf RIOConf;    /* Configuration ??? */
117         struct ttystatics channel[RIO_PORTS];     113         struct ttystatics channel[RIO_PORTS];   /* channel information */
118         char RIOBootPackets[1 + (SIXTY_FOUR_K     114         char RIOBootPackets[1 + (SIXTY_FOUR_K / RTA_BOOT_DATA_SIZE)]
119             [RTA_BOOT_DATA_SIZE];                 115             [RTA_BOOT_DATA_SIZE];
120         struct Map RIOConnectTable[TOTAL_MAP_E    116         struct Map RIOConnectTable[TOTAL_MAP_ENTRIES];
121         struct Map RIOSavedTable[TOTAL_MAP_ENT    117         struct Map RIOSavedTable[TOTAL_MAP_ENTRIES];
122                                                   118 
123         /* RTA to host binding table for maste    119         /* RTA to host binding table for master/slave operation */
124         unsigned long RIOBindTab[MAX_RTA_BINDI    120         unsigned long RIOBindTab[MAX_RTA_BINDINGS];
125         /* RTA memory dump variable */            121         /* RTA memory dump variable */
126         unsigned char RIOMemDump[MEMDUMP_SIZE]    122         unsigned char RIOMemDump[MEMDUMP_SIZE];
127         struct ModuleInfo RIOModuleTypes[MAX_M    123         struct ModuleInfo RIOModuleTypes[MAX_MODULE_TYPES];
128                                                   124 
129 };                                                125 };
130                                                   126 
131                                                   127 
132 #ifdef linux                                      128 #ifdef linux
133 #define debug(x)        printk x                  129 #define debug(x)        printk x
134 #else                                             130 #else
135 #define debug(x)        kkprintf x                131 #define debug(x)        kkprintf x
136 #endif                                            132 #endif
137                                                   133 
138                                                   134 
139                                                   135 
140 #define RIO_RESET_INT   0x7d80                    136 #define RIO_RESET_INT   0x7d80
141                                                   137 
142 #endif                          /* __riodrvr.h    138 #endif                          /* __riodrvr.h */
143                                                   139 
  This page was automatically generated by the LXR engine.