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

📄 timers.h

📁 pxa270 的bootloader源码
💻 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:       timers.h
**
**  PURPOSE:        This file contains the Power-On Self Test definitions for
**                  the timers needed to support Lubbock.
**
**  LAST MODIFIED:  $Modtime: 5/18/01 7:37a $
******************************************************************************/

#ifndef _timers_h_
#define _timers_h_

#define OST_BASE_PHYSICAL   0x40A00000

typedef VOID (*TimerWaitT) (PVOID ctxP, UINT count);
typedef INT (*TimerGetTimebaseT)(PVOID ctxP);
typedef INT (*TimerGetTimerT) (PVOID ctxP);
typedef INT (*TimerGetDeltaT) (PVOID ctxP, UINT start);

typedef struct MatchRegBitsS {
    UINT m0    :1;
    UINT m1    :1;
    UINT m2    :1;
    UINT m3    :1;
    UINT rsvd0 :28;
} MatchRegBitsT;

typedef struct OwerBitsS {
    UINT wme   :1;
    UINT rsvd0 :31;
} OwerBitsT;

typedef struct OstRegS {
    UINT             osmr[4];
    UINT             oscr;
    MatchRegBitsT    ossr;
    OwerBitsT        ower;
    MatchRegBitsT    oier;
} OstRegT;

typedef struct OstContextS {
    PVUINT            regsP;
    INT               testError;
    TimerWaitT        waitFnP;
    TimerGetTimebaseT getTimebaseFnP;
    TimerGetTimerT    getTimerFnP;
    TimerGetDeltaT    getDeltaFnP;
} OstContextT;

#ifdef OST_GLOBALS
#define EXTRN_OST
#else
#define EXTRN_OST extern
#endif

EXTRN_OST OstContextT Ost;

VOID XsOstSWInit(VOID);
VOID WaitUs(INT usVal);
VOID WaitMs(INT msVal);

#endif // _timers_h_

⌨️ 快捷键说明

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