OSHW-DEIMOS/SOFTWARE/A64-TERES/linux-a64/drivers/soc/allwinner/pm/mem_timing.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

36 lines
1.2 KiB
C
Executable File

/*
*********************************************************************************************************
* LINUX-KERNEL
* AllWinner Linux Platform Develop Kits
* Kernel Module
*
* (c) Copyright 2006-2011, gq.yang China
* All Rights Reserved
*
* File : mem_timing.h
* By :
* Version : v1.0
* Date : 2012-5-31 14:34
* Descript:
* Update : date auther ver notes
*********************************************************************************************************
*/
#ifndef __MEM_TIMING_H__
#define __MEM_TIMING_H__
__u32 get_cyclecount (void);
void backup_perfcounter(void);
void init_perfcounters (__u32 do_reset, __u32 enable_divider);
void restore_perfcounter(void);
void reset_counter(void);
void change_runtime_env(void);
void delay_us(__u32 us);
void delay_ms(__u32 ms);
void init_event_counter (__u32 do_reset, __u32 enable_divider);
void set_event_counter(enum counter_type_e type);
int get_event_counter(enum counter_type_e type);
#endif /* __MEM_TIMING_H__ */