+/*
+ * 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 __CMNOS_API_H__
#define __CMNOS_API_H__
#define A_MEMMOVE(dst, src, size)
#define A_MEMCMP(p1, p2, nbytes)
-#endif
+#endif
#if 1
#define A_UART_HWINIT(freq, baud)
-#define A_UART_ENABLED()
+#define A_UART_ENABLED()
-#define A_PUTS(str)
+#define A_PUTS(str)
#define A_PUTC(ch)
#define A_GETC(pCh)
#define A_IS_HOST_PRESENT()
#define A_KBHIT(delay)
#define A_GET_ROM_VER()
-#endif
+#endif
//#if SYSTEM_MODULE_DBG
/* debug Support */
#define A_USB_EP0_SETUP() A_CMN(usb._usb_ep0_setup())
#define A_USB_EP0_TX_DATA() A_CMN(usb._usb_ep0_tx_data())
#define A_USB_EP0_RX_DATA() A_CMN(usb._usb_ep0_rx_data())
-
+
#define A_USB_GET_CONFIG() A_CMN(usb._usb_get_configuration())
#define A_USB_SET_CONFIG() A_CMN(usb._usb_set_configuration())
-
+
#define A_USB_GET_INTERFACE() A_CMN(usb._usb_get_interface())
#define A_USB_SET_INTERFACE() A_CMN(usb._usb_set_interface())
-
+
#define A_USB_STANDARD_CMD() A_CMN(usb._usb_standard_cmd())
#define A_USB_VENDOR_CMD() A_CMN(usb._usb_vendor_cmd())
-
+
#define A_USB_POWER_OFF() A_CMN(usb._usb_power_off())
#define A_USB_RESET_FIFO() A_CMN(usb._usb_reset_fifo())
#define A_USB_GEN_WDT() A_CMN(usb._usb_gen_wdt())
#else
#define A_USB_INIT()
-#define A_USB_TASK()
+#define A_USB_TASK()
#define A_USB_INIT_PHY()
-#define A_USB_EP0_SETUP()
-#define A_USB_EP0_TX()
-#define A_USB_EP0_RX()
-
-#define A_USB_GET_CONFIG()
-#define A_USB_SET_CONFIG()
-
-#define A_USB_GET_INTERFACE()
-#define A_USB_SET_INTERFACE()
-
-#define A_USB_STANDARD_CMD()
-#define A_USB_VENDOR_CMD()
-
+#define A_USB_EP0_SETUP()
+#define A_USB_EP0_TX()
+#define A_USB_EP0_RX()
+
+#define A_USB_GET_CONFIG()
+#define A_USB_SET_CONFIG()
+
+#define A_USB_GET_INTERFACE()
+#define A_USB_SET_INTERFACE()
+
+#define A_USB_STANDARD_CMD()
+#define A_USB_VENDOR_CMD()
+
#define A_USB_POWER_OFF()
#define A_USB_RESET_FIFO()
#define A_USB_GEN_WDT()
#define A_USB_JUMP_BOOT()
#define A_USB_GET_DESCRIPTOR()
-#define A_USB_SET_ADDRESS()
-#define A_USB_SET_FEATURE()
-#define A_USB_CLEAR_FEATURE()
+#define A_USB_SET_ADDRESS()
+#define A_USB_SET_FEATURE()
+#define A_USB_CLEAR_FEATURE()
#define A_USB_GET_STATUS()
#define A_USB_SETUP_DESC()
A_CMN(timer._timer_run())
#define A_PCI_BOOT_INIT() \
- A_CMN(pci.pci_boot_init())
+ A_CMN(pci.pci_boot_init())
#define A_GMAC_BOOT_INIT() \
- A_CMN(gmac.gmac_boot_init())
+ A_CMN(gmac.gmac_boot_init())
#if SYSTEM_MODULE_ALLOCRAM
/* Default size of ALLOCRAM area */
int (* hal_linkage_check)(int sz, struct _A_os_linkage_check *);
unsigned int *start_bss;
void (* app_start)(void);
-
+
#if SYSTEM_MODULE_MEM
struct mem_api mem;
#endif