⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hdrc_cnf.h

📁 omap3 linux 2.6 用nocc去除了冗余代码
💻 H
字号:
/* * Copyright 2005 Mentor Graphics Corporation * USB High-Speed Multi-Point Dual-Role Controller Configuration * * Copyright Mentor Graphics Corporation and Licensors 2004 * Copyright (C) 2005 by Texas Instruments * * This file contains configuration constants for the (m)hdrc * silicon as integrated into DaVinci CPUs. */#define	__ARCH_MUSB_HDRC_CNF/* ** Number of Tx endpoints ** *//* Legal values are 1 - 16 (this value includes EP0) */#define MUSB_C_NUM_EPT 16/* ** Number of Rx endpoints ** *//* Legal values are 1 - 16 (this value includes EP0) */#define MUSB_C_NUM_EPR 16/* ** Endpoint 1 to 15 direction types ** *//* C_EP1_DEF is defined if either Tx endpoint 1 or Rx endpoint 1 are used */#define MUSB_C_EP1_DEF/* C_EP1_TX_DEF is defined if Tx endpoint 1 is used */#define MUSB_C_EP1_TX_DEF/* C_EP1_RX_DEF is defined if Rx endpoint 1 is used */#define MUSB_C_EP1_RX_DEF/* C_EP1_TOR_DEF is defined if Tx endpoint 1 and Rx endpoint 1 share a FIFO *//*`define C_EP1_TOR_DEF *//* C_EP1_TAR_DEF is defined if both Tx endpoint 1 and Rx endpoint 1 are used *//* and do not share a FIFO */#define MUSB_C_EP1_TAR_DEF/* Similarly for all other used endpoints */#define MUSB_C_EP2_DEF#define MUSB_C_EP2_TX_DEF#define MUSB_C_EP2_RX_DEF#define MUSB_C_EP2_TAR_DEF#define MUSB_C_EP3_DEF#define MUSB_C_EP3_TX_DEF#define MUSB_C_EP3_RX_DEF#define MUSB_C_EP3_TAR_DEF#define MUSB_C_EP4_DEF#define MUSB_C_EP4_TX_DEF#define MUSB_C_EP4_RX_DEF#define MUSB_C_EP4_TAR_DEF#define MUSB_C_EP5_DEF#define MUSB_C_EP5_TX_DEF#define MUSB_C_EP5_RX_DEF#define MUSB_C_EP5_TAR_DEF#define MUSB_C_EP6_DEF#define MUSB_C_EP6_TX_DEF#define MUSB_C_EP6_RX_DEF#define MUSB_C_EP6_TAR_DEF#define MUSB_C_EP7_DEF#define MUSB_C_EP7_TX_DEF#define MUSB_C_EP7_RX_DEF#define MUSB_C_EP7_TAR_DEF#define MUSB_C_EP8_DEF#define MUSB_C_EP8_TX_DEF#define MUSB_C_EP8_RX_DEF#define MUSB_C_EP8_TAR_DEF#define MUSB_C_EP9_DEF#define MUSB_C_EP9_TX_DEF#define MUSB_C_EP9_RX_DEF#define MUSB_C_EP9_TAR_DEF#define MUSB_C_EP10_DEF#define MUSB_C_EP10_TX_DEF#define MUSB_C_EP10_RX_DEF#define MUSB_C_EP10_TAR_DEF#define MUSB_C_EP11_DEF#define MUSB_C_EP11_TX_DEF#define MUSB_C_EP11_RX_DEF#define MUSB_C_EP11_TAR_DEF#define MUSB_C_EP12_DEF#define MUSB_C_EP12_TX_DEF#define MUSB_C_EP12_RX_DEF#define MUSB_C_EP12_TAR_DEF#define MUSB_C_EP13_DEF#define MUSB_C_EP13_TX_DEF#define MUSB_C_EP13_RX_DEF#define MUSB_C_EP13_TAR_DEF#define MUSB_C_EP14_DEF#define MUSB_C_EP14_TX_DEF#define MUSB_C_EP14_RX_DEF#define MUSB_C_EP14_TAR_DEF#define MUSB_C_EP15_DEF#define MUSB_C_EP15_TX_DEF#define MUSB_C_EP15_RX_DEF#define MUSB_C_EP15_TAR_DEF/* ** Endpoint 1 to 15 FIFO address bits ** *//* Legal values are 3 to 13 - corresponding to FIFO sizes of 8 to 8192 bytes. *//* If an Tx endpoint shares a FIFO with an Rx endpoint then the Rx FIFO size *//* must be the same as the Tx FIFO size. *//* All endpoints 1 to 15 must be defined, unused endpoints should be set to 2. */#define MUSB_C_EP1T_BITS 10#define MUSB_C_EP1R_BITS 10#define MUSB_C_EP2T_BITS 9#define MUSB_C_EP2R_BITS 9#define MUSB_C_EP3T_BITS 3#define MUSB_C_EP3R_BITS 3#define MUSB_C_EP4T_BITS 3#define MUSB_C_EP4R_BITS 3#define MUSB_C_EP5T_BITS 3#define MUSB_C_EP5R_BITS 3#define MUSB_C_EP6T_BITS 3#define MUSB_C_EP6R_BITS 3#define MUSB_C_EP7T_BITS 3#define MUSB_C_EP7R_BITS 3#define MUSB_C_EP8T_BITS 3#define MUSB_C_EP8R_BITS 3#define MUSB_C_EP9T_BITS 3#define MUSB_C_EP9R_BITS 3#define MUSB_C_EP10T_BITS 3#define MUSB_C_EP10R_BITS 3#define MUSB_C_EP11T_BITS 3#define MUSB_C_EP11R_BITS 3#define MUSB_C_EP12T_BITS 3#define MUSB_C_EP12R_BITS 3#define MUSB_C_EP13T_BITS 3#define MUSB_C_EP13R_BITS 3#define MUSB_C_EP14T_BITS 3#define MUSB_C_EP14R_BITS 3#define MUSB_C_EP15T_BITS 3#define MUSB_C_EP15R_BITS 3/* Define the following constant if the USB2.0 Transceiver Macrocell data width is 16-bits. *//* `define C_UTM_16 *//* Define this constant if the CPU uses big-endian byte ordering. *//*`define C_BIGEND *//* Define the following constant if any Tx endpoint is required to support multiple bulk packets. *//* `define C_MP_TX *//* Define the following constant if any Rx endpoint is required to support multiple bulk packets. *//* `define C_MP_RX *//* Define the following constant if any Tx endpoint is required to support high bandwidth ISO. *//* `define C_HB_TX *//* Define the following constant if any Rx endpoint is required to support high bandwidth ISO. *//* `define C_HB_RX *//* Define the following constant if software connect/disconnect control is required. */#define MUSB_C_SOFT_CON/* Define the following constant if Vendor Control Registers are required. *//* `define C_VEND_REG *//* Vendor control register widths. */#define MUSB_C_VCTL_BITS 4#define MUSB_C_VSTAT_BITS 8/* Define the following constant to include a DMA controller. */#define MUSB_C_DMA/* Define the following constant if 2 or more DMA channels are required. */#define MUSB_C_DMA2/* Define the following constant if 3 or more DMA channels are required. */#define MUSB_C_DMA3/* Define the following constant if 4 or more DMA channels are required. */#define MUSB_C_DMA4/* Define the following constant if 5 or more DMA channels are required. *//*`define C_DMA5 *//* Define the following constant if 6 or more DMA channels are required. *//*`define C_DMA6 *//* Define the following constant if 7 or more DMA channels are required. *//*`define C_DMA7 *//* Define the following constant if 8 or more DMA channels are required. *//*`define C_DMA8 *//* ** Enable Dynamic FIFO Sizing ** */#define MUSB_C_DYNFIFO_DEF/* ** Derived constants ** *//* The following constants are derived from the previous configuration constants *//* Total number of endpoints * Legal values are 2 - 16 * This must be equal to the larger of C_NUM_EPT, C_NUM_EPR */#define MUSB_C_NUM_EPS 16/* C_EPMAX_BITS is equal to the largest endpoint FIFO word address bits */#define MUSB_C_EPMAX_BITS 12/* C_RAM_BITS is the number of address bits required to address the RAM (32-bit * addresses).  It is defined as log2 of the sum of 2** of all the endpoint FIFO * dword address bits (rounded up). */#define MUSB_C_RAM_BITS 12

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -