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

📄 xsusbhostdrv.h

📁 优龙YLP270开发板 光盘自带的BIOS和实验例程源码 强烈推荐
💻 H
字号:
/******************************************************************************
**
**  COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
**  This software as well as the software described in it is furnished under 
**  license and may only be used or copied in accordance with the terms of the 
**  license. The information in this file is furnished for informational use 
**  only, is subject to change without notice, and should not be construed as 
**  a commitment by Intel Corporation. Intel Corporation assumes no 
**  responsibility or liability for any errors or inaccuracies that may appear 
**  in this document or any software that may be provided in association with 
**  this document. 
**  Except as permitted by such license, no part of this document may be 
**  reproduced, stored in a retrieval system, or transmitted in any form or by 
**  any means without the express written consent of Intel Corporation. 
**
**  FILENAME:   XsUsbHostDrv.h
**
**  PURPOSE:    This file defines types and masks to be used with
**              USB Host Interface Controller.
**
**  LAST MODIFIED: 	$Modtime: 7/17/03 1:01p $
******************************************************************************/

#ifndef _XsUsbHostDrv_h
#define _XsUsbHostDrv_h

#ifdef USB_HOST_GLOBALS
#define EXTRN
#else
#define EXTRN extern
#endif

#include "xllp_usbohci.h"

#define CLK_MGR_REGS_BASE   0x41300000
#define GPIO_REGS_BASE      0x40E00000
#define USBOHCI_REGS_BASE   0x4C000000      

// USB Host Controller Context Structure
typedef struct UsbHostContextS
{
	P_XLLP_USBOHCI_T USBOHCIRegP;		// Pointer to Usb Host Controller register base
	UINT32 loggedError;					// Used to report tests and drivers errors
} UsbHostContextT;

/*
************************************************************************************
*                            GLOBAL VARIABLES 
************************************************************************************
*/

EXTRN UsbHostContextT UsbHost;

/*
************************************************************************************
*                            FUNCTION PROTOTYPES 
************************************************************************************
*/
UINT32 XsUsbHostHWSetup(void);
void XsUsbHostShutdown(void);
void XsUsbHostSWInit(void);
void XsUsbHostSelectPowerManagementMode(INT mode, INT numPorts, INT* portMode);

#undef EXTRN

#endif  /* _XsUsbHostDrv_h */

⌨️ 快捷键说明

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