1 #ifndef __ADF_OS_TYPES_PVT_H
2 #define __ADF_OS_TYPES_PVT_H
6 //#include "cmnos_api.h"
7 //#include "Magpie_api.h"
10 #define __ADF_OS_MAX_SCATTER 1
11 #define __adf_os_packed __attribute__((__packed__))
12 #define __ADF_OS_NAME_SIZE 10
15 * Private definitions of general data types
20 #undef ADF_LITTLE_ENDIAN_MACHINE
21 #undef ADF_BIG_ENDIAN_MACHINE
23 //#if (_BYTE_ORDER == _LITTLE_ENDIAN)
25 #define ADF_LITTLE_ENDIAN_MACHINE
26 //#elif (_BYTE_ORDER == _BIG_ENDIAN)
28 #define ADF_BIG_ENDIAN_MACHINE
34 #define __ADF_SYNC_PREREAD 0
35 #define __ADF_SYNC_POSTREAD 1
36 #define __ADF_SYNC_PREWRITE 2
37 #define __ADF_SYNC_POSTWRITE 3
39 #define __ADF_OS_DMA_TO_DEVICE 0
40 #define __ADF_OS_DMA_FROM_DEVICE 1
46 enum __adf_net_wireless_evcode{
47 __ADF_IEEE80211_ASSOC = 100,
48 __ADF_IEEE80211_REASSOC = 101,
49 __ADF_IEEE80211_DISASSOC = 102,
50 __ADF_IEEE80211_JOIN = 103,
51 __ADF_IEEE80211_LEAVE = 104,
52 __ADF_IEEE80211_SCAN = 105,
53 __ADF_IEEE80211_REPLAY = 106,
54 __ADF_IEEE80211_MICHAEL = 107,
55 __ADF_IEEE80211_REJOIN = 108,
56 __ADF_CUSTOM_PUSH_BUTTON = 109,
59 /* generic data types */
64 typedef struct __adf_device *__adf_os_device_t;
67 struct __adf_dma_map {
74 typedef struct __adf_dma_map *__adf_os_dma_map_t;
76 typedef A_UINT32 __adf_os_dma_addr_t;
77 typedef A_UINT32 __adf_os_dma_size_t;
79 typedef unsigned int __adf_os_size_t;
80 typedef int __adf_os_off_t;
82 #define __adf_os_iomem_t
85 typedef int __a_uint8_t;
86 typedef int __a_int8_t;
87 typedef int __a_uint16_t;
88 typedef int __a_int16_t;
89 typedef int __a_uint32_t;
90 typedef int __a_int32_t;
91 typedef int __a_uint64_t;
92 typedef int __a_int64_t;
94 typedef A_UINT8 __a_uint8_t;
95 typedef A_INT8 __a_int8_t;
96 typedef A_UINT16 __a_uint16_t;
97 typedef A_INT16 __a_int16_t;
98 typedef A_UINT32 __a_uint32_t;
99 typedef A_INT32 __a_int32_t;
100 typedef A_UINT64 __a_uint64_t;
101 typedef A_INT64 __a_int64_t;
103 typedef A_UINT32 u_int32_t;
104 typedef A_UINT16 u_int16_t;
105 typedef A_UINT8 u_int8_t;
106 typedef unsigned int u_int;
107 typedef unsigned long u_long;
108 //typedef __adf_os_size_t size_t;
110 typedef A_UINT64 u_int64_t;
114 //extern void my_printf(struct ath_hal *ah, const char* fmt, ...);
116 //#define __adf_os_print my_printf
117 #define __adf_os_print A_PRINTF
122 #define __va_list __gnuc_va_list
126 /* For compiling WLAN drivers */
133 #define EOPNOTSUPP -1
134 #define KASSERT(exp, msg)
138 #define __packed __attribute__((__packed__))
142 #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) /* to any y */