49 lines
1.7 KiB
C
49 lines
1.7 KiB
C
|
/*
|
||
|
* Copyright (c) 2007-2017 Allwinnertech Co., Ltd.
|
||
|
*
|
||
|
* This software is licensed under the terms of the GNU General Public
|
||
|
* License version 2, as published by the Free Software Foundation, and
|
||
|
* may be copied, distributed, and modified under those terms.
|
||
|
*
|
||
|
* This program is distributed in the hope that it will be useful,
|
||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||
|
* GNU General Public License for more details.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
/*
|
||
|
*********************************************************************************************************
|
||
|
* 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__ */
|