]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - drivers/net/npe/include/ix_types.h
Merge 'u-boot-microblaze/zynq' into (u-boot-arm/master'
[karo-tx-uboot.git] / drivers / net / npe / include / ix_types.h
1 /**
2  * ============================================================================
3  * = COPYRIGHT
4  * 
5  * @par
6  * IXP400 SW Release version 2.0
7  * 
8  * -- Copyright Notice --
9  * 
10  * @par
11  * Copyright 2001-2005, Intel Corporation.
12  * All rights reserved.
13  * 
14  * @par
15  * SPDX-License-Identifier:     BSD-3-Clause
16  * @par
17  * -- End of Copyright Notice --
18  * = PRODUCT
19  *      Intel(r) IXP425 Software Release
20  *
21  * = FILENAME
22  *      ix_types.h
23  *
24  * = DESCRIPTION
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.
28  *
29  * = AUTHOR
30  *      Intel Corporation
31  *
32  * = CHANGE HISTORY
33  *      4/22/2002 4:44:17 PM - creation time 
34  * ============================================================================
35  */
36
37 #if !defined(__IX_TYPES_H__)
38 #define __IX_TYPES_H__
39
40
41 #if defined(__cplusplus)
42 extern "C"
43 {
44 #endif /* end defined(__cplusplus) */
45
46
47 /**
48  * Define generic integral data types that will guarantee the size.
49  */
50
51 /**
52  * TYPENAME: ix_int8
53  * 
54  * DESCRIPTION: This type defines an 8 bit signed integer value.
55  *
56  */
57 typedef signed char ix_int8;
58
59
60 /**
61  * TYPENAME: ix_uint8
62  * 
63  * DESCRIPTION: This type defines an 8 bit unsigned integer value.
64  *
65  */
66 typedef unsigned char ix_uint8;
67
68
69 /**
70  * TYPENAME: ix_int16
71  * 
72  * DESCRIPTION: This type defines an 16 bit signed integer value.
73  *
74  */
75 typedef signed short int ix_int16;
76
77
78 /**
79  * TYPENAME: ix_uint16
80  * 
81  * DESCRIPTION: This type defines an 16 bit unsigned integer value.
82  *
83  */
84 typedef unsigned short int ix_uint16;
85
86
87 /**
88  * TYPENAME: ix_int32
89  * 
90  * DESCRIPTION: This type defines an 32 bit signed integer value.
91  *
92  */
93 typedef signed int ix_int32;
94
95
96 /**
97  * TYPENAME: ix_uint32
98  * 
99  * DESCRIPTION: This type defines an 32 bit unsigned integer value.
100  *
101  */
102 #ifndef __wince
103 typedef unsigned int ix_uint32;
104 #else
105 typedef unsigned long ix_uint32;
106 #endif
107
108 /**
109  * TYPENAME: ix_int64
110  * 
111  * DESCRIPTION: This type defines an 64 bit signed integer value.
112  *
113  */
114 #ifndef __wince
115 __extension__ typedef signed long long int ix_int64;
116 #endif
117
118 /**
119  * TYPENAME: ix_uint64
120  * 
121  * DESCRIPTION: This type defines an 64 bit unsigned integer value.
122  *
123  */
124 #ifndef __wince
125 __extension__ typedef unsigned long long int ix_uint64;
126 #endif
127
128
129 /**
130  * TYPENAME: ix_bit_mask8
131  * 
132  * DESCRIPTION: This is a generic type for a 8 bit mask. 
133  */
134 typedef ix_uint8 ix_bit_mask8;
135
136
137 /**
138  * TYPENAME: ix_bit_mask16
139  * 
140  * DESCRIPTION: This is a generic type for a 16 bit mask. 
141  */
142 typedef ix_uint16 ix_bit_mask16;
143
144
145 /**
146  * TYPENAME: ix_bit_mask32
147  * 
148  * DESCRIPTION: This is a generic type for a 32 bit mask. 
149  */
150 typedef ix_uint32 ix_bit_mask32;
151
152
153 /**
154  * TYPENAME: ix_bit_mask64
155  * 
156  * DESCRIPTION: This is a generic type for a 64 bit mask. 
157  */
158 #ifndef __wince
159 typedef ix_uint64 ix_bit_mask64;
160 #endif
161
162
163 /**
164  * TYPENAME: ix_handle
165  * 
166  * DESCRIPTION: This type defines a generic handle.
167  *
168  */
169 typedef ix_uint32 ix_handle;
170
171
172
173 /**
174  * DESCRIPTION: This symbol defines a NULL handle
175  *
176  */
177 #define IX_NULL_HANDLE   ((ix_handle)0) 
178
179
180 #if defined(__cplusplus)
181 }
182 #endif /* end defined(__cplusplus) */
183
184 #endif /* end !defined(__IX_TYPES_H__) */