/* USB init */
usb_init();
+ /* initialize DMA memory */
memset(&dma_mem, 0, sizeof(dma_mem));
/* fill DMA rings */
reboot();
}
-static void __attribute__((noreturn)) main_loop(void)
+static void __noreturn main_loop(void)
{
- clock_set(true, AHB_40MHZ_OSC);
-
/* main loop */
while (1) {
handle_fw();
* we put _start() there with the linker script carl9170.lds.
*/
-void __attribute__((noreturn)) start(void)
+void start(void)
{
- /* initialize firmware context and DMA memory */
- memset(&fw, 0, sizeof(fw));
+ clock_set(true, AHB_40MHZ_OSC);
/* watchdog magic pattern check */
if ((get(AR9170_PWR_REG_WATCH_DOG_MAGIC) & 0xffff0000) == 0x12340000) {
" ~`!1@2#3$4%%5^6&7*8(9)0_-+={[}]|\\:;\"'<,>.?/");
#endif /* CONFIG_CARL9170FW_DEBUG */
+ /*
+ * Tell the host, that the firmware has booted and is
+ * now ready to process requests.
+ */
+ send_cmd_to_host(0, CARL9170_RSP_BOOT, 0x00, NULL);
main_loop();
}