Merge pull request #163 from cloudswei/ctlframe_injection
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / init / init.h
index e346bd2e54e505a1c09c0d4645558ebf83e28da1..e44c99e8abf803f5f329f22a39366edd410e9903 100644 (file)
@@ -36,6 +36,7 @@
 #define ALLOCRAM_START       ( ((unsigned int)&_fw_image_end) + 4)
 #define ALLOCRAM_SIZE        ( SYS_RAM_SZIE - ( ALLOCRAM_START - SYS_D_RAM_REGION_0_BASE) - SYS_D_RAM_STACK_SIZE)
 
+#include "app_start.h"
 #include "regdump.h"
 
 #define SBOOT_PATTERN 0x5342
@@ -45,7 +46,7 @@
 void AR6002_fatal_exception_handler_patch(CPU_exception_frame_t *exc_frame);
 void exception_reset(struct register_dump_s *dump);
 
-void (* _assfail_ori)(struct register_dump_s *);
+extern void (* _assfail_ori)(struct register_dump_s *);
 void HTCMsgRecvHandler_patch(adf_nbuf_t hdr_buf, adf_nbuf_t buffer, void *context);
 void HTCControlSvcProcessMsg_patch(HTC_ENDPOINT_ID EndpointID, adf_nbuf_t hdr_buf,
                                   adf_nbuf_t pBuffers, void *arg);
@@ -65,7 +66,11 @@ extern void _fw_usb_reset_fifo(void);
 
 #endif
 
+#if defined(PROJECT_MAGPIE)
+void change_magpie_clk(void);
+#endif
 
 void fatal_exception_func();
 void init_mem();
 void __noreturn wlan_task();
+void reset_EP4_FIFO(void);