亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dwc_otg_cil.h

?? host usb 主設備程序 支持sd卡 mouse keyboard 的最單單的驅動程序 gcc編譯
?? H
?? 第 1 頁 / 共 2 頁
字號:
/* ========================================================================== * * Synopsys HS OTG Linux Software Driver and documentation (hereinafter, * "Software") is an Unsupported proprietary work of Synopsys, Inc. unless * otherwise expressly agreed to in writing between Synopsys and you. * * The Software IS NOT an item of Licensed Software or Licensed Product under * any End User Software License Agreement or Agreement for Licensed Product * with Synopsys or any supplement thereto. You are permitted to use and * redistribute this Software in source and binary forms, with or without * modification, provided that redistributions of source code must retain this * notice. You may not view, use, disclose, copy or distribute this file or * any information contained herein except pursuant to this license grant from * Synopsys. If you do not agree with this notice, including the disclaimer * below, then you are not authorized to use the Software. * * THIS SOFTWARE IS BEING DISTRIBUTED BY SYNOPSYS SOLELY ON AN "AS IS" BASIS * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE HEREBY DISCLAIMED. IN NO EVENT SHALL SYNOPSYS 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. * ========================================================================== */#if !defined(__DWC_CIL_H__)#define __DWC_CIL_H__#include "dwc_otg_plat.h"#include "dwc_otg_regs.h"#ifdef DEBUG#include "linux/timer.h"#endif/** * @file * This file contains the interface to the Core Interface Layer. *//** * The <code>dwc_ep</code> structure represents the state of a single * endpoint when acting in device mode. It contains the data items * needed for an endpoint to be activated and transfer packets. */typedef struct dwc_ep{	/** EP number used for register address lookup */	uint8_t	 num;	/** EP direction 0 = OUT */	unsigned is_in : 1;	/** EP active. */	unsigned active : 1;	/** Periodic Tx FIFO # for IN EPs For INTR EP set to 0 to use non-periodic Tx FIFO		If dedicated Tx FIFOs are enabled for all IN Eps - Tx FIFO # FOR IN EPs*/	unsigned tx_fifo_num : 4;	/** EP type: 0 - Control, 1 - ISOC,	 2 - BULK,	3 - INTR */	unsigned type : 2;#define DWC_OTG_EP_TYPE_CONTROL	   0#define DWC_OTG_EP_TYPE_ISOC	   1#define DWC_OTG_EP_TYPE_BULK	   2#define DWC_OTG_EP_TYPE_INTR	   3	/** DATA start PID for INTR and BULK EP */	unsigned data_pid_start : 1;	/** Frame (even/odd) for ISOC EP */	unsigned even_odd_frame : 1;	/** Max Packet bytes */	unsigned maxpacket : 11;	/** @name Transfer state */	/** @{ */	/**	 * Pointer to the beginning of the transfer buffer -- do not modify	 * during transfer.	 */	uint32_t dma_addr;	uint32_t dma_desc_addr;	dwc_otg_dma_desc_t* desc_addr;	uint8_t *start_xfer_buff;	/** pointer to the transfer buffer */	uint8_t *xfer_buff;	/** Number of bytes to transfer */	unsigned xfer_len : 19;	/** Number of bytes transferred. */	unsigned xfer_count : 19;	/** Sent ZLP */	unsigned sent_zlp : 1;	/** Total len for control transfer */	unsigned total_len : 19;	/** stall clear flag */	unsigned stall_clear_flag : 1;#ifdef _EN_ISOC_	/**	 * Variables specific for ISOC EPs	 *	 */	/** DMA addresses of ISOC buffers */	uint32_t dma_addr0;	uint32_t dma_addr1;	uint32_t iso_dma_desc_addr;	dwc_otg_iso_dma_desc_t* iso_desc_addr;	/** pointer to the transfer buffers */	uint8_t *xfer_buff0;	uint8_t *xfer_buff1;	/** number of ISOC Buffer is processing */	uint32_t proc_buf_num;	/** Interval of ISOC Buffer processing */	uint32_t buf_proc_intrvl;	/** Data size for regular frame */	uint32_t data_per_frame;	/* todo - pattern data support is to be implemented in the future */	/** Data size for pattern frame */	uint32_t data_pattern_frame;	/** Frame number of pattern data */	uint32_t sync_frame;	/** bInterval */	uint32_t bInterval;	/** DMA Desc count for buffers */	uint32_t desc_cnt;	/** ISO Packet number per frame */	uint32_t pkt_per_frm;	/** Next frame num for which will be setup DMA Desc */	uint32_t next_frame;#endif //_EN_ISOC_/** @} */} dwc_ep_t;/* * Reasons for halting a host channel. */typedef enum dwc_otg_halt_status{	DWC_OTG_HC_XFER_NO_HALT_STATUS,	DWC_OTG_HC_XFER_COMPLETE,	DWC_OTG_HC_XFER_URB_COMPLETE,	DWC_OTG_HC_XFER_ACK,	DWC_OTG_HC_XFER_NAK,	DWC_OTG_HC_XFER_NYET,	DWC_OTG_HC_XFER_STALL,	DWC_OTG_HC_XFER_XACT_ERR,	DWC_OTG_HC_XFER_FRAME_OVERRUN,	DWC_OTG_HC_XFER_BABBLE_ERR,	DWC_OTG_HC_XFER_DATA_TOGGLE_ERR,	DWC_OTG_HC_XFER_AHB_ERR,	DWC_OTG_HC_XFER_PERIODIC_INCOMPLETE,	DWC_OTG_HC_XFER_URB_DEQUEUE} dwc_otg_halt_status_e;/** * Host channel descriptor. This structure represents the state of a single * host channel when acting in host mode. It contains the data items needed to * transfer packets to an endpoint via a host channel. */typedef struct dwc_hc{	/** Host channel number used for register address lookup */	uint8_t	 hc_num;	/** Device to access */	unsigned dev_addr : 7;	/** EP to access */	unsigned ep_num : 4;	/** EP direction. 0: OUT, 1: IN */	unsigned ep_is_in : 1;	/**	 * EP speed.	 * One of the following values:	 *	- DWC_OTG_EP_SPEED_LOW	 *	- DWC_OTG_EP_SPEED_FULL	 *	- DWC_OTG_EP_SPEED_HIGH	 */	unsigned speed : 2;#define DWC_OTG_EP_SPEED_LOW	0#define DWC_OTG_EP_SPEED_FULL	1#define DWC_OTG_EP_SPEED_HIGH	2	/**	 * Endpoint type.	 * One of the following values:	 *	- DWC_OTG_EP_TYPE_CONTROL: 0	 *	- DWC_OTG_EP_TYPE_ISOC: 1	 *	- DWC_OTG_EP_TYPE_BULK: 2	 *	- DWC_OTG_EP_TYPE_INTR: 3	 */	unsigned ep_type : 2;	/** Max packet size in bytes */	unsigned max_packet : 11;	/**	 * PID for initial transaction.	 * 0: DATA0,<br>	 * 1: DATA2,<br>	 * 2: DATA1,<br>	 * 3: MDATA (non-Control EP),	 *	  SETUP (Control EP)	 */	unsigned data_pid_start : 2;#define DWC_OTG_HC_PID_DATA0 0#define DWC_OTG_HC_PID_DATA2 1#define DWC_OTG_HC_PID_DATA1 2#define DWC_OTG_HC_PID_MDATA 3#define DWC_OTG_HC_PID_SETUP 3	/** Number of periodic transactions per (micro)frame */	unsigned multi_count: 2;	/** @name Transfer State */	/** @{ */	/** Pointer to the current transfer buffer position. */	uint8_t *xfer_buff;	/** Total number of bytes to transfer. */	uint32_t xfer_len;	/** Number of bytes transferred so far. */	uint32_t xfer_count;	/** Packet count at start of transfer.*/	uint16_t start_pkt_count;	/**	 * Flag to indicate whether the transfer has been started. Set to 1 if	 * it has been started, 0 otherwise.	 */	uint8_t xfer_started;	/**	 * Set to 1 to indicate that a PING request should be issued on this	 * channel. If 0, process normally.	 */	uint8_t do_ping;	/**	 * Set to 1 to indicate that the error count for this transaction is	 * non-zero. Set to 0 if the error count is 0.	 */	uint8_t error_state;	/**	 * Set to 1 to indicate that this channel should be halted the next	 * time a request is queued for the channel. This is necessary in	 * slave mode if no request queue space is available when an attempt	 * is made to halt the channel.	 */	uint8_t halt_on_queue;	/**	 * Set to 1 if the host channel has been halted, but the core is not	 * finished flushing queued requests. Otherwise 0.	 */	uint8_t halt_pending;	/**	 * Reason for halting the host channel.	 */	dwc_otg_halt_status_e	halt_status;	/*	 * Split settings for the host channel	 */	uint8_t do_split;		   /**< Enable split for the channel */	uint8_t complete_split;	   /**< Enable complete split */	uint8_t hub_addr;		   /**< Address of high speed hub */	uint8_t port_addr;		   /**< Port of the low/full speed device */	/** Split transaction position	 * One of the following values:	 *	  - DWC_HCSPLIT_XACTPOS_MID	 *	  - DWC_HCSPLIT_XACTPOS_BEGIN	 *	  - DWC_HCSPLIT_XACTPOS_END	 *	  - DWC_HCSPLIT_XACTPOS_ALL */	uint8_t xact_pos;	/** Set when the host channel does a short read. */	uint8_t short_read;	/**	 * Number of requests issued for this channel since it was assigned to	 * the current transfer (not counting PINGs).	 */	uint8_t requests;	/**	 * Queue Head for the transfer being processed by this channel.	 */	struct dwc_otg_qh *qh;	/** @} */	/** Entry in list of host channels. */	struct list_head	hc_list_entry;} dwc_hc_t;/** * The following parameters may be specified when starting the module. These * parameters define how the DWC_otg controller should be configured. * Parameter values are passed to the CIL initialization function * dwc_otg_cil_init. */typedef struct dwc_otg_core_params{	int32_t opt;#define dwc_param_opt_default 1	/**	 * 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	 */	int32_t otg_cap;#define DWC_OTG_CAP_PARAM_HNP_SRP_CAPABLE	0#define DWC_OTG_CAP_PARAM_SRP_ONLY_CAPABLE	1#define DWC_OTG_CAP_PARAM_NO_HNP_SRP_CAPABLE	2#define dwc_param_otg_cap_default DWC_OTG_CAP_PARAM_HNP_SRP_CAPABLE	/**	 * 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)	 */	int32_t dma_enable;#define dwc_param_dma_enable_default 1	/**	 * 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)	 */	int32_t dma_desc_enable;#define dwc_param_dma_desc_enable_default 0	/** The DMA Burst size (applicable only for External DMA	 * Mode). 1, 4, 8 16, 32, 64, 128, 256 (default 32)	 */	int32_t dma_burst_size;	 /* Translate this to GAHBCFG values */#define dwc_param_dma_burst_size_default 32	/**	 * 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	 */	int32_t speed;#define dwc_param_speed_default 0#define DWC_SPEED_PARAM_HIGH 0#define DWC_SPEED_PARAM_FULL 1	/** 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	 */	int32_t host_support_fs_ls_low_power;#define dwc_param_host_support_fs_ls_low_power_default 0	/** 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	 */	int32_t host_ls_low_power_phy_clk;#define dwc_param_host_ls_low_power_phy_clk_default 0#define DWC_HOST_LS_LOW_POWER_PHY_CLK_PARAM_48MHZ 0#define DWC_HOST_LS_LOW_POWER_PHY_CLK_PARAM_6MHZ 1	/**	 * 0 - Use cC FIFO size parameters	 * 1 - Allow dynamic FIFO sizing (default)	 */	int32_t enable_dynamic_fifo;#define dwc_param_enable_dynamic_fifo_default 1	/** 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.	 */	int32_t data_fifo_size;#define dwc_param_data_fifo_size_default 8192	/** Number of 4-byte words in the Rx FIFO in device mode when dynamic	 * FIFO sizing is enabled.	 * 16 to 32768 (default 1064)	 */	int32_t dev_rx_fifo_size;#define dwc_param_dev_rx_fifo_size_default 1064	/** 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)	 */	int32_t dev_nperio_tx_fifo_size;#define dwc_param_dev_nperio_tx_fifo_size_default 1024	/** 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)	 */	uint32_t dev_perio_tx_fifo_size[MAX_PERIO_FIFOS];#define dwc_param_dev_perio_tx_fifo_size_default 256	/** Number of 4-byte words in the Rx FIFO in host mode when dynamic	 * FIFO sizing is enabled.	 * 16 to 32768 (default 1024)	 */	int32_t host_rx_fifo_size;#define dwc_param_host_rx_fifo_size_default 1024		/** 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)	 */	int32_t host_nperio_tx_fifo_size;#define dwc_param_host_nperio_tx_fifo_size_default 1024	/** Number of 4-byte words in the host periodic Tx FIFO when dynamic	 * FIFO sizing is enabled.	 * 16 to 32768 (default 1024)	 */	int32_t host_perio_tx_fifo_size;#define dwc_param_host_perio_tx_fifo_size_default 1024	/** The maximum transfer size supported in bytes.	 * 2047 to 65,535  (default 65,535)	 */	int32_t max_transfer_size;#define dwc_param_max_transfer_size_default 65535	/** The maximum number of packets in a transfer.	 * 15 to 511  (default 511)	 */	int32_t max_packet_count;#define dwc_param_max_packet_count_default 511	/** The number of host channel registers to use.	 * 1 to 16 (default 12)	 * Note: The FPGA configuration supports a maximum of 12 host channels.	 */	int32_t host_channels;#define dwc_param_host_channels_default 12	/** 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.	 */

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲天堂免费看| 色综合久久综合中文综合网| 不卡视频在线看| 91精品国产一区二区三区香蕉| 久久久777精品电影网影网| 亚洲乱码中文字幕综合| 国产一区二区美女| 欧美精品三级日韩久久| 自拍偷拍国产亚洲| 国产高清不卡一区| 日韩一区二区免费视频| 一区二区三区视频在线看| 国产成人丝袜美腿| 日韩欧美国产一区二区三区| 亚洲电影第三页| 99久久精品国产一区二区三区| 久久精品一区八戒影视| 久久激情综合网| 在线成人免费视频| 亚洲电影第三页| 色激情天天射综合网| 亚洲色图在线视频| www.亚洲人| 国产精品少妇自拍| 从欧美一区二区三区| 久久精品在线观看| 国产精品一区二区不卡| 久久蜜桃香蕉精品一区二区三区| 久久99热这里只有精品| 精品少妇一区二区三区视频免付费| 午夜视频一区二区| 欧美日韩精品系列| 香蕉久久夜色精品国产使用方法| 欧洲一区二区av| 一区二区欧美国产| 色婷婷亚洲精品| 亚洲成人精品影院| 4438亚洲最大| 久久97超碰色| 欧美tickle裸体挠脚心vk| 麻豆免费精品视频| 日韩视频国产视频| 日本午夜一区二区| 日韩一区二区三区在线视频| 日韩—二三区免费观看av| 欧美一区二区三区人| 久久爱www久久做| 国产欧美日韩中文久久| 91在线云播放| 五月婷婷色综合| 26uuu另类欧美亚洲曰本| 国产中文字幕一区| 国产精品久久国产精麻豆99网站| 91免费小视频| 日韩国产精品久久| 久久女同精品一区二区| 成人成人成人在线视频| 一区二区三区毛片| 欧美大胆一级视频| a4yy欧美一区二区三区| 奇米四色…亚洲| 久久欧美中文字幕| 91久久香蕉国产日韩欧美9色| 亚洲成人自拍偷拍| 精品国产免费人成在线观看| 成人久久视频在线观看| 亚洲综合一二三区| 精品福利在线导航| 日本高清视频一区二区| 韩国三级在线一区| 一区二区三区美女| 国产日韩亚洲欧美综合| 欧美三级日本三级少妇99| 国产自产视频一区二区三区| 一个色在线综合| 欧美极品美女视频| 欧美日韩免费一区二区三区 | 成人午夜在线免费| 亚洲一区二区三区四区五区黄| 久久亚洲一区二区三区四区| 91浏览器打开| 久久草av在线| 亚洲bt欧美bt精品| 亚洲视频在线一区| 久久久久久亚洲综合| 欧美久久久久免费| 99国产精品一区| 国产在线视频一区二区三区| 亚洲成人免费电影| 亚洲天堂精品在线观看| 精品国产一区二区精华| 欧美日韩亚洲丝袜制服| 91麻豆精品一区二区三区| 精品一区二区在线播放| 亚洲a一区二区| 亚洲综合视频在线| 国产精品视频一二三| 亚洲精品一区二区三区在线观看| 欧美老年两性高潮| 日本韩国欧美三级| av高清久久久| 丁香网亚洲国际| 国内精品伊人久久久久av一坑| 午夜精彩视频在线观看不卡| 亚洲欧美另类小说| 欧美激情中文字幕一区二区| ww久久中文字幕| 亚洲精品一区二区三区影院 | 91日韩在线专区| 国产成人在线视频网站| 国内成人免费视频| 久久国产精品色| 美女任你摸久久| 韩国成人福利片在线播放| 美女www一区二区| 日韩国产欧美一区二区三区| 日韩电影一区二区三区| 午夜成人免费视频| 亚洲国产一区视频| 午夜精品福利在线| 日韩影院在线观看| 天天射综合影视| 免费人成精品欧美精品| 久久国产福利国产秒拍| 91浏览器在线视频| 色一情一伦一子一伦一区| 91小视频在线观看| 色吊一区二区三区| 91.麻豆视频| 久久综合色婷婷| 国产精品国产a| 亚洲一区二区五区| 日韩精品电影在线| 激情六月婷婷久久| av网站免费线看精品| 欧美在线看片a免费观看| 欧美日韩国产综合视频在线观看| 日韩区在线观看| 欧美激情一区在线观看| 一区二区三区日本| 美女在线一区二区| 国产精品99久久久久久似苏梦涵| 99视频在线观看一区三区| 日本高清成人免费播放| 91麻豆精品国产自产在线| 久久久亚洲精华液精华液精华液| 18成人在线观看| 青青草原综合久久大伊人精品| 国产在线精品视频| 成人av电影观看| 制服丝袜在线91| 中文字幕欧美激情| 亚洲bdsm女犯bdsm网站| 国产不卡视频在线播放| 欧美日韩综合一区| 久久亚洲春色中文字幕久久久| 亚洲色图制服丝袜| 韩国精品主播一区二区在线观看| 91在线观看成人| 2023国产精华国产精品| 夜夜嗨av一区二区三区网页 | 天天综合色天天| 成人激情动漫在线观看| 91麻豆精品久久久久蜜臀 | 欧美一级久久久| 亚洲人妖av一区二区| 免费在线观看成人| 色婷婷亚洲婷婷| 日本一区二区成人在线| 日本伊人精品一区二区三区观看方式| 豆国产96在线|亚洲| 欧美一级一区二区| 亚洲欧洲美洲综合色网| 精品一区二区三区影院在线午夜| 欧美性xxxxx极品少妇| 日本一二三不卡| 国产尤物一区二区在线| 制服丝袜av成人在线看| 亚洲天堂网中文字| 国产成人亚洲综合a∨婷婷| 日韩一级大片在线观看| 一区二区成人在线| 99久久精品免费看国产| 国产日韩欧美亚洲| 蜜桃免费网站一区二区三区| 欧美老肥妇做.爰bbww| 亚洲午夜免费福利视频| 色欲综合视频天天天| 日韩一区在线免费观看| 成人国产免费视频| 欧美极品少妇xxxxⅹ高跟鞋| 国产精品一区二区不卡| 26uuu亚洲综合色| 久久99热这里只有精品| 日韩精品资源二区在线| 免费在线观看一区| 日韩午夜在线播放| 久久精品噜噜噜成人av农村| 日韩精品在线一区| 麻豆精品一二三|