📄 bvd_udc_hw.h
字号:
/*
** INTEL CONFIDENTIAL
** Copyright 2000-2003 Intel Corporation All Rights Reserved.
**
** The source code contained or described herein and all documents
** related to the source code (Material) are owned by Intel Corporation
** or its suppliers or licensors. Title to the Material remains with
** Intel Corporation or its suppliers and licensors. The Material contains
** trade secrets and proprietary and confidential information of Intel
** or its suppliers and licensors. The Material is protected by worldwide
** copyright and trade secret laws and treaty provisions. No part of the
** Material may be used, copied, reproduced, modified, published, uploaded,
** posted, transmitted, distributed, or disclosed in any way without Intel抯
** prior express written permission.
**
** No license under any patent, copyright, trade secret or other intellectual
** property right is granted to or conferred upon you by disclosure or
** delivery of the Materials, either expressly, by implication, inducement,
** estoppel or otherwise. Any license under such intellectual property rights
** must be express and approved by Intel in writing.
*/
/*
Module Name: $Workfile: bvd_udc_hw.h $
$Date: 6/24/03 10:22a $
Abstract:
Contains the UDC device and endpoint configuration
and vendor specific request codes
Notes:
*/
#ifndef __XSC1_USB_HW_H__
#define __XSC1_USB_HW_H__
typedef struct
{
unsigned char bmRequest, bRequest;
unsigned short wValue, wIndex, wLength;
} SetupPKG, *PSetupPKG;
//
// EndPoint configuration
//
//
// The control FIFO is 16 bytes and Cotulla's
// UDC is an highspeed device.
//
// ----- TEMPORARILY changed to 8 for testing.
#define EP0Len 16
//
// The BULK IN/OUT packet size may be configured to 8, 16, 32, or 64 bytes
// Use 64 bytes, the size of Cotulla's Endpoints 1 & 2 FIFO
//
#define EP1Len 64
#define EP2Len 64
//-------------------------------------------------------------------------
// Standard Chapter 9 definition
//-------------------------------------------------------------------------
// Request Codes
#define GET_STATUS 0x00
#define CLEAR_FEATURE 0x01
#define SET_FEATURE 0x03
#define SET_ADDRESS 0x05
#define GET_DESCRIPTOR 0x06
#define SET_DESCRIPTOR 0x07
#define GET_CONFIG 0x08
#define SET_CONFIG 0x09
#define GET_INTERFACE 0x0a
#define SET_INTERFACE 0x0b
//
// Device specific request to handle
// modem control signals
//
#define SET_CONTROL_LINE_STATE 0x22
// Descriptor Types
#define DEVICE 0x01
#define CONFIGURATION 0x02
#define STRING 0x03
#define INTERFACE 0x04
#define ENDPOINT 0x05
// Trace buffer if tracing is enabled.
// Previous address used was at end of NK IMAGE - 0x83F16000
#define UDC_PHYSICAL_TRACE_BUFFER 0x83E40000
// Trace types
#define UDCT_INTR 1
#define UDCT_EP0 2
#define UDCT_SEND_DATA 3
#define UDCT_GET_COMMAND 4
#define UDCT_COMMAND_DONE 5
#define UDCT_UDCCS0 6
#define UDCT_PRE_STATUS 7
#define UDCT_STALL 8
#define UDCT_SETUP 9
#define UDCT_RX_INT 10
#define UDCT_NO_RPC 11
#define UDCT_EP1_XMIT 12
#define UDCT_TPC 13
#define UDCT_TUR 14
#define UDCT_FORCE_OPR 15
#define UDCT_UDCCS0_STATE 16
#define UDCT_PARSE_SETUP 17
#define UDCT_GET_DESC 18
#define UDCT_INTR_EXIT 19
#define UDCT_STATUS_OUT 20
#define UDCT_STATUS_OUT_MISSED 21
#define UDCT_SET_CONFIG 22
#define UDCT_STATUS_IN 23
#define UDCT_ISR 24
#define UDCT_XMIT_DONE 25
#define UDCT_READ_COMP 26
#define UDCT_VENDOR_MODEM_CMD 27
#define UDCT_RX_DATA 28
#define UDCT_RX_INTR_DONE 29
#define UDCT_TX_DATA 30
#define UDCT_UDC_ISR0 31
#define UDCT_UDC_ISR1 32
#define UDCT_UDC_CSR_A 33
#define UDCT_UDC_CSR_B 34
#define UDCT_UDC_RX_BUF_EMPTY 35
#define UDC_STATE(x) x->eState
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -