#include "dwc_os.h"
#include "dwc_otg_regs.h"
#include "dwc_otg_cil.h"
Go to the source code of this file.
Defines | |
| #define | DWC_OTG_PARAM_TEST(_param_, _low_, _high_) |
Functions | |
| int | dwc_otg_setup_params (dwc_otg_core_if_t *core_if) |
| dwc_otg_core_if_t * | dwc_otg_cil_init (const uint32_t *reg_base_addr) |
| This function is called to initialize the DWC_otg CSR data structures. | |
| void | dwc_otg_cil_remove (dwc_otg_core_if_t *core_if) |
| This function frees the structures allocated by dwc_otg_cil_init(). | |
| void | dwc_otg_enable_global_interrupts (dwc_otg_core_if_t *core_if) |
| This function enables the controller's Global Interrupt in the AHB Config register. | |
| void | dwc_otg_disable_global_interrupts (dwc_otg_core_if_t *core_if) |
| This function disables the controller's Global Interrupt in the AHB Config register. | |
| void | dwc_otg_enable_common_interrupts (dwc_otg_core_if_t *core_if) |
| This function initializes the commmon interrupts, used in both device and host modes. | |
| int | dwc_otg_device_hibernation_restore (dwc_otg_core_if_t *core_if, int rem_wakeup, int reset) |
| int | dwc_otg_host_hibernation_restore (dwc_otg_core_if_t *core_if, int rem_wakeup, int reset) |
| int | dwc_otg_save_global_regs (dwc_otg_core_if_t *core_if) |
| Saves global register values into system memory. | |
| int | dwc_otg_save_gintmsk_reg (dwc_otg_core_if_t *core_if) |
| Saves GINTMSK register before setting the msk bits. | |
| int | dwc_otg_save_dev_regs (dwc_otg_core_if_t *core_if) |
| Saves device register values into system memory. | |
| int | dwc_otg_save_host_regs (dwc_otg_core_if_t *core_if) |
| Saves host register values into system memory. | |
| int | dwc_otg_restore_global_regs (dwc_otg_core_if_t *core_if) |
| Restore global register values. | |
| int | dwc_otg_restore_dev_regs (dwc_otg_core_if_t *core_if, int rem_wakeup) |
| Restore device register values. | |
| int | dwc_otg_restore_host_regs (dwc_otg_core_if_t *core_if, int reset) |
| Restore host register values. | |
| int | restore_lpm_i2c_regs (dwc_otg_core_if_t *core_if) |
| int | restore_essential_regs (dwc_otg_core_if_t *core_if, int rmode, int is_host) |
| void | init_fslspclksel (dwc_otg_core_if_t *core_if) |
| Initializes the FSLSPClkSel field of the HCFG register depending on the PHY type. | |
| void | init_devspd (dwc_otg_core_if_t *core_if) |
| Initializes the DevSpd field of the DCFG register depending on the PHY type and the enumeration speed of the device. | |
| uint32_t | calc_num_in_eps (dwc_otg_core_if_t *core_if) |
| This function calculates the number of IN EPS using GHWCFG1 and GHWCFG2 registers values. | |
| uint32_t | calc_num_out_eps (dwc_otg_core_if_t *core_if) |
| This function calculates the number of OUT EPS using GHWCFG1 and GHWCFG2 registers values. | |
| void | dwc_otg_core_init (dwc_otg_core_if_t *core_if) |
| This function initializes the DWC_otg controller registers and prepares the core for device mode or host mode operation. | |
| void | dwc_otg_enable_device_interrupts (dwc_otg_core_if_t *core_if) |
| This function enables the Device mode interrupts. | |
| void | dwc_otg_core_dev_init (dwc_otg_core_if_t *core_if) |
| This function initializes the DWC_otg controller registers for device mode. | |
| void | dwc_otg_enable_host_interrupts (dwc_otg_core_if_t *core_if) |
| This function enables the Host mode interrupts. | |
| void | dwc_otg_disable_host_interrupts (dwc_otg_core_if_t *core_if) |
| This function disables the Host Mode interrupts. | |
| void | dwc_otg_core_host_init (dwc_otg_core_if_t *core_if) |
| This function initializes the DWC_otg controller registers for host mode. | |
| void | dwc_otg_hc_init (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| Prepares a host channel for transferring packets to/from a specific endpoint. | |
| void | dwc_otg_hc_halt (dwc_otg_core_if_t *core_if, dwc_hc_t *hc, dwc_otg_halt_status_e halt_status) |
| Attempts to halt a host channel. | |
| void | dwc_otg_hc_cleanup (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| Clears the transfer state for a host channel. | |
| void | hc_set_even_odd_frame (dwc_otg_core_if_t *core_if, dwc_hc_t *hc, hcchar_data_t *hcchar) |
| Sets the channel property that indicates in which frame a periodic transfer should occur. | |
| void | ep_xfer_timeout (void *ptr) |
| void | set_pid_isoc (dwc_hc_t *hc) |
| void | dwc_otg_hc_start_transfer (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| This function does the setup for a data transfer for a host channel and starts the transfer. | |
| void | dwc_otg_hc_start_transfer_ddma (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| This function does the setup for a data transfer for a host channel and starts the transfer in Descriptor DMA mode. | |
| int | dwc_otg_hc_continue_transfer (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
This function continues a data transfer that was started by previous call to dwc_otg_hc_start_transfer. | |
| void | dwc_otg_hc_do_ping (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| Starts a PING transfer. | |
| void | dwc_otg_hc_write_packet (dwc_otg_core_if_t *core_if, dwc_hc_t *hc) |
| uint32_t | dwc_otg_get_frame_number (dwc_otg_core_if_t *core_if) |
| Gets the current USB frame number. | |
| uint32_t | calc_frame_interval (dwc_otg_core_if_t *core_if) |
| Calculates and gets the frame Interval value of HFIR register according PHY type and speed.The application can modify a value of HFIR register only after the Port Enable bit of the Host Port Control and Status register (HPRT.PrtEnaPort) has been set. | |
| void | dwc_otg_read_setup_packet (dwc_otg_core_if_t *core_if, uint32_t *dest) |
| This function reads a setup packet from the Rx FIFO into the destination buffer. | |
| void | dwc_otg_ep0_activate (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function enables EP0 OUT to receive SETUP packets and configures EP0 IN for transmitting packets. | |
| void | dwc_otg_ep_activate (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function activates an EP. | |
| void | dwc_otg_ep_deactivate (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function deactivates an EP. | |
| void | init_dma_desc_chain (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function initializes dma descriptor chain. | |
| int32_t | write_isoc_tx_fifo (dwc_otg_core_if_t *core_if, dwc_ep_t *dwc_ep) |
| This function is called when to write ISOC data into appropriate dedicated periodic FIFO. | |
| void | dwc_otg_ep_start_transfer (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function does the setup for a data transfer for an EP and starts the transfer. | |
| void | dwc_otg_ep_start_zl_transfer (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function setup a zero length transfer in Buffer DMA and Slave modes for usb requests with zero field set. | |
| void | dwc_otg_ep0_start_transfer (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function does the setup for a data transfer for EP0 and starts the transfer. | |
| void | dwc_otg_ep0_continue_transfer (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function continues control IN transfers started by dwc_otg_ep0_start_transfer, when the transfer does not fit in a single packet. | |
| void | dump_msg (const u8 *buf, unsigned int length) |
| void | dwc_otg_ep_write_packet (dwc_otg_core_if_t *core_if, dwc_ep_t *ep, int dma) |
| This function writes a packet into the Tx FIFO associated with the EP. | |
| void | dwc_otg_ep_set_stall (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| Set the EP STALL. | |
| void | dwc_otg_ep_clear_stall (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| Clear the EP STALL. | |
| void | dwc_otg_read_packet (dwc_otg_core_if_t *core_if, uint8_t *dest, uint16_t bytes) |
| This function reads a packet from the Rx FIFO into the destination buffer. | |
| void | dwc_otg_dump_dev_registers (dwc_otg_core_if_t *core_if) |
| Dump core registers and SPRAM. | |
| void | dwc_otg_dump_spram (dwc_otg_core_if_t *core_if) |
| This functions reads the SPRAM and prints its content. | |
| void | dwc_otg_dump_host_registers (dwc_otg_core_if_t *core_if) |
| This function reads the host registers and prints them. | |
| void | dwc_otg_dump_global_registers (dwc_otg_core_if_t *core_if) |
| This function reads the core global registers and prints them. | |
| void | dwc_otg_flush_tx_fifo (dwc_otg_core_if_t *core_if, const int num) |
| Flush a Tx FIFO. | |
| void | dwc_otg_flush_rx_fifo (dwc_otg_core_if_t *core_if) |
| Flush Rx FIFO. | |
| void | dwc_otg_core_reset (dwc_otg_core_if_t *core_if) |
| Do core a soft reset of the core. | |
| uint8_t | dwc_otg_is_device_mode (dwc_otg_core_if_t *_core_if) |
| uint8_t | dwc_otg_is_host_mode (dwc_otg_core_if_t *_core_if) |
| void | dwc_otg_cil_register_hcd_callbacks (dwc_otg_core_if_t *core_if, dwc_otg_cil_callbacks_t *cb, void *p) |
| Register HCD callbacks. | |
| void | dwc_otg_cil_register_pcd_callbacks (dwc_otg_core_if_t *core_if, dwc_otg_cil_callbacks_t *cb, void *p) |
| Register PCD callbacks. | |
| void | write_isoc_frame_data (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function writes isoc data per 1 (micro)frame into tx fifo. | |
| void | dwc_otg_iso_ep_start_frm_transfer (dwc_otg_core_if_t *core_if, dwc_ep_t *ep) |
| This function initializes a descriptor chain for Isochronous transfer. | |
| void | dwc_otg_set_uninitialized (int32_t *p, int size) |
| int | dwc_otg_param_initialized (int32_t val) |
| uint8_t | dwc_otg_is_dma_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_otg_cap (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies the OTG capabilities. | |
| int32_t | dwc_otg_get_param_otg_cap (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_opt (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_opt (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dma_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether to use slave or DMA mode for accessing the data FIFOs. | |
| int32_t | dwc_otg_get_param_dma_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dma_desc_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| When DMA mode is enabled specifies whether to use address DMA or DMA Descritor mode for accessing the data FIFOs in device mode. | |
| int32_t | dwc_otg_get_param_dma_desc_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_support_fs_ls_low_power (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether low power mode is supported when attached to a Full Speed or Low Speed device in host mode. | |
| int32_t | dwc_otg_get_param_host_support_fs_ls_low_power (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_enable_dynamic_fifo (dwc_otg_core_if_t *core_if, int32_t val) |
| 0 - Use cC FIFO size parameters 1 - Allow dynamic FIFO sizing (default) | |
| int32_t | dwc_otg_get_param_enable_dynamic_fifo (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_data_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Total number of 4-byte words in the data FIFO memory. | |
| int32_t | dwc_otg_get_param_data_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_rx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Number of 4-byte words in the Rx FIFO in device mode when dynamic FIFO sizing is enabled. | |
| int32_t | dwc_otg_get_param_dev_rx_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_nperio_tx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Number of 4-byte words in the non-periodic Tx FIFO in device mode when dynamic FIFO sizing is enabled. | |
| int32_t | dwc_otg_get_param_dev_nperio_tx_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_rx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Number of 4-byte words in the Rx FIFO in host mode when dynamic FIFO sizing is enabled. | |
| int32_t | dwc_otg_get_param_host_rx_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_nperio_tx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Number of 4-byte words in the non-periodic Tx FIFO in host mode when Dynamic FIFO sizing is enabled in the core. | |
| int32_t | dwc_otg_get_param_host_nperio_tx_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_perio_tx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val) |
| Number of 4-byte words in the host periodic Tx FIFO when dynamic FIFO sizing is enabled. | |
| int32_t | dwc_otg_get_param_host_perio_tx_fifo_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_max_transfer_size (dwc_otg_core_if_t *core_if, int32_t val) |
| The maximum transfer size supported in bytes. | |
| int32_t | dwc_otg_get_param_max_transfer_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_max_packet_count (dwc_otg_core_if_t *core_if, int32_t val) |
| The maximum number of packets in a transfer. | |
| int32_t | dwc_otg_get_param_max_packet_count (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_channels (dwc_otg_core_if_t *core_if, int32_t val) |
| The number of host channel registers to use. | |
| int32_t | dwc_otg_get_param_host_channels (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_endpoints (dwc_otg_core_if_t *core_if, int32_t val) |
| The number of endpoints in addition to EP0 available for device mode operations. | |
| int32_t | dwc_otg_get_param_dev_endpoints (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_phy_type (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies the type of PHY interface to use. | |
| int32_t | dwc_otg_get_param_phy_type (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_speed (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies the maximum speed of operation in host and device mode. | |
| int32_t | dwc_otg_get_param_speed (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_host_ls_low_power_phy_clk (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies the PHY clock rate in low power mode when connected to a Low Speed device in host mode. | |
| int32_t | dwc_otg_get_param_host_ls_low_power_phy_clk (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_phy_ulpi_ddr (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether the ULPI operates at double or single data rate. | |
| int32_t | dwc_otg_get_param_phy_ulpi_ddr (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_phy_ulpi_ext_vbus (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether to use the internal or external supply to drive the vbus with a ULPI phy. | |
| int32_t | dwc_otg_get_param_phy_ulpi_ext_vbus (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_phy_utmi_width (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies the UTMI+ Data Width. | |
| int32_t | dwc_otg_get_param_phy_utmi_width (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_ulpi_fs_ls (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_ulpi_fs_ls (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_ts_dline (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_ts_dline (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_i2c_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether to use the I2Cinterface for full speed PHY. | |
| int32_t | dwc_otg_get_param_i2c_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_perio_tx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val, int fifo_num) |
| Number of 4-byte words in each of the periodic Tx FIFOs in device mode when dynamic FIFO sizing is enabled. | |
| int32_t | dwc_otg_get_param_dev_perio_tx_fifo_size (dwc_otg_core_if_t *core_if, int fifo_num) |
| int | dwc_otg_set_param_en_multiple_tx_fifo (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether dedicated transmit FIFOs are enabled for non periodic IN endpoints in device mode 0 - No 1 - Yes. | |
| int32_t | dwc_otg_get_param_en_multiple_tx_fifo (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_tx_fifo_size (dwc_otg_core_if_t *core_if, int32_t val, int fifo_num) |
| int32_t | dwc_otg_get_param_dev_tx_fifo_size (dwc_otg_core_if_t *core_if, int fifo_num) |
| int | dwc_otg_set_param_thr_ctl (dwc_otg_core_if_t *core_if, int32_t val) |
| Thresholding enable flag- bit 0 - enable non-ISO Tx thresholding bit 1 - enable ISO Tx thresholding bit 2 - enable Rx thresholding. | |
| int32_t | dwc_otg_get_param_thr_ctl (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_lpm_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether LPM (Link Power Management) support is enabled. | |
| int32_t | dwc_otg_get_param_lpm_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_tx_thr_length (dwc_otg_core_if_t *core_if, int32_t val) |
| Thresholding length for Tx FIFOs in 32 bit DWORDs. | |
| int32_t | dwc_otg_get_param_tx_thr_length (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_rx_thr_length (dwc_otg_core_if_t *core_if, int32_t val) |
| Thresholding length for Rx FIFOs in 32 bit DWORDs. | |
| int32_t | dwc_otg_get_param_rx_thr_length (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dma_burst_size (dwc_otg_core_if_t *core_if, int32_t val) |
| The DMA Burst size (applicable only for External DMA Mode). | |
| int32_t | dwc_otg_get_param_dma_burst_size (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_pti_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether PTI enhancement is enabled. | |
| int32_t | dwc_otg_get_param_pti_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_mpi_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether MPI enhancement is enabled. | |
| int32_t | dwc_otg_get_param_mpi_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_adp_enable (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether ADP capability is enabled. | |
| int32_t | dwc_otg_get_param_adp_enable (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_ic_usb_cap (dwc_otg_core_if_t *core_if, int32_t val) |
| Specifies whether IC_USB capability is enabled. | |
| int32_t | dwc_otg_get_param_ic_usb_cap (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_ahb_thr_ratio (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_ahb_thr_ratio (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_power_down (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_power_down (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_reload_ctl (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_reload_ctl (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_dev_out_nak (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_dev_out_nak (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_cont_on_bna (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_cont_on_bna (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_ahb_single (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_ahb_single (dwc_otg_core_if_t *core_if) |
| int | dwc_otg_set_param_otg_ver (dwc_otg_core_if_t *core_if, int32_t val) |
| int32_t | dwc_otg_get_param_otg_ver (dwc_otg_core_if_t *core_if) |
| uint32_t | dwc_otg_get_hnpstatus (dwc_otg_core_if_t *core_if) |
| Get host negotiation status. | |
| uint32_t | dwc_otg_get_srpstatus (dwc_otg_core_if_t *core_if) |
| Get srp status. | |
| void | dwc_otg_set_hnpreq (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set hnpreq bit in the GOTGCTL register. | |
| uint32_t | dwc_otg_get_gsnpsid (dwc_otg_core_if_t *core_if) |
| Get Content of SNPSID register. | |
| uint32_t | dwc_otg_get_mode (dwc_otg_core_if_t *core_if) |
| Get current mode. | |
| uint32_t | dwc_otg_get_hnpcapable (dwc_otg_core_if_t *core_if) |
| Get value of hnpcapable field in the GUSBCFG register. | |
| void | dwc_otg_set_hnpcapable (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of hnpcapable field in the GUSBCFG register. | |
| uint32_t | dwc_otg_get_srpcapable (dwc_otg_core_if_t *core_if) |
| Get value of srpcapable field in the GUSBCFG register. | |
| void | dwc_otg_set_srpcapable (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of srpcapable field in the GUSBCFG register. | |
| uint32_t | dwc_otg_get_devspeed (dwc_otg_core_if_t *core_if) |
| Get value of devspeed field in the DCFG register. | |
| void | dwc_otg_set_devspeed (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of devspeed field in the DCFG register. | |
| uint32_t | dwc_otg_get_busconnected (dwc_otg_core_if_t *core_if) |
| Get the value of busconnected field from the HPRT0 register. | |
| uint32_t | dwc_otg_get_enumspeed (dwc_otg_core_if_t *core_if) |
| Gets the device enumeration Speed. | |
| uint32_t | dwc_otg_get_prtpower (dwc_otg_core_if_t *core_if) |
| Get value of prtpwr field from the HPRT0 register. | |
| uint32_t | dwc_otg_get_core_state (dwc_otg_core_if_t *core_if) |
| Get value of flag indicating core state - hibernated or not. | |
| void | dwc_otg_set_prtpower (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of prtpwr field from the HPRT0 register. | |
| uint32_t | dwc_otg_get_prtsuspend (dwc_otg_core_if_t *core_if) |
| Get value of prtsusp field from the HPRT0 regsiter. | |
| void | dwc_otg_set_prtsuspend (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of prtpwr field from the HPRT0 register. | |
| uint32_t | dwc_otg_get_fr_interval (dwc_otg_core_if_t *core_if) |
| Get value of Fram Interval field from the HFIR regsiter. | |
| void | dwc_otg_set_fr_interval (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of Frame Interval field from the HFIR regsiter. | |
| uint32_t | dwc_otg_get_mode_ch_tim (dwc_otg_core_if_t *core_if) |
| Get value of ModeChTimEn field from the HCFG regsiter. | |
| void | dwc_otg_set_mode_ch_tim (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of ModeChTimEn field from the HCFG regsiter. | |
| void | dwc_otg_set_prtresume (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of prtres field from the HPRT0 register FIXME Remove? | |
| uint32_t | dwc_otg_get_remotewakesig (dwc_otg_core_if_t *core_if) |
| Get value of rmtwkupsig bit in DCTL register. | |
| uint32_t | dwc_otg_get_lpm_portsleepstatus (dwc_otg_core_if_t *core_if) |
| Get value of prt_sleep_sts field from the GLPMCFG register. | |
| uint32_t | dwc_otg_get_lpm_remotewakeenabled (dwc_otg_core_if_t *core_if) |
| Get value of rem_wkup_en field from the GLPMCFG register. | |
| uint32_t | dwc_otg_get_lpmresponse (dwc_otg_core_if_t *core_if) |
| Get value of appl_resp field from the GLPMCFG register. | |
| void | dwc_otg_set_lpmresponse (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of appl_resp field from the GLPMCFG register. | |
| uint32_t | dwc_otg_get_hsic_connect (dwc_otg_core_if_t *core_if) |
| Get value of hsic_connect field from the GLPMCFG register. | |
| void | dwc_otg_set_hsic_connect (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of hsic_connect field from the GLPMCFG register. | |
| uint32_t | dwc_otg_get_inv_sel_hsic (dwc_otg_core_if_t *core_if) |
| Get value of inv_sel_hsic field from the GLPMCFG register. | |
| void | dwc_otg_set_inv_sel_hsic (dwc_otg_core_if_t *core_if, uint32_t val) |
| Set value of inv_sel_hsic field from the GLPMFG register. | |
| uint32_t | dwc_otg_get_gotgctl (dwc_otg_core_if_t *core_if) |
| GOTGCTL register. | |
| void | dwc_otg_set_gotgctl (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_gusbcfg (dwc_otg_core_if_t *core_if) |
| GUSBCFG register. | |
| void | dwc_otg_set_gusbcfg (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_grxfsiz (dwc_otg_core_if_t *core_if) |
| GRXFSIZ register. | |
| void | dwc_otg_set_grxfsiz (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_gnptxfsiz (dwc_otg_core_if_t *core_if) |
| GNPTXFSIZ register. | |
| void | dwc_otg_set_gnptxfsiz (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_gpvndctl (dwc_otg_core_if_t *core_if) |
| void | dwc_otg_set_gpvndctl (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_ggpio (dwc_otg_core_if_t *core_if) |
| GGPIO register. | |
| void | dwc_otg_set_ggpio (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_hprt0 (dwc_otg_core_if_t *core_if) |
| HPRT0 register. | |
| void | dwc_otg_set_hprt0 (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_guid (dwc_otg_core_if_t *core_if) |
| GUID register. | |
| void | dwc_otg_set_guid (dwc_otg_core_if_t *core_if, uint32_t val) |
| uint32_t | dwc_otg_get_hptxfsiz (dwc_otg_core_if_t *core_if) |
| GHPTXFSIZE. | |
| uint16_t | dwc_otg_get_otg_version (dwc_otg_core_if_t *core_if) |
| Returns OTG version - either 1.3 or 2.0. | |
| void | dwc_otg_pcd_start_srp_timer (dwc_otg_core_if_t *core_if) |
| Start the SRP timer to detect when the SRP does not complete within 6 seconds. | |
| void | dwc_otg_initiate_srp (dwc_otg_core_if_t *core_if) |
These services are used by both the Host Controller Driver and the Peripheral Controller Driver.
The CIL manages the memory map for the core so that the HCD and PCD don't have to do this separately. It also handles basic tasks like reading/writing the registers and data FIFOs in the controller. Some of the data access functions provide encapsulation of several operations required to perform a task, such as writing multiple registers to start a transfer. Finally, the CIL performs basic services that are not specific to either the host or device modes of operation. These services include management of the OTG Host Negotiation Protocol (HNP) and Session Request Protocol (SRP). A Diagnostic API is also provided to allow testing of the controller hardware.
The Core Interface Layer has the following requirements:
Definition in file dwc_otg_cil.c.
|
|
Value: (((_param_) < (_low_)) || \
((_param_) > (_high_)))
Definition at line 5356 of file dwc_otg_cil.c. |
|
|
This function is called to initialize the DWC_otg CSR data structures. The register addresses in the device and host structures are initialized from the base address supplied by the caller. The calling function must make the OS calls to get the base address of the DWC_otg controller registers. The core_params argument holds the parameters that specify how the core should be configured.
ADP initialization Definition at line 78 of file dwc_otg_cil.c. |
|
|
This function frees the structures allocated by dwc_otg_cil_init().
Remove ADP Stuff Definition at line 285 of file dwc_otg_cil.c. |
|
|
This function enables the controller's Global Interrupt in the AHB Config register.
Definition at line 322 of file dwc_otg_cil.c. |
|
|
This function disables the controller's Global Interrupt in the AHB Config register.
Definition at line 335 of file dwc_otg_cil.c. |
|
|
This function initializes the commmon interrupts, used in both device and host modes.
Definition at line 349 of file dwc_otg_cil.c. |
|
|
This function calculates the number of IN EPS using GHWCFG1 and GHWCFG2 registers values.
Definition at line 1147 of file dwc_otg_cil.c. |
|
|
This function calculates the number of OUT EPS using GHWCFG1 and GHWCFG2 registers values.
Definition at line 1176 of file dwc_otg_cil.c. |
|
|
This function initializes the DWC_otg controller registers and prepares the core for device mode or host mode operation.
Definition at line 1199 of file dwc_otg_cil.c. |
|
|
This function enables the Device mode interrupts.
Definition at line 1526 of file dwc_otg_cil.c. |
|
|
This function initializes the DWC_otg controller registers for device mode.
Set Periodic Tx FIFO Mask all bits 0 Set Tx FIFO Mask all bits 0
Definition at line 1620 of file dwc_otg_cil.c. |
|
|
This function enables the Host mode interrupts.
Definition at line 1955 of file dwc_otg_cil.c. |
|
|
This function disables the Host Mode interrupts.
Definition at line 1988 of file dwc_otg_cil.c. |
|
|
This function initializes the DWC_otg controller registers for host mode. This function flushes the Tx and Rx FIFOs and it flushes any entries in the request queues. Host channels are reset to ensure that they are ready for performing transfers.
Definition at line 2019 of file dwc_otg_cil.c. |
|
||||||||||||
|
Prepares a host channel for transferring packets to/from a specific endpoint. The HCCHARn register is set up with the characteristics specified in _hc. Host channel interrupts that may need to be serviced while this transfer is in progress are enabled.
Definition at line 2206 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
Attempts to halt a host channel. This function should only be called in Slave mode or to abort a transfer in either Slave mode or DMA mode. Under normal circumstances in DMA mode, the controller halts the channel when the transfer is complete or a condition occurs that requires application intervention. In slave mode, checks for a free request queue entry, then sets the Channel Enable and Channel Disable bits of the Host Channel Characteristics register of the specified channel to intiate the halt. If there is no free request queue entry, sets only the Channel Disable bit of the HCCHARn register to flush requests for this channel. In the latter case, sets a flag to indicate that the host channel needs to be halted when a request queue slot is open. In DMA mode, always sets the Channel Enable and Channel Disable bits of the HCCHARn register. The controller ensures there is space in the request queue before submitting the halt request. Some time may elapse before the core flushes any posted requests for this host channel and halts. The Channel Halted interrupt handler completes the deactivation of the host channel.
Definition at line 2394 of file dwc_otg_cil.c. |
|
||||||||||||
|
Clears the transfer state for a host channel. This function is normally called after a transfer is done and the host channel is being released.
Definition at line 2521 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
Sets the channel property that indicates in which frame a periodic transfer should occur. This is always set to the _next_ frame. This function has no effect on non-periodic transfers.
Definition at line 2549 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function does the setup for a data transfer for a host channel and starts the transfer. May be called in either Slave mode or DMA mode. In Slave mode, the caller must ensure that there is sufficient space in the request queue and Tx Data FIFO. For an OUT transfer in Slave mode, it loads a data packet into the appropriate FIFO. If necessary, additional data packets will be loaded in the Host ISR. For an IN transfer in Slave mode, a data packet is requested. The data packets are unloaded from the Rx FIFO in the Host ISR. If necessary, additional data packets are requested in the Host ISR. For a PING transfer in Slave mode, the Do Ping bit is set in the HCTSIZ register along with a packet count of 1 and the channel is enabled. This causes a single PING transaction to occur. Other fields in HCTSIZ are simply set to 0 since no data transfer occurs in this case. For a PING transfer in DMA mode, the HCTSIZ register is initialized with all the information required to perform the subsequent data transfer. In addition, the Do Ping bit is set in the HCTSIZ register. In this case, the controller performs the entire PING protocol, then starts the data transfer.
Definition at line 2703 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function does the setup for a data transfer for a host channel and starts the transfer in Descriptor DMA mode. Initializes HCTSIZ register. For a PING transfer the Do Ping bit is set. Sets PID and NTD values. For periodic transfers initializes SCHED_INFO field with micro-frame bitmap. Initializes HCDMA register with descriptor list address and CTD value then starts the transfer via enabling the channel.
Definition at line 2872 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function continues a data transfer that was started by previous call to The caller must ensure there is sufficient space in the request queue and Tx Data FIFO. This function should only be called in Slave mode. In DMA mode, the controller acts autonomously to complete transfers programmed to a host channel. For an OUT transfer, a new data packet is loaded into the appropriate FIFO if there is any data remaining to be queued. For an IN transfer, another data packet is always requested. For the SETUP phase of a control transfer, this function does nothing.
Definition at line 2952 of file dwc_otg_cil.c. |
|
||||||||||||
|
Starts a PING transfer. This function should only be called in Slave mode. The Do Ping bit is set in the HCTSIZ register, then the channel is enabled. Definition at line 3014 of file dwc_otg_cil.c. |
|
|
Gets the current USB frame number. This is the frame number from the last SOF packet. Definition at line 3086 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function reads a setup packet from the Rx FIFO into the destination buffer. This function is called from the Rx Status Queue Level (RxStsQLvl) Interrupt routine when a SETUP packet has been received in Slave mode.
Definition at line 3144 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function enables EP0 OUT to receive SETUP packets and configures EP0 IN for transmitting packets. It is normally called when the "Enumeration Done" interrupt occurs.
Definition at line 3161 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function activates an EP. The Device EP control register for the EP is configured as defined in the ep structure. Note: This function is not used for EP0.
Definition at line 3214 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function deactivates an EP. This is done by clearing the USB Active EP bit in the Device EP control register. Note: This function is not used for EP0. EP0 cannot be deactivated.
Definition at line 3369 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function initializes dma descriptor chain.
DMA Descriptor Setup Definition at line 3515 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function does the setup for a data transfer for an EP and starts the transfer. For an IN transfer, the packets will be loaded into the appropriate Tx FIFO in the ISR. For OUT transfers, the packets are unloaded from the Rx FIFO in the ISR. the ISR.
DIEPDMAn Register write Enable the Non-Periodic Tx FIFO empty interrupt, or the Tx FIFO epmty interrupt in dedicated Tx FIFO mode, the data will be written into the fifo by the ISR. This is used for interrupt out transfers DOEPDMAn Register write Definition at line 3655 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function setup a zero length transfer in Buffer DMA and Slave modes for usb requests with zero field set.
Enable the Non-Periodic Tx FIFO empty interrupt, or the Tx FIFO epmty interrupt in dedicated Tx FIFO mode, the data will be written into the fifo by the ISR. Definition at line 3948 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function does the setup for a data transfer for EP0 and starts the transfer. For an IN transfer, the packets will be loaded into the appropriate Tx FIFO in the ISR. For OUT transfers, the packets are unloaded from the Rx FIFO in the ISR.
DMA Descriptor Setup DIEPDMA0 Register write Enable the Non-Periodic Tx FIFO empty interrupt, the data will be written into the fifo by the ISR. DMA Descriptor Setup DOEPDMA0 Register write Definition at line 4051 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function continues control IN transfers started by dwc_otg_ep0_start_transfer, when the transfer does not fit in a single packet. NOTE: The DIEPCTL0/DOEPCTL0 registers only have one bit for the packet count.
DMA Descriptor Setup DIEPDMA0 Register write Enable the Non-Periodic Tx FIFO empty interrupt, the data will be written into the fifo by the ISR. DMA Descriptor Setup DOEPDMA0 Register write Definition at line 4239 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
This function writes a packet into the Tx FIFO associated with the EP. For non-periodic EPs the non-periodic Tx FIFO is written. For periodic EPs the periodic Tx FIFO associated with the EP is written with all packets for the next micro-frame.
The buffer is padded to DWORD on a per packet basis in slave/dma mode if the MPS is not DWORD aligned. The last packet, if short, is also padded to a multiple of DWORD. ep->xfer_buff always starts DWORD aligned in memory and is a multiple of DWORD in length ep->xfer_len can be any number of bytes ep->xfer_count is a multiple of ep->maxpacket until the last packet FIFO access is DWORD
Definition at line 4438 of file dwc_otg_cil.c. |
|
||||||||||||
|
Set the EP STALL.
Definition at line 4509 of file dwc_otg_cil.c. |
|
||||||||||||
|
Clear the EP STALL.
Definition at line 4547 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
This function reads a packet from the Rx FIFO into the destination buffer. To read SETUP data use dwc_otg_read_setup_packet.
Definition at line 4590 of file dwc_otg_cil.c. |
|
|
Dump core registers and SPRAM.
Definition at line 4620 of file dwc_otg_cil.c. |
|
|
This functions reads the SPRAM and prints its content.
Definition at line 4756 of file dwc_otg_cil.c. |
|
|
This function reads the host registers and prints them.
Definition at line 4784 of file dwc_otg_cil.c. |
|
|
This function reads the core global registers and prints them.
Definition at line 4853 of file dwc_otg_cil.c. |
|
||||||||||||
|
Flush a Tx FIFO.
Definition at line 4959 of file dwc_otg_cil.c. |
|
|
Flush Rx FIFO.
Definition at line 4991 of file dwc_otg_cil.c. |
|
|
Do core a soft reset of the core. Be careful with this because it resets all the internal state machines of the core. Definition at line 5022 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
Register HCD callbacks. The callbacks are used to start and stop the HCD for interrupt processing.
Definition at line 5078 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
Register PCD callbacks. The callbacks are used to start and stop the PCD for interrupt processing.
Definition at line 5093 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function writes isoc data per 1 (micro)frame into tx fifo.
Definition at line 5109 of file dwc_otg_cil.c. |
|
||||||||||||
|
This function initializes a descriptor chain for Isochronous transfer.
Enable endpoint, clear nak Definition at line 5161 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies the OTG capabilities. The driver will automatically detect the value for this parameter if none is specified. 0 - HNP and SRP capable (default) 1 - SRP Only capable 2 - No HNP/SRP capable Definition at line 5361 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies whether to use slave or DMA mode for accessing the data FIFOs. The driver will automatically detect the value for this parameter if none is specified. 0 - Slave 1 - DMA (default, if available) Definition at line 5440 of file dwc_otg_cil.c. |
|
||||||||||||
|
When DMA mode is enabled specifies whether to use address DMA or DMA Descritor mode for accessing the data FIFOs in device mode. The driver will automatically detect the value for this parameter if none is specified. 0 - address DMA 1 - DMA Descriptor(default, if available) Definition at line 5470 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies whether low power mode is supported when attached to a Full Speed or Low Speed device in host mode. 0 - Don't support low power mode (default) 1 - Support low power mode Definition at line 5500 of file dwc_otg_cil.c. |
|
||||||||||||
|
Total number of 4-byte words in the data FIFO memory. This memory includes the Rx FIFO, non-periodic Tx FIFO, and periodic Tx FIFOs. 32 to 32768 (default 8192) Note: The total FIFO memory depth in the FPGA configuration is 8192. Definition at line 5547 of file dwc_otg_cil.c. |
|
||||||||||||
|
Number of 4-byte words in the Rx FIFO in device mode when dynamic FIFO sizing is enabled. 16 to 32768 (default 1064) Definition at line 5576 of file dwc_otg_cil.c. |
|
||||||||||||
|
Number of 4-byte words in the non-periodic Tx FIFO in device mode when dynamic FIFO sizing is enabled. 16 to 32768 (default 1024) Definition at line 5602 of file dwc_otg_cil.c. |
|
||||||||||||
|
Number of 4-byte words in the Rx FIFO in host mode when dynamic FIFO sizing is enabled. 16 to 32768 (default 1024) Definition at line 5635 of file dwc_otg_cil.c. |
|
||||||||||||
|
Number of 4-byte words in the non-periodic Tx FIFO in host mode when Dynamic FIFO sizing is enabled in the core. 16 to 32768 (default 1024) Definition at line 5667 of file dwc_otg_cil.c. |
|
||||||||||||
|
Number of 4-byte words in the host periodic Tx FIFO when dynamic FIFO sizing is enabled. 16 to 32768 (default 1024) Definition at line 5700 of file dwc_otg_cil.c. |
|
||||||||||||
|
The maximum transfer size supported in bytes. 2047 to 65,535 (default 65,535) Definition at line 5731 of file dwc_otg_cil.c. |
|
||||||||||||
|
The maximum number of packets in a transfer. 15 to 511 (default 511) Definition at line 5764 of file dwc_otg_cil.c. |
|
||||||||||||
|
The number of host channel registers to use. 1 to 16 (default 12) Note: The FPGA configuration supports a maximum of 12 host channels. Definition at line 5795 of file dwc_otg_cil.c. |
|
||||||||||||
|
The number of endpoints in addition to EP0 available for device mode operations. 1 to 15 (default 6 IN and OUT) Note: The FPGA configuration supports a maximum of 6 IN and OUT endpoints in addition to EP0. Definition at line 5825 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies the type of PHY interface to use. By default, the driver will automatically detect the phy_type. 0 - Full Speed PHY 1 - UTMI+ (default) 2 - ULPI Definition at line 5855 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies the maximum speed of operation in host and device mode. The actual speed depends on the speed of the attached device and the value of phy_type. The actual speed depends on the speed of the attached device. 0 - High Speed (default) 1 - Full Speed Definition at line 5904 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies the PHY clock rate in low power mode when connected to a Low Speed device in host mode. This parameter is applicable only if HOST_SUPPORT_FS_LS_LOW_POWER is enabled. If PHY_TYPE is set to FS then defaults to 6 MHZ otherwise 48 MHZ. 0 - 48 MHz 1 - 6 MHz Definition at line 5933 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies whether the ULPI operates at double or single data rate. This parameter is only applicable if PHY_TYPE is ULPI. 0 - single data rate ULPI interface with 8 bit wide data bus (default) 1 - double data rate ULPI interface with 4 bit wide data bus Definition at line 5970 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies the UTMI+ Data Width. This parameter is applicable for a PHY_TYPE of UTMI+ or ULPI. (For a ULPI PHY_TYPE, this parameter indicates the data width between the MAC and the ULPI Wrapper.) Also, this parameter is applicable only if the OTG_HSPHY_WIDTH cC parameter was set to "8 and 16 bits", meaning that the core has been configured to work at either data path width. 8 or 16 bits (default 16) Definition at line 6005 of file dwc_otg_cil.c. |
|
||||||||||||
|
Specifies whether to use the I2Cinterface for full speed PHY. This parameter is only applicable if PHY_TYPE is FS. 0 - No (default) 1 - Yes Definition at line 6056 of file dwc_otg_cil.c. |
|
||||||||||||||||
|
Number of 4-byte words in each of the periodic Tx FIFOs in device mode when dynamic FIFO sizing is enabled. 4 to 768 (default 256) Definition at line 6085 of file dwc_otg_cil.c. |
|
||||||||||||
|
The DMA Burst size (applicable only for External DMA Mode). 1, 4, 8 16, 32, 64, 128, 256 (default 32) Definition at line 6275 of file dwc_otg_cil.c. |
|
|
Get current mode. Returns 0 if in device mode, and 1 if in host mode. Definition at line 6653 of file dwc_otg_cil.c. |
|
|
Returns OTG version - either 1.3 or 2.0.
Definition at line 7012 of file dwc_otg_cil.c. |
|
|
Start the SRP timer to detect when the SRP does not complete within 6 seconds.
Definition at line 7023 of file dwc_otg_cil.c. |
1.3.9.1