Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / hif / k2_HIF_usb_patch.c
1 #include "sys_cfg.h"
2 #include "dt_defs.h"
3 #include "reg_defs.h"
4
5 #include <osapi.h>
6 #include <hif_api.h>
7 #include <Magpie_api.h>
8 #include <vdesc_api.h>
9 #include <adf_os_mem.h> 
10 #include <adf_os_io.h>
11
12 #include "hif_usb.h"
13
14 /*
15  * -- support more than 64 bytes command on ep4 -- 
16  */
17 int _HIFusb_get_max_msg_len_patch(hif_handle_t handle, int pipe)
18 {
19     switch(pipe) {
20         case HIF_USB_PIPE_INTERRUPT:
21         case HIF_USB_PIPE_COMMAND:
22             return 512;
23             
24         default:
25             return 1600;
26     }
27 }
28
29 /*
30  * -- move the usb_task to here --
31  */
32 void _HIFusb_isr_handler_patch(hif_handle_t h)
33 {
34     A_USB_FW_TASK();
35
36     _HIFusb_isr_handler();
37 }