?? bsplocal.h
字號:
/* @(#) pSOSystem PowerPC/V2.2.2: bsps/ads8xxV2/src/bsplocal.h 2.4 97/09/29 15:45:57 */
/***********************************************************************/
/* */
/* MODULE: bsplocal.h */
/* DATE: 97/09/29 */
/* PURPOSE: Declarations of functions and variables local to the BSP */
/* */
/*---------------------------------------------------------------------*/
/* */
/* Copyright 1991 - 1997, Integrated Systems, Inc. */
/* ALL RIGHTS RESERVED */
/* */
/* Permission is hereby granted to licensees of Integrated Systems, */
/* Inc. products to use or abstract this computer program for the */
/* sole purpose of implementing a product based on Integrated */
/* Systems, Inc. products. No other rights to reproduce, use, */
/* or disseminate this computer program, whether in part or in */
/* whole, are granted. */
/* */
/* Integrated Systems, Inc. makes no representation or warranties */
/* with respect to the performance of this computer program, and */
/* specifically disclaims any responsibility for any damages, */
/* special or consequential, connected with the use of this program. */
/* */
/*---------------------------------------------------------------------*/
/* */
/* */
/***********************************************************************/
/*=====================================================================*/
/* Directory bsps/devices/powerpc contains BSP code which is specific */
/* to the PowerPC processor but is otherwise hardware-independent. */
/*=====================================================================*/
/*---------------------------------------------------------------------*/
/* cache.s: Cache-manipulation functions */
/*---------------------------------------------------------------------*/
extern void SysIcacheInit(void);
extern void SysDcacheInit(unsigned long mode);
extern void SysDcacheFlush(void *offset, unsigned long length);
extern void SysIcacheInv(void *offset, unsigned long length);
extern void SysDcacheInv(void *offset, unsigned long length);
extern unsigned long SysDcacheInhibit(void);
extern void SysIcacheInhibit(void);
extern UINT SysIcacheGetState(void);
extern UINT SysDcacheGetState(void);
/*---------------------------------------------------------------------*/
/* decrmntr.c: Timer driver using the decrementer */
/*---------------------------------------------------------------------*/
/* extern void RtcInit (struct ioparms *p); */
/* extern void Delay100ms(void); */
/*---------------------------------------------------------------------*/
/* isr_a.s: Assembly-language portion of Interrupt Service Routine */
/*---------------------------------------------------------------------*/
extern void (*ptrPsosEnter)(void), (*ptrPsosExit)(void);
extern void (*ptrPmontEnter)(void), (*ptrPmontExit)(void);
extern void PsosIsr(void);
extern void PmontIsr(void);
extern void GenIsr(void);
/*---------------------------------------------------------------------*/
/* mcheck.c: C-language portion of Machine Check Exception Handler */
/*---------------------------------------------------------------------*/
extern void SysHandlerInit(void);
extern int SysAddHandler(unsigned long HandlerType, void (*HandlerAddress)());
extern int SysRemoveHandler(ULONG HandlerType, ULONG HandlerIndex);
extern void SysHandlerLoop(void *ip, void *AccessAddr, ULONG intrLevel,
void *ExceptionFramePtr);
/*---------------------------------------------------------------------*/
/* mcheck_a.s: Assembly-language portion of Machine Check Exception */
/* Handler */
/*---------------------------------------------------------------------*/
extern void SysMachChk(void);
extern int setjmp(void *buff);
extern int longjmp(void *buff, int value);
/*---------------------------------------------------------------------*/
/* mmudae.s: Label for Data Access Exception vector */
/*---------------------------------------------------------------------*/
extern void dataAccessException(void);
/*---------------------------------------------------------------------*/
/* mmuiae.s: Label for Instruction Access Exception vector */
/*---------------------------------------------------------------------*/
extern void instAccessException(void);
/*---------------------------------------------------------------------*/
/* reg_rw.s: PowerPC register read/write routines */
/*---------------------------------------------------------------------*/
extern unsigned long ppcPVRrd(void);
extern void ppcDECwr(unsigned long value);
extern unsigned long ppcDECrd(void);
extern unsigned long ppc1stbit1(unsigned long value);
extern unsigned long ppcMSRrd(void);
extern void ppcMSRwr(unsigned long value);
extern unsigned long ppcHID0rd(void);
extern void ppcHID0wr(unsigned long value);
/*---------------------------------------------------------------------*/
/* util.s: Miscellaneous utility functions */
/*---------------------------------------------------------------------*/
extern unsigned long splx(unsigned long mask);
extern void BspBcopy(unsigned char *src, unsigned char *dest,
unsigned long len);
extern void BspBfill(unsigned char *baseAddr, unsigned long len,
unsigned char fillVal);
extern unsigned long SafeLongRead(volatile void *address);
/*---------------------------------------------------------------------*/
/* vectors.s: Exception vector setup */
/*---------------------------------------------------------------------*/
extern void SysSetVector(long offset, void (*handler)(), int vectype,
long enable_mask, unsigned char frametype);
/*=====================================================================*/
/* Code contained in the BSP source directory */
/*=====================================================================*/
/*---------------------------------------------------------------------*/
/* board.c: Miscellaneous routines pertaining to the particular board */
/*---------------------------------------------------------------------*/
extern unsigned long RamSize(void);
extern unsigned long BspRamBase(void);
extern void SysInitFail(const char *string);
extern unsigned long BspCpuType(void);
extern void InitBoard(void);
extern ULONG BspCpuClkRate(void);
extern unsigned long ClrAbortInt(void);
extern ULONG BspCpuRev(void);
extern ULONG BspCpuType(void);
extern ULONG BspCpuClkRate(void);
/*---------------------------------------------------------------------*/
/* init.s: Assembly-language portion of overall hardware init */
/*---------------------------------------------------------------------*/
extern void HdwInit(void);
/*---------------------------------------------------------------------*/
/* isr.c: C-language portion of Interrupt Service Routine */
/*---------------------------------------------------------------------*/
extern void IsrMain(unsigned long vector);
extern void IsrInit(void);
/*---------------------------------------------------------------------*/
/* storage.c: Parameter storage and retrieval */
/*---------------------------------------------------------------------*/
void StorageRead(unsigned int nbytes, void *start, void *buff);
void StorageWrite(unsigned int nbytes, void *start, void *buff);
/*---------------------------------------------------------------------*/
/* */
/*---------------------------------------------------------------------*/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -