-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathcedarv_osal_linux.h
51 lines (46 loc) · 2.58 KB
/
cedarv_osal_linux.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*******************************************************************************
-- --
-- CedarX Multimedia Framework --
-- --
-- the Multimedia Framework for Linux/Android System --
-- --
-- This software is confidential and proprietary and may be used --
-- only as expressly authorized by a licensing agreement from --
-- Softwinner Products. --
-- --
-- (C) COPYRIGHT 2011 SOFTWINNER PRODUCTS --
-- ALL RIGHTS RESERVED --
-- --
-- The entire notice above must be reproduced --
-- on all copies and should not be removed. --
-- --
*******************************************************************************/
#ifndef __CEDARV_OSAL_LINUX_H_
#define __CEDARV_OSAL_LINUX_H_
#include "cedarx_hardware.h"
extern int cedarv_wait_ve_ready();
extern void cedarv_disable_ve_core();
extern void cedarv_enable_ve_core();
extern void cedarv_reset_ve_core();
extern void cedarv_request_ve_core();
extern void cedarv_release_ve_core();
extern void cedarv_set_ve_freq(int freq); //MHz
extern unsigned int cedarv_get_macc_base_address();
extern void *cedara_phymalloc(unsigned int size, int align);
extern void *cedara_phymalloc_map(unsigned int size, int align);
extern void *cedar_sys_phymalloc(unsigned int size, int align);
extern void *cedar_sys_phymalloc_map(unsigned int size, int align);
extern void cedara_phyfree(void *buf);
extern void cedara_phyfree_map(void *buf);
extern void cedar_sys_phyfree(void *buf);
extern void cedar_sys_phyfree_map(void *buf);
extern unsigned int cedarv_address_vir2phy(void *addr);
extern unsigned int cedarv_address_phy2vir(void *addr);
extern void cedarx_cache_op(long start, long end, int flag);
extern void avs_counter_config();
extern void avs_counter_start();
extern void avs_counter_pause();
extern void avs_counter_reset();
extern void avs_counter_adjust_abs(int val);
extern void avs_counter_get_time_us(signed long long *curr);
#endif