mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
move rockchip_ion.h file to include/linux/
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
#include <linux/types.h>
|
||||
|
||||
#include "../uapi/ion.h"
|
||||
#include "../uapi/rockchip_ion.h"
|
||||
|
||||
struct ion_handle;
|
||||
struct ion_device;
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include <linux/err.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
#include "../ion.h"
|
||||
#include <linux/rockchip_ion.h>
|
||||
#include "../ion_priv.h"
|
||||
|
||||
#ifdef CONFIG_OF
|
||||
@@ -29,15 +29,7 @@
|
||||
static struct ion_device *idev;
|
||||
static int num_heaps;
|
||||
static struct ion_heap **heaps;
|
||||
/*
|
||||
static struct ion_platform_heap s_heap_data = {
|
||||
.type = ION_HEAP_TYPE_DMA,
|
||||
.id = 1,
|
||||
.name = "norheap",
|
||||
.size = 256*SZ_1M,
|
||||
.align = SZ_1M,
|
||||
};
|
||||
*/
|
||||
|
||||
struct ion_heap_desc {
|
||||
unsigned int id;
|
||||
enum ion_heap_type type;
|
||||
@@ -144,12 +136,12 @@ static struct ion_platform_data *rockchip_ion_parse_dt(
|
||||
if (ret)
|
||||
goto free_heaps;
|
||||
|
||||
// msm_ion_get_heap_align(node, &pdata->heaps[idx]);
|
||||
// rockchip_ion_get_heap_align(node, &pdata->heaps[idx]);
|
||||
ret = rockchip_ion_get_heap_size(node, &pdata->heaps[idx]);
|
||||
if (ret)
|
||||
goto free_heaps;
|
||||
|
||||
// msm_ion_get_heap_adjacent(node, &pdata->heaps[idx]);
|
||||
// rockchip_ion_get_heap_adjacent(node, &pdata->heaps[idx]);
|
||||
pdata->heaps[idx].priv = dev;
|
||||
pr_info("%d: %d %d %s 0x%08X\n", idx, pdata->heaps[idx].type, pdata->heaps[idx].id, pdata->heaps[idx].name, pdata->heaps[idx].size);
|
||||
|
||||
|
||||
@@ -44,7 +44,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_ION_ROCKCHIP)
|
||||
#include "../../staging/android/ion/ion.h"
|
||||
#include <linux/rockchip_ion.h>
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
2
drivers/staging/android/uapi/rockchip_ion.h → include/linux/rockchip_ion.h
Executable file → Normal file
2
drivers/staging/android/uapi/rockchip_ion.h → include/linux/rockchip_ion.h
Executable file → Normal file
@@ -16,6 +16,8 @@
|
||||
#ifndef _LINUX_ROCKCHIP_ION_H
|
||||
#define _LINUX_ROCKCHIP_ION_H
|
||||
|
||||
#include "../../drivers/staging/android/ion/ion.h"
|
||||
|
||||
enum ion_heap_ids {
|
||||
INVALID_HEAP_ID = -1,
|
||||
ION_VIDEO_HEAP_ID = 1,
|
||||
Reference in New Issue
Block a user