2440slib.h
上传用户:zbk8730
上传日期:2017-08-10
资源大小:12168k
文件大小:2k
- //===================================================================
- // File Name : 2440slib.h
- // Function : S3C2440
- // Date : February 20, 2002
- // Version : 0.0
- // History
- // 0.0 : Programming start (February 20,2002) -> SOP
- //===================================================================
- #ifndef __2440slib_h__
- #define __2440slib_h__
- #ifdef __cplusplus
- extern "C" {
- #endif
- void SDRAMtest(void);
- int SET_IF(void);
- void WR_IF(int cpsrValue);
- void CLR_IF(void);
- void MMU_EnableICache(void);
- void MMU_DisableICache(void);
- void MMU_EnableDCache(void);
- void MMU_DisableDCache(void);
- void MMU_EnableAlignFault(void);
- void MMU_DisableAlignFault(void);
- void MMU_EnableMMU(void);
- void MMU_DisableMMU(void);
- void MMU_SetTTBase(U32 base);
- void MMU_SetDomain(U32 domain);
- void MMU_SetFastBusMode(void); //GCLK=HCLK
- void MMU_SetAsyncBusMode(void); //GCLK=FCLK @(FCLK>=HCLK)
- void MMU_InvalidateIDCache(void);
- void MMU_InvalidateICache(void);
- void MMU_InvalidateICacheMVA(U32 mva);
- void MMU_PrefetchICacheMVA(U32 mva);
- void MMU_InvalidateDCache(void);
- void MMU_InvalidateDCacheMVA(U32 mva);
- void MMU_CleanDCacheMVA(U32 mva);
- void MMU_CleanInvalidateDCacheMVA(U32 mva);
- void MMU_CleanDCacheIndex(U32 index);
- void MMU_CleanInvalidateDCacheIndex(U32 index);
- void MMU_WaitForInterrupt(void);
-
- void MMU_InvalidateTLB(void);
- void MMU_InvalidateITLB(void);
- void MMU_InvalidateITLBMVA(U32 mva);
- void MMU_InvalidateDTLB(void);
- void MMU_InvalidateDTLBMVA(U32 mva);
- void MMU_SetDCacheLockdownBase(U32 base);
- void MMU_SetICacheLockdownBase(U32 base);
- void MMU_SetDTLBLockdown(U32 baseVictim);
- void MMU_SetITLBLockdown(U32 baseVictim);
- void MMU_SetProcessId(U32 pid);
- #ifdef __cplusplus
- }
- #endif
- #endif //__2440slib_h__