gpu: update midgard r21p0 kernel driver
[GitHub/LineageOS/G12/android_hardware_amlogic_kernel-modules_mali-driver.git] / t83x / kernel / drivers / base / ump / src / ump_arch.h
CommitLineData
d25bc64b
JY
1/*
2 *
3 * (C) COPYRIGHT 2010-2011, 2013 ARM Limited. All rights reserved.
4 *
5 * This program is free software and is provided to you under the terms of the
6 * GNU General Public License version 2 as published by the Free Software
7 * Foundation, and any use by you of this program is subject to the terms
8 * of such GNU licence.
9 *
10 * A copy of the licence is included with the program, and can also be obtained
11 * from Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
12 * Boston, MA 02110-1301, USA.
13 *
14 */
15
16
17
18
19
20#ifndef _UMP_ARCH_H_
21#define _UMP_ARCH_H_
22
23#include <common/ump_kernel_core.h>
24
25/**
26 * Device specific setup.
27 * Called by the UMP core code to to host OS/device specific setup.
28 * Typical use case is device node creation for talking to user space.
29 * @return UMP_OK on success, any other value on failure
30 */
31extern ump_result umpp_device_initialize(void);
32
33/**
34 * Device specific teardown.
35 * Undo any things done by ump_device_initialize.
36 */
37extern void umpp_device_terminate(void);
38
39extern int umpp_phys_commit(umpp_allocation * alloc);
40extern void umpp_phys_free(umpp_allocation * alloc);
41
42#endif /* _UMP_ARCH_H_ */