Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / inc / dt_defs.h
1 /*************************************************************************/
2 /*  Copyright (c) 2006 Atheros Communications, Inc., All Rights Reserved */
3 /*                                                                       */
4 /*  Module Name : dt_defs.h                                              */
5 /*                                                                       */
6 /*  Abstract                                                             */
7 /*      This file contains the common data structure definition.             */
8 /*                                                                       */
9 /*  NOTES                                                                */
10 /*      None                                                             */
11 /*                                                                       */
12 /*************************************************************************/
13
14 #ifndef _DT_DEFS_H_
15 #define _DT_DEFS_H_
16
17 #ifndef LOCAL
18 #define LOCAL   static
19 #endif
20
21 /* data type definition */
22 typedef unsigned long   uint32_t;
23 typedef unsigned short  uint16_t;
24 typedef unsigned char   uint8_t;
25
26 typedef signed long     int32_t;
27 typedef signed short    int16_t;
28 typedef signed char     int8_t;
29
30 typedef uint16_t                BOOLEAN;
31
32 // Ray for porting
33 /* Basic data type */
34 #define u32_t   unsigned long
35 #define s32_t   signed long
36 #define u16_t   unsigned short
37 #define s16_t   signed short
38 #define u8_t    unsigned char
39 #define s8_t    signed char
40
41 #define ptrData uint8_t *
42
43 /* marco definition */
44 //#define SIZE_HASH_BUFFER       128
45
46 #ifndef TRUE
47 #define TRUE    (0==0)
48 #endif
49
50 #ifndef FALSE
51 #define FALSE   (0!=0)
52 #endif
53
54 #ifndef NULL
55 #define NULL    0x0
56 #endif
57
58 #define BIT0    (1<<0)
59 #define BIT1    (1<<1)
60 #define BIT2    (1<<2)
61 #define BIT3    (1<<3)
62 #define BIT4    (1<<4)
63 #define BIT5    (1<<5)
64 #define BIT6    (1<<6)
65 #define BIT7    (1<<7)
66 #define BIT8    (1<<8)
67 #define BIT9    (1<<9)
68 #define BIT10   (1<<10)
69 #define BIT11   (1<<11)
70 #define BIT12   (1<<12)
71 #define BIT13   (1<<13)
72 #define BIT14   (1<<14)
73 #define BIT15   (1<<15)
74 #define BIT16    (1<<16)
75 #define BIT17    (1<<17)
76 #define BIT18    (1<<18)
77 #define BIT19    (1<<19)
78 #define BIT20    (1<<20)
79 #define BIT21    (1<<21)
80 #define BIT22    (1<<22)
81 #define BIT23    (1<<23)
82 #define BIT24    (1<<24)
83 #define BIT25    (1<<25)
84 #define BIT26   (1<<26)
85 #define BIT27   (1<<27)
86 #define BIT28   (1<<28)
87 #define BIT29   (1<<29)
88 #define BIT30   (1<<30)
89 #define BIT31   (1<<31)
90
91 #endif
92