remove all trailing whitespaces in one run
[librecmc/open-ath9k-htc-firmware.git] / target_firmware / wlan / include / wmi.h
index bf68eda1a773a948bc9440958f86310206bafa85..194c38ebedb15fc54833ff6464691d1367f6f1ac 100755 (executable)
@@ -1,7 +1,39 @@
 /*
- * Copyright (c) 2004-2006 Atheros Communications Inc.
+ * 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.
+ */
+
+/*
  * This file contains the definitions of the WMI protocol specified in the
  * Wireless Module Interface (WMI).  It includes definitions of all the
  * commands and events. Commands are messages from the host to the WM.
@@ -12,7 +44,6 @@
  * parameters for value, proper range, or any other checking.
  *
  * $Id: //depot/sw/branches/fusion_usb/target_firmware/wlan/include/wmi.h#6 $
- *
  */
 
 #ifndef _WMI_H_
@@ -72,13 +103,13 @@ typedef enum {
 
 
 typedef PREPACK struct {
-    a_int8_t      rssi;            
+    a_int8_t      rssi;
     a_uint8_t     info;            /* WMI_MSG_TYPE in lower 2 bits - b1b0 */
                                  /* UP in next 3 bits - b4b3b2 */
 #define WMI_DATA_HDR_MSG_TYPE_MASK  0x03
 #define WMI_DATA_HDR_MSG_TYPE_SHIFT 0
 #define WMI_DATA_HDR_UP_MASK        0x07
-#define WMI_DATA_HDR_UP_SHIFT       2   
+#define WMI_DATA_HDR_UP_SHIFT       2
 #define WMI_DATA_HDR_IS_MSG_TYPE(h, t)  (((h)->info & (WMI_DATA_HDR_MSG_TYPE_MASK)) == (t))
 } POSTPACK WMI_DATA_HDR;
 
@@ -131,6 +162,7 @@ typedef enum {
     WMI_TX_STATS_CMDID,
     WMI_RX_STATS_CMDID,
     WMI_BITRATE_MASK_CMDID,
+    WMI_REG_RMW_CMDID,
 } WMI_COMMAND_ID;
 
 /*
@@ -142,7 +174,7 @@ typedef enum {
     WMI_FRAME_PROBE_RESP,
     WMI_FRAME_ASSOC_REQ,
     WMI_FRAME_ASSOC_RESP,
-    WMI_NUM_MGMT_FRAME 
+    WMI_NUM_MGMT_FRAME
 } WMI_MGMT_FRAME_TYPE;
 
 /*
@@ -162,7 +194,7 @@ typedef enum {
 } DOT11_AUTH_MODE;
 
 typedef enum {
-    NONE_AUTH           = 0x01, 
+    NONE_AUTH           = 0x01,
     WPA_AUTH            = 0x02,
     WPA_PSK_AUTH        = 0x03,
     WPA2_AUTH           = 0x04,
@@ -258,6 +290,12 @@ typedef PREPACK struct {
        __WMI_TXSTATUS_EVENT txstatus[HTC_MAX_TX_STATUS];
 } POSTPACK WMI_TXSTATUS_EVENT;
 
+struct register_rmw {
+       a_uint32_t reg;
+       a_uint32_t set;
+       a_uint32_t clr;
+};
+
 #ifndef ATH_TARGET
 //#include "athendpack.h"
 #endif