source: SVN/cambria/redboot/packages/devs/eth/intel/npe/common/current/include/ix_types.h @ 1

Last change on this file since 1 was 1, checked in by Tim Harvey, 2 years ago

restored latest version of files from server backup

Signed-off-by: Tim Harvey <tharvey@…>

File size: 4.6 KB
Line 
1/**
2 * ============================================================================
3 * = COPYRIGHT
4 *
5 * @par
6 * IXP400 SW Release version 2.3
7 *
8 * -- Copyright Notice --
9 *
10 * @par
11 * Copyright (c) 2001-2005, Intel Corporation.
12 * All rights reserved.
13 *
14 * @par
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
17 * are met:
18 * 1. Redistributions of source code must retain the above copyright
19 *    notice, this list of conditions and the following disclaimer.
20 * 2. Redistributions in binary form must reproduce the above copyright
21 *    notice, this list of conditions and the following disclaimer in the
22 *    documentation and/or other materials provided with the distribution.
23 * 3. Neither the name of the Intel Corporation nor the names of its contributors
24 *    may be used to endorse or promote products derived from this software
25 *    without specific prior written permission.
26 *
27 *
28 * @par
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
30 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
40 *
41 *
42 * @par
43 * -- End of Copyright Notice --
44 * = PRODUCT
45 *      Intel(r) IXP400 Software Release
46 *
47 * = FILENAME
48 *      ix_types.h
49 *
50 * = DESCRIPTION
51 *      This file will define generic types that will guarantee the protability
52 *      between different architectures and compilers. It should be used the entire
53 *      IXA SDK Framework API.
54 *
55 * = AUTHOR
56 *      Intel Corporation
57 *
58 * = CHANGE HISTORY
59 *      4/22/2002 4:44:17 PM - creation time
60 * ============================================================================
61 */
62
63#if !defined(__IX_TYPES_H__)
64#define __IX_TYPES_H__
65
66
67#if defined(__cplusplus)
68extern "C"
69{
70#endif /* end defined(__cplusplus) */
71
72
73/**
74 * Define generic integral data types that will guarantee the size.
75 */
76
77/**
78 * TYPENAME: ix_int8
79 *
80 * DESCRIPTION: This type defines an 8 bit signed integer value.
81 *
82 */
83typedef signed char ix_int8;
84
85
86/**
87 * TYPENAME: ix_uint8
88 *
89 * DESCRIPTION: This type defines an 8 bit unsigned integer value.
90 *
91 */
92typedef unsigned char ix_uint8;
93
94
95/**
96 * TYPENAME: ix_int16
97 *
98 * DESCRIPTION: This type defines an 16 bit signed integer value.
99 *
100 */
101typedef signed short int ix_int16;
102
103
104/**
105 * TYPENAME: ix_uint16
106 *
107 * DESCRIPTION: This type defines an 16 bit unsigned integer value.
108 *
109 */
110typedef unsigned short int ix_uint16;
111
112
113/**
114 * TYPENAME: ix_int32
115 *
116 * DESCRIPTION: This type defines an 32 bit signed integer value.
117 *
118 */
119typedef signed int ix_int32;
120
121
122/**
123 * TYPENAME: ix_uint32
124 *
125 * DESCRIPTION: This type defines an 32 bit unsigned integer value.
126 *
127 */
128#ifndef __wince
129typedef unsigned int ix_uint32;
130#else
131typedef unsigned long ix_uint32;
132#endif
133
134/**
135 * TYPENAME: ix_int64
136 *
137 * DESCRIPTION: This type defines an 64 bit signed integer value.
138 *
139 */
140#ifndef __wince
141__extension__ typedef signed long long int ix_int64;
142#endif
143
144/**
145 * TYPENAME: ix_uint64
146 *
147 * DESCRIPTION: This type defines an 64 bit unsigned integer value.
148 *
149 */
150#ifndef __wince
151__extension__ typedef unsigned long long int ix_uint64;
152#endif
153
154
155/**
156 * TYPENAME: ix_bit_mask8
157 *
158 * DESCRIPTION: This is a generic type for a 8 bit mask.
159 */
160typedef ix_uint8 ix_bit_mask8;
161
162
163/**
164 * TYPENAME: ix_bit_mask16
165 *
166 * DESCRIPTION: This is a generic type for a 16 bit mask.
167 */
168typedef ix_uint16 ix_bit_mask16;
169
170
171/**
172 * TYPENAME: ix_bit_mask32
173 *
174 * DESCRIPTION: This is a generic type for a 32 bit mask.
175 */
176typedef ix_uint32 ix_bit_mask32;
177
178
179/**
180 * TYPENAME: ix_bit_mask64
181 *
182 * DESCRIPTION: This is a generic type for a 64 bit mask.
183 */
184#ifndef __wince
185typedef ix_uint64 ix_bit_mask64;
186#endif
187
188
189/**
190 * TYPENAME: ix_handle
191 *
192 * DESCRIPTION: This type defines a generic handle.
193 *
194 */
195typedef ix_uint32 ix_handle;
196
197
198
199/**
200 * DESCRIPTION: This symbol defines a NULL handle
201 *
202 */
203#define IX_NULL_HANDLE   ((ix_handle)0)
204
205
206#if defined(__cplusplus)
207}
208#endif /* end defined(__cplusplus) */
209
210#endif /* end !defined(__IX_TYPES_H__) */
Note: See TracBrowser for help on using the repository browser.