ump_uku.h 1.92 KB
Newer Older
Luc Verhaegen's avatar
Luc Verhaegen committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/*
 * Copyright (C) 2010-2012 ARM Limited. All rights reserved.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *       http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

/**
 * @file ump_uku.h
 * Defines the user-side interface of the user-kernel interface
 */

#ifndef __UMP_UKU_H__
#define __UMP_UKU_H__

Luc Verhaegen's avatar
Luc Verhaegen committed
25
26
27
#include "ump_osu.h"
#include "ump_debug.h"
#include "ump_uk_types.h"
Luc Verhaegen's avatar
Luc Verhaegen committed
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43

#ifdef __cplusplus
extern "C"
{
#endif

_ump_osu_errcode_t _ump_uku_open( void **context );

_ump_osu_errcode_t _ump_uku_close( void **context );

_ump_osu_errcode_t _ump_uku_allocate( _ump_uk_allocate_s *args );

_ump_osu_errcode_t _ump_uku_release( _ump_uk_release_s *args );

_ump_osu_errcode_t _ump_uku_size_get( _ump_uk_size_get_s *args );

44
45
_ump_osu_errcode_t _ump_uku_phys_addr_get( _ump_uk_phys_addr_get_s *args );

Luc Verhaegen's avatar
Luc Verhaegen committed
46
47
_ump_osu_errcode_t _ump_uku_get_api_version( _ump_uk_api_version_s *args );

Luc Verhaegen's avatar
Luc Verhaegen committed
48
#if UNIFIED_MEMORY_PROVIDER_VERSION > 2
Luc Verhaegen's avatar
Luc Verhaegen committed
49
50
51
52
53
54
int _ump_uku_map_mem( _ump_uk_map_mem_s *args );

void _ump_uku_unmap_mem( _ump_uk_unmap_mem_s *args );

void _ump_uku_msynch(_ump_uk_msync_s *args);

Luc Verhaegen's avatar
Luc Verhaegen committed
55
56
57
58
59
60
61
62
63
int _ump_uku_map_mem( _ump_uk_map_mem_s *args );

void _ump_uku_cache_operations_control( _ump_uk_cache_operations_control_s *args );
void _ump_uku_switch_hw_usage( _ump_uk_switch_hw_usage_s *dd_msync_call_arg );
void _ump_uku_lock( _ump_uk_lock_s  *dd_msync_call_arg );
void _ump_uku_unlock( _ump_uk_unlock_s *dd_msync_call_arg );
#endif /* UNIFIED_MEMORY_PROVIDER_VERSION */


Luc Verhaegen's avatar
Luc Verhaegen committed
64
65
66
67
68
#ifdef __cplusplus
}
#endif

#endif /* __UMP_UKU_H__ */