|
| uint32_t | dwc2_read (uint64_t base) |
| | dwc2_read – reads a value from dwc2 register
|
| |
| void | dwc2_write (uint64_t base, uint32_t value) |
| | dwc2_write – write a value to dwc2 register
|
| |
| void | dwc2_control_transfer (struct dwc2_core_regs *regs, dwc2_usb_endpoint_t *ep, uint8_t bmRequestType, uint8_t b_request, uint16_t wValue, uint16_t wIndex, void *data, uint16_t wLength) |
| |
| void | dwc2_interrupt_transfer (dwc2_core_regs *regs, dwc2_usb_endpoint_t *ep, void *intbuf, uint8_t ch, uint32_t odd, uint8_t pid) |
| |
| void | dwc2_enumerate_root_device (struct dwc2_core_regs *regs) |
| |
| void | dwc2_handle_channel_interrupt (dwc2_core_regs *regs, int ch) |
| | dwc2_handle_channel_interrupt – handle channel interrupts here
|
| |
| void * | dwc2_get_dma_address () |
| | dwc2_get_dma_address – return pre allocated dma address
|
| |
| void * | dwc2_get_dma_address_phys () |
| |
| void | dwc2_flush_tx_fifo (struct dwc2_core_regs *regs, uint32_t nfifo) |
| |
| void | dwc2_flush_rx_fifo (struct dwc2_core_regs *regs) |
| |
| void | dwc2_add_to_used_dma_list (void *phys) |
| | dwc2_add_to_used_dma_list – there is a bug i guess within the dwc2 ip where same buffer can't be used for setup packet
|
| |
| void | dwc2_free_used_dma_list () |
| | dwc2_free_used_dma_list – free up all used physical memories, this function must be called at the end of the class driver initialization
|
| |
| void | root_hub_transfer_int (dwc2_core_regs *regs, uint8_t pid) |
| |
| void * | root_hub_get_interrupt_buffer () |
| |
| void | root_hub_handle_port_change (dwc2_core_regs *regs, uint8_t port) |
| |
BSD 2-Clause License
Copyright (c) 2022-2025, Manas Kamal Choudhury All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted 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.
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 HOLDER 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.