kernel_samsung_a34x-permissive/drivers/gpu/mediatek/ged/src/ged_ge.h
2024-04-28 15:51:13 +02:00

27 lines
681 B
C

/* SPDX-License-Identifier: GPL-2.0 */
/*
* Copyright (c) 2019 MediaTek Inc.
*/
#ifndef __GED_GE_H__
#define __GED_GE_H__
#include <linux/types.h>
#include <ged_type.h>
/* Must be the same as item number in region_sizes[], which in
* /vendor/mediatek/proprietary/hardware/gralloc_extra/ge_misc.cpp
*/
#define GE_ALLOC_STRUCT_NUM 18
#define GE_MAX_REGION_SIZE 8192
GED_ERROR ged_ge_init(void);
int ged_ge_exit(void);
int ged_ge_alloc(int region_num, uint32_t *region_sizes);
int ged_ge_get(int ge_fd, int region_id, int u32_offset,
int u32_size, uint32_t *output_data);
int ged_ge_set(int ge_fd, int region_id, int u32_offset,
int u32_size, uint32_t *input_data);
#endif