xref: /utopia/UTPA2-700.0.x/modules/dscmb/api/nsk2hdi/ndstypes.h (revision 53ee8cc121a030b8d368113ac3e966b4705770ef)
1 /*
2 Copyright (c) NDS Limited 2010
3 
4   P R O P R I E T A R Y & C O N F I D E N T I A L
5 
6     The copyright of this code and related documentation together with
7     any other associated intellectual property rights are vested in
8     NDS Limited and may not be used except in accordance with the terms
9     of the license that you have entered into with NDS Limited.
10     Use of this material without an express license from NDS Limited
11     shall be an infringement of copyright and any other intellectual
12     property rights that may be incorporated with this material.
13 
14 */
15 
16 #ifndef  H_NDSTYPES
17 #define  H_NDSTYPES
18 
19 /* This file contains the definitions of the standard NDS types */
20 
21 typedef  unsigned char        NDS_UBYTE;
22 typedef  unsigned short       NDS_USHORT;
23 typedef  unsigned int         NDS_ULONG;
24 typedef  unsigned char        NDS_BOOLEAN;
25 
26 typedef  unsigned int         NDS_STATUS32;//increase by Jeff
27 
28 typedef  NDS_USHORT           NDS_STATUS;
29 
30 #define STATUS_OK             (NDS_STATUS)0
31 #define STATUS_FAIL           (NDS_STATUS)1
32 
33 #define NDS_TRUE              (NDS_BOOLEAN)1
34 #define NDS_FALSE             (NDS_BOOLEAN)0
35 
36 /* the following definitions are obsolete and are included for
37 backward compatibility purpose only */
38 typedef  unsigned char        NDS_BYTE;    /* obsolete */
39 typedef  NDS_BOOLEAN          NBOOL;       /* obsolete */
40 
41 #endif /* H_NDSTYPES */
42