2 * ============================================================================
6 * IXP400 SW Release version 2.0
8 * -- Copyright Notice --
11 * Copyright 2001-2005, Intel Corporation.
12 * All rights reserved.
15 * Redistribution and use in source and binary forms, with or without
16 * modification, are permitted provided that the following conditions
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.
28 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
29 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
32 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
33 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
34 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
35 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
36 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
37 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
41 * -- End of Copyright Notice --
43 * Intel(r) IXP425 Software Release
49 * This file will define generic types that will guarantee the protability
50 * between different architectures and compilers. It should be used the entire
51 * IXA SDK Framework API.
57 * 4/22/2002 4:44:17 PM - creation time
58 * ============================================================================
61 #if !defined(__IX_TYPES_H__)
62 #define __IX_TYPES_H__
65 #if defined(__cplusplus)
68 #endif /* end defined(__cplusplus) */
72 * Define generic integral data types that will guarantee the size.
78 * DESCRIPTION: This type defines an 8 bit signed integer value.
81 typedef signed char ix_int8;
87 * DESCRIPTION: This type defines an 8 bit unsigned integer value.
90 typedef unsigned char ix_uint8;
96 * DESCRIPTION: This type defines an 16 bit signed integer value.
99 typedef signed short int ix_int16;
103 * TYPENAME: ix_uint16
105 * DESCRIPTION: This type defines an 16 bit unsigned integer value.
108 typedef unsigned short int ix_uint16;
114 * DESCRIPTION: This type defines an 32 bit signed integer value.
117 typedef signed int ix_int32;
121 * TYPENAME: ix_uint32
123 * DESCRIPTION: This type defines an 32 bit unsigned integer value.
127 typedef unsigned int ix_uint32;
129 typedef unsigned long ix_uint32;
135 * DESCRIPTION: This type defines an 64 bit signed integer value.
139 __extension__ typedef signed long long int ix_int64;
143 * TYPENAME: ix_uint64
145 * DESCRIPTION: This type defines an 64 bit unsigned integer value.
149 __extension__ typedef unsigned long long int ix_uint64;
154 * TYPENAME: ix_bit_mask8
156 * DESCRIPTION: This is a generic type for a 8 bit mask.
158 typedef ix_uint8 ix_bit_mask8;
162 * TYPENAME: ix_bit_mask16
164 * DESCRIPTION: This is a generic type for a 16 bit mask.
166 typedef ix_uint16 ix_bit_mask16;
170 * TYPENAME: ix_bit_mask32
172 * DESCRIPTION: This is a generic type for a 32 bit mask.
174 typedef ix_uint32 ix_bit_mask32;
178 * TYPENAME: ix_bit_mask64
180 * DESCRIPTION: This is a generic type for a 64 bit mask.
183 typedef ix_uint64 ix_bit_mask64;
188 * TYPENAME: ix_handle
190 * DESCRIPTION: This type defines a generic handle.
193 typedef ix_uint32 ix_handle;
198 * DESCRIPTION: This symbol defines a NULL handle
201 #define IX_NULL_HANDLE ((ix_handle)0)
204 #if defined(__cplusplus)
206 #endif /* end defined(__cplusplus) */
208 #endif /* end !defined(__IX_TYPES_H__) */