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

📄 ohcihc.h

📁 Usb Host/Periphel Control TD1120 codes
💻 H
字号:
/*-----------------------------------------------------------------------------
$File: //hodad/usblink/3.4/source/hostctrl/otg242/ohcihc.h $
$DateTime: 2003/09/08 15:17:45 $
$Revision: #1 $
Purpose:   OHCD HostController definitions.

CONFIDENTIAL AND PROPRIETARY INFORMATION OF SOFTCONNEX TECHNOLOGIES, INC.

THIS NOTICE IS NOT TO BE DELETED, MODIFIED, MOVED OR CHANGED IN ANY WAY.

Copyright (c) 1999 - 2003 by SoftConnex Technologies, Inc. 

This software is protected by copyright laws and international copyright 
treaties, as well as other intellectual property laws and treaties.  This
software is a CONFIDENTIAL, unpublished work of authorship, and with portions 
constituting TRADE SECRETS of SoftConnex Technologies, Inc., a Delaware USA 
corporation.  Any unauthorized use, disclosure, and/or reproduction of this 
software, or any part of this software; or distribution of this software in any 
form or by any means; or storage of this software in any database or retrieval 
system, without the express written consent of, and license from, SoftConnex 
Technologies, Inc. is strictly prohibited.  This software is protected under the
copyright and/or trade secret laws in other countries in addition to USA.  All 
Rights Reserved.  Failure to abide by the use, disclosure and/or reproduction 
restrictions may result in civil and /or criminal penalties, and will be 
prosecuted to the maximum extent of the law.
-----------------------------------------------------------------------------*/

#ifndef _SOFTCONNEX_OHCIHC_H_
#define _SOFTCONNEX_OHCIHC_H_

#define OHCI_HC_REVISION               0x00
#define OHCI_HC_CTRL                   0x04
#define OHCI_HC_CMD_STATUS             0x08
#define OHCI_HC_INTR_STATUS            0x0C
#define OHCI_HC_INTR_ENABLE            0x10
#define OHCI_HC_INTR_DISABLE           0x14
#define OHCI_HC_HCCA                   0x18
#define OHCI_HC_PERIOD_CURRENT_ED      0x1C
#define OHCI_HC_CTRL_HEAD_ED           0x20
#define OHCI_HC_CTRL_CURRENT_ED        0x24
#define OHCI_HC_BULK_HEAD_ED           0x28
#define OHCI_HC_BULK_CURRENT_ED        0x2C
#define OHCI_HC_DONE_HEAD              0x30
#define OHCI_HC_FM_INTERVAL            0x34
#define OHCI_HC_FM_REMAINING           0x38
#define OHCI_HC_FM_NUMBER              0x3C
#define OHCI_HC_PERIODIC_START         0x40
#define OHCI_HC_LS_THRESHOLD           0x44
#define OHCI_HC_RH_DESCRIPTOR_A        0x48
#define OHCI_HC_RH_DESCRIPTOR_B        0x4C
#define OHCI_HC_RH_STATUS              0x50
#define OHCI_HC_RH_PORT0_STATUS        0x54

#define OHCI_HC_RH_PORT_STATUS(n)      (OHCI_HC_RH_PORT0_STATUS + ((n - 1) << 2))

#define OHCI_HC_CTRL_CBSR              0x00000003
#define OHCI_HC_CTRL_HCFS              0x000000C0
#define OHCI_HC_CTRL_RWE               0x00000400
#define OHCI_HC_CTRL_PLE               0x00000004
#define OHCI_HC_CTRL_IE                0x00000008
#define OHCI_HC_CTRL_CLE               0x00000010
#define OHCI_HC_CTRL_BLE               0x00000020

#define OHCI_HC_CTRL_HCFS_RESET        0x00000000
#define OHCI_HC_CTRL_HCFS_RESUME       0x00000040
#define OHCI_HC_CTRL_HCFS_OPERATIONAL  0x00000080
#define OHCI_HC_CTRL_HCFS_SUSPEND      0x000000C0


#define OHCI_HC_CMD_STATUS_HCR         0x00000001
#define OHCI_HC_CMD_STATUS_CLF         0x00000002
#define OHCI_HC_CMD_STATUS_BLF         0x00000004
#define OHCI_HC_CMD_STATUS_OCR         0x00000008
#define OHCI_HC_CMD_STATUS_SOC         0x00030000

#define OHCI_HC_INTR_STATUS_SO         0x00000001
#define OHCI_HC_INTR_STATUS_DH         0x00000002
#define OHCI_HC_INTR_STATUS_SF         0x00000004
#define OHCI_HC_INTR_STATUS_RD         0x00000008
#define OHCI_HC_INTR_STATUS_UE         0x00000010
#define OHCI_HC_INTR_STATUS_FNO        0x00000020
#define OHCI_HC_INTR_STATUS_RHSC       0x00000040
#define OHCI_HC_INTR_STATUS_OC         0x40000000
#define OHCI_HC_INTR_STATUS_MIE        0x80000000

#define OHCI_HC_FM_REMAINING_FR        0x00003FFF
#define OHCI_HC_FM_REMAINING_FRT       0x80000000

#define OHCI_HC_RH_DESCRIPTOR_A_NDP    0x000000FF
#define OHCI_HC_RH_DESCRIPTOR_A_NPS    0x00000200
#define OHCI_HC_RH_DESCRIPTOR_A_PSM    0x00000100
#define OHCI_HC_RH_DESCRIPTOR_A_DT     0x00000400
#define OHCI_HC_RH_DESCRIPTOR_A_OCPM   0x00000800
#define OHCI_HC_RH_DESCRIPTOR_A_NOCP   0x00001000
#define OHCI_HC_RH_DESCRIPTOR_A_POTPGT 0xFF000000

#define OHCI_HC_RH_DESCRIPTOR_B_DR     0x0000FFFF
#define OHCI_HC_RH_DESCRIPTOR_B_PPCM   0xFFFF0000
#define OHCI_HC_RH_DESCRIPTOR_B_DR0    0x00000001
#define OHCI_HC_RH_DESCRIPTOR_B_PPCM0  0x00010000

#define OHCI_HC_RH_STATUS_LPS          0x00000001
#define OHCI_HC_RH_STATUS_OCI          0x00000002
#define OHCI_HC_RH_STATUS_DRWE         0x00008000
#define OHCI_HC_RH_STATUS_LPSC         0x00010000
#define OHCI_HC_RH_STATUS_CCIC         0x00020000
#define OHCI_HC_RH_STATUS_CRWE         0x80000000

#endif

⌨️ 快捷键说明

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