Merge pull request #163 from cloudswei/ctlframe_injection
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / adf / adf_os_types_pvt.h
index 38921f3e3073e6a4eb065a9ee3dd9a6ae6205623..5ff6a1cbabf27f39c7d30cbcef0943c10f9a0b58 100755 (executable)
@@ -1,3 +1,37 @@
+/*
+ * Copyright (c) 2013 Qualcomm Atheros, Inc.
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted (subject to the limitations in the
+ * disclaimer below) provided that the following conditions are met:
+ *
+ *  * Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ *  * Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in the
+ *    documentation and/or other materials provided with the
+ *    distribution.
+ *
+ *  * Neither the name of Qualcomm Atheros nor the names of its
+ *    contributors may be used to endorse or promote products derived
+ *    from this software without specific prior written permission.
+ *
+ * NO EXPRESS OR IMPLIED LICENSES TO ANY PARTY'S PATENT RIGHTS ARE
+ * GRANTED BY THIS LICENSE.  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT
+ * HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
+ * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
+ * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
+ * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
+ * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
 #ifndef __ADF_OS_TYPES_PVT_H
 #define __ADF_OS_TYPES_PVT_H
 
 /**
  * CACHE-SYNC (DMA)
  */
-#define __ADF_SYNC_PREREAD         0 
+#define __ADF_SYNC_PREREAD         0
 #define __ADF_SYNC_POSTREAD               1
 #define __ADF_SYNC_PREWRITE               2
 #define __ADF_SYNC_POSTWRITE      3
 
 #define __ADF_OS_DMA_TO_DEVICE     0
-#define __ADF_OS_DMA_FROM_DEVICE   1 
-      
+#define __ADF_OS_DMA_FROM_DEVICE   1
+
 
 struct __adf_softc;
 
@@ -52,24 +86,24 @@ enum __adf_net_wireless_evcode{
     __ADF_IEEE80211_SCAN = 105,
     __ADF_IEEE80211_REPLAY = 106,
     __ADF_IEEE80211_MICHAEL = 107,
-    __ADF_IEEE80211_REJOIN = 108, 
+    __ADF_IEEE80211_REJOIN = 108,
     __ADF_CUSTOM_PUSH_BUTTON = 109,
 };
 
 /* generic data types */
 struct __adf_device  {
-int dummy;    
-}; 
+int dummy;
+};
 
 typedef struct __adf_device *__adf_os_device_t;
 
 
 struct __adf_dma_map {
     VBUF *buf;
-    
+
     A_UINT32 *ds_addr;
     A_UINT16 ds_len;
-}; 
+};
 
 typedef struct __adf_dma_map *__adf_os_dma_map_t;
 
@@ -82,23 +116,23 @@ typedef int             __adf_os_off_t;
 #define __adf_os_iomem_t
 
 #if 0
-typedef int           __a_uint8_t;    
-typedef int            __a_int8_t;     
-typedef int          __a_uint16_t;   
-typedef int           __a_int16_t;    
-typedef int          __a_uint32_t;   
-typedef int           __a_int32_t;    
-typedef int          __a_uint64_t;   
-typedef int           __a_int64_t; 
+typedef int           __a_uint8_t;
+typedef int            __a_int8_t;
+typedef int          __a_uint16_t;
+typedef int           __a_int16_t;
+typedef int          __a_uint32_t;
+typedef int           __a_int32_t;
+typedef int          __a_uint64_t;
+typedef int           __a_int64_t;
 #else
 typedef A_UINT8           __a_uint8_t;
-typedef A_INT8            __a_int8_t;     
-typedef A_UINT16          __a_uint16_t;   
-typedef A_INT16          __a_int16_t;    
-typedef A_UINT32          __a_uint32_t;   
-typedef A_INT32          __a_int32_t;    
-typedef A_UINT64          __a_uint64_t;   
-typedef A_INT64           __a_int64_t;    
+typedef A_INT8            __a_int8_t;
+typedef A_UINT16          __a_uint16_t;
+typedef A_INT16          __a_int16_t;
+typedef A_UINT32          __a_uint32_t;
+typedef A_INT32          __a_int32_t;
+typedef A_UINT64          __a_uint64_t;
+typedef A_INT64           __a_int64_t;
 
 typedef A_UINT32            u_int32_t;
 typedef A_UINT16            u_int16_t;
@@ -116,7 +150,7 @@ typedef A_UINT64            u_int64_t;
 //#define __adf_os_print        my_printf
 #define __adf_os_print          A_PRINTF
 
-#if 1  
+#if 1
 #if defined(__XCC__)
 #include "stdarg.h"
 #define __va_list __gnuc_va_list