2 * ============================================================================
6 * IXP400 SW Release version 2.0
8 * -- Copyright Notice --
11 * Copyright 2001-2005, Intel Corporation.
12 * All rights reserved.
15 * SPDX-License-Identifier: BSD-3-Clause
17 * -- End of Copyright Notice --
19 * Intel(r) IXP425 Software Release
25 * This file will define generic types that will guarantee the protability
26 * between different architectures and compilers. It should be used the entire
27 * IXA SDK Framework API.
33 * 4/22/2002 4:44:17 PM - creation time
34 * ============================================================================
37 #if !defined(__IX_TYPES_H__)
38 #define __IX_TYPES_H__
41 #if defined(__cplusplus)
44 #endif /* end defined(__cplusplus) */
48 * Define generic integral data types that will guarantee the size.
54 * DESCRIPTION: This type defines an 8 bit signed integer value.
57 typedef signed char ix_int8;
63 * DESCRIPTION: This type defines an 8 bit unsigned integer value.
66 typedef unsigned char ix_uint8;
72 * DESCRIPTION: This type defines an 16 bit signed integer value.
75 typedef signed short int ix_int16;
81 * DESCRIPTION: This type defines an 16 bit unsigned integer value.
84 typedef unsigned short int ix_uint16;
90 * DESCRIPTION: This type defines an 32 bit signed integer value.
93 typedef signed int ix_int32;
99 * DESCRIPTION: This type defines an 32 bit unsigned integer value.
103 typedef unsigned int ix_uint32;
105 typedef unsigned long ix_uint32;
111 * DESCRIPTION: This type defines an 64 bit signed integer value.
115 __extension__ typedef signed long long int ix_int64;
119 * TYPENAME: ix_uint64
121 * DESCRIPTION: This type defines an 64 bit unsigned integer value.
125 __extension__ typedef unsigned long long int ix_uint64;
130 * TYPENAME: ix_bit_mask8
132 * DESCRIPTION: This is a generic type for a 8 bit mask.
134 typedef ix_uint8 ix_bit_mask8;
138 * TYPENAME: ix_bit_mask16
140 * DESCRIPTION: This is a generic type for a 16 bit mask.
142 typedef ix_uint16 ix_bit_mask16;
146 * TYPENAME: ix_bit_mask32
148 * DESCRIPTION: This is a generic type for a 32 bit mask.
150 typedef ix_uint32 ix_bit_mask32;
154 * TYPENAME: ix_bit_mask64
156 * DESCRIPTION: This is a generic type for a 64 bit mask.
159 typedef ix_uint64 ix_bit_mask64;
164 * TYPENAME: ix_handle
166 * DESCRIPTION: This type defines a generic handle.
169 typedef ix_uint32 ix_handle;
174 * DESCRIPTION: This symbol defines a NULL handle
177 #define IX_NULL_HANDLE ((ix_handle)0)
180 #if defined(__cplusplus)
182 #endif /* end defined(__cplusplus) */
184 #endif /* end !defined(__IX_TYPES_H__) */