📄 oalfuncs.h
字号:
/*
* The content of this file or document is CONFIDENTIAL and PROPRIETARY
* to Jade Technologies Co., Ltd. It is subjected to the terms of a
* License Agreement between Licensee and Jade Technologies Co., Ltd.
* restricting among other things, the use, reproduction, distribution
* and transfer. Each of the embodiments, including this information
* and any derivative work shall retain this copyright notice.
*
* Copyright (c) 2004 - 2005 Jade Technologies Co., Ltd.
* All rights reserved.
// ----------------------------------------------------------------
// File: oalfuncs.h,v
// Revision: 1.0
// ----------------------------------------------------------------
// $
/*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
* ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
*
* All Rights Reserved
*
* oalfuncs - header file for declaring OALfunction prototypes that
* exist in OAL - kernel and Eboot use only
*/
#ifndef __oalfuncs_h
#define __oalfuncs_h
// fw_utils.s
void uSecsWait(unsigned int usecs, unsigned int virtoffset);
void WFI(void);
int GetPC(void);
void ARM_PowerOff(void);
// timerx20t.c
void InitClock(void);
void HalTimerInit(void);
// serial.c
void InitSerial(ULONG);
// board.c
void pHALir_EnableIrq(DWORD irq);
void pHALir_DisableIrq(DWORD irq);
void pHALir_DisableVic(DWORD irq);
void uHALr_InitTimers(void);
void pHALir_EnableTimerInterrupt(DWORD timer);
void pHALir_DisableTimerInterrupt(DWORD timer);
BOOL pHALir_TimerInterruptEnabled(DWORD timer);
BOOL pHALir_HasTimerInterrupt(DWORD timer);
void pHALir_ClearTimerInterrupt(DWORD timer);
void CPUEnterIdle(DWORD dwIdleParam);
DWORD CPUGetSysTimerCountMax(DWORD dwIdleMSecRequested);
void CPUSetSysTimerCount(DWORD dwIdleMSec);
BOOL CPUClearSysTimerIRQ(void);
DWORD CPUGetSysTimerCountElapsed(DWORD dwTimerCountdownMSec, volatile DWORD *pCurMSec,
DWORD *pPartialCurMSec, volatile ULARGE_INTEGER *pCurTicks );
DWORD PerfCountSinceTick();
DWORD PerfCountFreq();
// cfw_platform.h
DWORD OEMTranslateIrq(DWORD Irq);
DWORD OEMTranslateSysIntr(DWORD SysIntr);
DWORD OEMRequestSysIntr(DWORD Irq);
DWORD OEMReleaseSysIntr(DWORD SysIntr);
// vfpasm.s
BOOL CPUHasVFP (void);
void EnableVFP (void);
typedef enum
{
GPIO_Read = 0 ,
GPIO_Write ,
GPIO_IntRead ,
GPIO_IntClear ,
GPIO_IntEnable ,
GPIO_IntType
}GPIOControlCode;
typedef struct
{
int num;
int pin;
GPIOControlCode code;
int* value;
}OEM_IOCTL_GPIO;
#define HAL_IOCTL_GPIO (HAL_IOCTL_FUNCTION_BASE+10)
int SharedGPIOControl( int num , int pin , GPIOControlCode controlcode , int*value );
#define HAL_IOCTL_AACI_DMA (HAL_IOCTL_FUNCTION_BASE+11)
#define HAL_IOCTL_AACI_GETBUFFER (HAL_IOCTL_FUNCTION_BASE+12)
#define HAL_IOCTL_AACI_CLEARSTATUS (HAL_IOCTL_FUNCTION_BASE+13)
#endif /* ndef __oalfuncs_h */
/* EOF oalfuncs.h */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -