remove duplicate: romp_api.h
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / inc / k2 / Magpie_api.h
index d579ba1019f6a54d9df59578fa7a47d671ced33b..309336702cd5adcc37a6447febd74d8604aba535 100755 (executable)
@@ -1,19 +1,51 @@
+/*
+ * 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.
+ */
 /*
  * @File: Magpie_api.h
- * 
+ *
  * @Abstract: Magpie FW api
- * 
- * @Notes:
- * 
- * Copyright (c) 2008 Atheros Communications Inc.
- * All rights reserved.
  *
+ * @Notes:
  */
 
 #ifndef _MAGPIE_API_H
 #define _MAGPIE_API_H
 
+#include <dbg_api.h>
 #include <sys_cfg.h>
+
 #include "cmnos_api.h"
 #include "vbuf_api.h"
 #include "vdesc_api.h"
 #define dma_lib_tx_init(eng_no, if_type)            A_INDIR(dma_lib.tx_init(eng_no, if_type))
 #define dma_lib_rx_init(eng_no, if_type)            A_INDIR(dma_lib.rx_init(eng_no, if_type))
 #define dma_lib_rx_config(eng_no, desc, gran)       A_INDIR(dma_lib.rx_config(eng_no, desc, gran))
-#define dma_lib_tx_start(eng_no)                    A_INDIR(dma_lib.tx_start(eng_no)) 
-#define dma_lib_rx_start(eng_no)                    A_INDIR(dma_lib.rx_start(eng_no)) 
+#define dma_lib_tx_start(eng_no)                    A_INDIR(dma_lib.tx_start(eng_no))
+#define dma_lib_rx_start(eng_no)                    A_INDIR(dma_lib.rx_start(eng_no))
 #define dma_lib_intr_status(if_type)                A_INDIR(dma_lib.intr_status(if_type))
 #define dma_lib_hard_xmit(eng_no, buf)              A_INDIR(dma_lib.hard_xmit(eng_no, buf))
 #define dma_lib_flush_xmit(eng_no)                  A_INDIR(dma_lib.flush_xmit(eng_no))
 #define HIF_init(pConfig)                           A_INDIR(hif._init(pConfig))
 #define HIF_shutdown(h)                             A_INDIR(hif._shutdown(h))
 #define HIF_register_callback(h, pConfig)           A_INDIR(hif._register_callback(h, pConfig))
-#define HIF_start(h)                                A_INDIR(hif._start(h))  
-#define HIF_config_pipe(h, pipe, desc_list)         A_INDIR(hif._config_pipe(h, pipe, desc_list)) 
-#define HIF_send_buffer(h, pipe, buf)               A_INDIR(hif._send_buffer(h, pipe, buf)) 
-#define HIF_return_recv_buf(h, pipe, buf)           A_INDIR(hif._return_recv_buf(h, pipe, buf)) 
-#define HIF_isr_handler(h)                          A_INDIR(hif._isr_handler(h)) 
+#define HIF_start(h)                                A_INDIR(hif._start(h))
+#define HIF_config_pipe(h, pipe, desc_list)         A_INDIR(hif._config_pipe(h, pipe, desc_list))
+#define HIF_send_buffer(h, pipe, buf)               A_INDIR(hif._send_buffer(h, pipe, buf))
+#define HIF_return_recv_buf(h, pipe, buf)           A_INDIR(hif._return_recv_buf(h, pipe, buf))
+#define HIF_isr_handler(h)                          A_INDIR(hif._isr_handler(h))
 #define HIF_is_pipe_supported(h, pipe)              A_INDIR(hif._is_pipe_supported(h, pipe))
 #define HIF_get_max_msg_len(h, pipe)                A_INDIR(hif._get_max_msg_len(h, pipe))
 #define HIF_get_reserved_headroom(h)                A_INDIR(hif._get_reserved_headroom(h))
 #define HTC_GetReservedHeadroom(h)                  A_INDIR(htc._HTC_GetReservedHeadroom(h))
 
 #define HTC_NotifyTargetInserted(h)
-#define HTC_NotifyTargetDetached(h)                   
+#define HTC_NotifyTargetDetached(h)
 
 /* WMI SVC module */
 #define WMI_SERVICE_MODULE_INSTALL()                WMI_service_module_install(&_A_MAGPIE_INDIRECTION_TABLE->wmi_svc_api)
@@ -173,7 +205,7 @@ typedef struct _A_magpie_indirection_table {
        struct sflash_api                   sflash;
        struct hif_api                      hif;
        struct htc_apis                     htc;
-       WMI_SVC_APIS                        wmi_svc_api;     
+       WMI_SVC_APIS                        wmi_svc_api;
        struct usbfifo_api                  usbfifo_api;
        struct buf_pool_api                 buf_pool;
        struct vbuf_api                     vbuf;