~thopiekar/arm-mali/libump-sunxi

« back to all changes in this revision

Viewing changes to src/ump_uku.c

  • Committer: Luc Verhaegen
  • Date: 2014-03-25 21:04:12 UTC
  • Revision ID: git-v1:3211f0135d0fb8f2f263979bdcb7ff043886af80
import r3p0 source

Signed-off-by: Luc Verhaegen <libv@skynet.be>

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 * File implements the user side of the user-kernel interface
20
20
 */
21
21
 
 
22
#include "ump.h"
22
23
#include "ump_uku.h"
23
24
#include <stdio.h>
24
25
#include "ump_ioctl.h"
133
134
        ump_driver_ioctl(args->ctx, UMP_IOC_MSYNC, args);
134
135
}
135
136
 
 
137
#if UNIFIED_MEMORY_PROVIDER_VERSION > 2
 
138
void _ump_uku_cache_operations_control( _ump_uk_cache_operations_control_s *args )
 
139
{
 
140
        ump_driver_ioctl(args->ctx, UMP_IOC_CACHE_OPERATIONS_CONTROL, args);
 
141
}
 
142
 
 
143
void _ump_uku_switch_hw_usage( _ump_uk_switch_hw_usage_s *args )
 
144
{
 
145
        ump_driver_ioctl(args->ctx, UMP_IOC_SWITCH_HW_USAGE, args);
 
146
}
 
147
 
 
148
void _ump_uku_lock( _ump_uk_lock_s *args )
 
149
{
 
150
        ump_driver_ioctl(args->ctx, UMP_IOC_LOCK, args);
 
151
}
 
152
 
 
153
void _ump_uku_unlock( _ump_uk_unlock_s *args )
 
154
{
 
155
        ump_driver_ioctl(args->ctx, UMP_IOC_UNLOCK, args);
 
156
}
 
157
#endif /* UNIFIED_MEMORY_PROVIDER_VERSION */
 
158
 
136
159
int _ump_uku_map_mem(_ump_uk_map_mem_s *args)
137
160
{
138
161
        int flags;