forked from xuos/xiuos
Add DWC3 codes
This commit is contained in:
parent
506f37d009
commit
0e9625cf87
|
@ -92,6 +92,23 @@ int dwc3_core_init(struct dwc3 *dwc){
|
|||
}
|
||||
|
||||
|
||||
int dwc3_alloc_scratch_buffers(struct dwc3 *dwc){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int dwc3_setup_scratch_buffers(struct dwc3 *dwc){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int dwc3_event_buffers_alloc(struct dwc3 *dwc){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int dwc3_event_buffers_setup(struct dwc3 *dwc){
|
||||
return 0;
|
||||
|
@ -114,3 +131,9 @@ void dwc3_set_mode(struct dwc3 *dwc, uint32_t mode){
|
|||
int dwc3_init(struct dwc3 *dwc){
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, uint32_t param){
|
||||
return 0;
|
||||
}
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
#include "usbh_core.h"
|
||||
#include "usbh_hub.h"
|
||||
#include "usb_util.h"
|
||||
#include "xhci_reg.h"
|
||||
#include "xhci.h"
|
||||
#include "gadget.h"
|
||||
|
@ -887,6 +888,14 @@ void dwc3_cache_hwparams(struct dwc3 *dwc);
|
|||
|
||||
int dwc3_core_init(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_alloc_scratch_buffers(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_setup_scratch_buffers(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_alloc_event_buffers(struct dwc3 *dwc, uint32_t length);
|
||||
|
||||
int dwc3_event_buffers_alloc(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_event_buffers_setup(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_core_init_mode(struct dwc3 *dwc);
|
||||
|
@ -895,6 +904,9 @@ void dwc3_set_mode(struct dwc3 *dwc, uint32_t mode);
|
|||
|
||||
int dwc3_host_init(struct dwc3 *dwc);
|
||||
|
||||
int dwc3_send_gadget_generic_command(struct dwc3 *dwc, unsigned cmd, uint32_t param);
|
||||
|
||||
|
||||
static inline uint32_t dwc3_readl(void *base, uint32_t offset){
|
||||
uintptr_t offs = offset - DWC3_GLOBALS_REGS_START;
|
||||
uint32_t value;
|
||||
|
|
Loading…
Reference in New Issue