ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.6.tar.bz2
[linux-2.6.git] / drivers / char / rio / riotypes.h
1 /****************************************************************************
2  *******                                                              *******
3  *******                      R I O T Y P E S
4  *******                                                              *******
5  ****************************************************************************
6
7  Author  : Jon Brawn
8  Date    :
9
10  *
11  *  (C) 1990 - 2000 Specialix International Ltd., Byfleet, Surrey, UK.
12  *
13  *      This program is free software; you can redistribute it and/or modify
14  *      it under the terms of the GNU General Public License as published by
15  *      the Free Software Foundation; either version 2 of the License, or
16  *      (at your option) any later version.
17  *
18  *      This program is distributed in the hope that it will be useful,
19  *      but WITHOUT ANY WARRANTY; without even the implied warranty of
20  *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21  *      GNU General Public License for more details.
22  *
23  *      You should have received a copy of the GNU General Public License
24  *      along with this program; if not, write to the Free Software
25  *      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
26
27  Version : 0.01
28
29
30                             Mods
31  ----------------------------------------------------------------------------
32   Date     By                Description
33  ----------------------------------------------------------------------------
34
35  ***************************************************************************/
36
37 #ifndef _riotypes_h
38 #define _riotypes_h 1
39
40 #ifdef SCCS_LABELS
41 #ifndef lint
42 /* static char *_rio_riotypes_h_sccs = "@(#)riotypes.h  1.10"; */
43 #endif
44 #endif
45
46 #ifdef INKERNEL
47
48 #if !defined(MIPSAT)
49 typedef unsigned short NUMBER_ptr;
50 typedef unsigned short WORD_ptr;
51 typedef unsigned short BYTE_ptr;
52 typedef unsigned short char_ptr;
53 typedef unsigned short Channel_ptr;
54 typedef unsigned short FREE_LIST_ptr_ptr;
55 typedef unsigned short FREE_LIST_ptr;
56 typedef unsigned short LPB_ptr;
57 typedef unsigned short Process_ptr;
58 typedef unsigned short PHB_ptr;
59 typedef unsigned short PKT_ptr;
60 typedef unsigned short PKT_ptr_ptr;
61 typedef unsigned short Q_BUF_ptr;
62 typedef unsigned short Q_BUF_ptr_ptr;
63 typedef unsigned short ROUTE_STR_ptr;
64 typedef unsigned short RUP_ptr;
65 typedef unsigned short short_ptr;
66 typedef unsigned short u_short_ptr;
67 typedef unsigned short ushort_ptr;
68 #else
69 /* MIPSAT types */
70 typedef char RIO_POINTER[8];
71 typedef RIO_POINTER NUMBER_ptr;
72 typedef RIO_POINTER WORD_ptr;
73 typedef RIO_POINTER BYTE_ptr;
74 typedef RIO_POINTER char_ptr;
75 typedef RIO_POINTER Channel_ptr;
76 typedef RIO_POINTER FREE_LIST_ptr_ptr;
77 typedef RIO_POINTER FREE_LIST_ptr;
78 typedef RIO_POINTER LPB_ptr;
79 typedef RIO_POINTER Process_ptr;
80 typedef RIO_POINTER PHB_ptr;
81 typedef RIO_POINTER PKT_ptr;
82 typedef RIO_POINTER PKT_ptr_ptr;
83 typedef RIO_POINTER Q_BUF_ptr;
84 typedef RIO_POINTER Q_BUF_ptr_ptr;
85 typedef RIO_POINTER ROUTE_STR_ptr;
86 typedef RIO_POINTER RUP_ptr;
87 typedef RIO_POINTER short_ptr;
88 typedef RIO_POINTER u_short_ptr;
89 typedef RIO_POINTER ushort_ptr;
90 #endif
91
92 #else /* not INKERNEL */
93 typedef unsigned char   BYTE;
94 typedef unsigned short  WORD;
95 typedef unsigned long   DWORD;
96 typedef short           NUMBER;
97 typedef short           *NUMBER_ptr;
98 typedef unsigned short  *WORD_ptr;
99 typedef unsigned char   *BYTE_ptr;
100 typedef unsigned char   uchar ;
101 typedef unsigned short  ushort ;
102 typedef unsigned int    uint ;
103 typedef unsigned long   ulong ;
104 typedef unsigned char   u_char ;
105 typedef unsigned short  u_short ;
106 typedef unsigned int    u_int ;
107 typedef unsigned long   u_long ;
108 typedef unsigned short  ERROR ;
109 typedef unsigned long ID ;
110 typedef char             *char_ptr;
111 typedef Channel          *Channel_ptr;
112 typedef struct FREE_LIST *FREE_LIST_ptr;
113 typedef struct FREE_LIST **FREE_LIST_ptr_ptr;
114 typedef struct LPB       *LPB_ptr;
115 typedef struct Process   *Process_ptr;
116 typedef struct PHB       *PHB_ptr;
117 typedef struct PKT       *PKT_ptr;
118 typedef struct PKT       **PKT_ptr_ptr;
119 typedef struct Q_BUF     *Q_BUF_ptr;
120 typedef struct Q_BUF     **Q_BUF_ptr_ptr;
121 typedef struct ROUTE_STR *ROUTE_STR_ptr;
122 typedef struct RUP       *RUP_ptr;
123 typedef short            *short_ptr;
124 typedef u_short          *u_short_ptr;
125 typedef ushort           *ushort_ptr;
126 typedef struct PKT       PKT;
127 typedef struct LPB       LPB;
128 typedef struct RUP       RUP;
129 #endif
130
131
132 #endif /* __riotypes__ */
133
134 /*********** end of file ***********/
135