Update pmem/hw3d/mdp headers
Signed-off-by: Dima Zavin <dima@android.com>
This commit is contained in:
parent
30eb40241c
commit
fcb10796ec
@ -12,41 +12,37 @@
|
||||
#ifndef _ANDROID_PMEM_H_
|
||||
#define _ANDROID_PMEM_H_
|
||||
|
||||
#include <stdint.h>
|
||||
#define PMEM_IOCTL_MAGIC 'p'
|
||||
#define PMEM_GET_PHYS _IOW(PMEM_IOCTL_MAGIC, 1, unsigned int)
|
||||
#define PMEM_MAP _IOW(PMEM_IOCTL_MAGIC, 2, unsigned int)
|
||||
#define PMEM_GET_SIZE _IOW(PMEM_IOCTL_MAGIC, 3, unsigned int)
|
||||
#define PMEM_UNMAP _IOW(PMEM_IOCTL_MAGIC, 4, unsigned int)
|
||||
|
||||
#ifndef __user
|
||||
#define __user
|
||||
#endif
|
||||
#define PMEM_ALLOCATE _IOW(PMEM_IOCTL_MAGIC, 5, unsigned int)
|
||||
|
||||
#define PMEM_CONNECT _IOW(PMEM_IOCTL_MAGIC, 6, unsigned int)
|
||||
|
||||
#define PMEM_GET_TOTAL_SIZE _IOW(PMEM_IOCTL_MAGIC, 7, unsigned int)
|
||||
|
||||
struct android_pmem_platform_data
|
||||
{
|
||||
const char* name;
|
||||
|
||||
unsigned long start;
|
||||
|
||||
unsigned long size;
|
||||
|
||||
unsigned no_allocator;
|
||||
|
||||
unsigned cached;
|
||||
|
||||
unsigned buffered;
|
||||
};
|
||||
|
||||
struct pmem_region {
|
||||
unsigned long offset;
|
||||
unsigned long len;
|
||||
};
|
||||
|
||||
#define PMEM_IOCTL_MAGIC 'p'
|
||||
#define PMEM_GET_PHYS _IOW(PMEM_IOCTL_MAGIC, 1, struct pmem_region *)
|
||||
#define PMEM_MAP _IOW(PMEM_IOCTL_MAGIC, 2, struct pmem_region *)
|
||||
#define PMEM_GET_SIZE _IOW(PMEM_IOCTL_MAGIC, 3, struct pmem_region *)
|
||||
#define PMEM_UNMAP _IOW(PMEM_IOCTL_MAGIC, 4, struct pmem_region *)
|
||||
|
||||
#define PMEM_ALLOCATE _IOW(PMEM_IOCTL_MAGIC, 5, unsigned int)
|
||||
|
||||
#define PMEM_CONNECT _IOW(PMEM_IOCTL_MAGIC, 6, unsigned int)
|
||||
|
||||
#define PMEM_GET_TOTAL_SIZE _IOW(PMEM_IOCTL_MAGIC, 7, struct pmem_region *)
|
||||
|
||||
#define HW3D_REVOKE_GPU _IOW(PMEM_IOCTL_MAGIC, 8, unsigned int)
|
||||
#define HW3D_GRANT_GPU _IOW(PMEM_IOCTL_MAGIC, 9, unsigned int)
|
||||
#define HW3D_WAIT_IRQ _IOW(PMEM_IOCTL_MAGIC,10, unsigned int)
|
||||
|
||||
struct android_pmem_platform_data;
|
||||
struct pmem_file_operations {
|
||||
int (*mmap) (struct file *, struct vm_area_struct *);
|
||||
int (*open) (struct inode *, struct file *);
|
||||
ssize_t (*read) (struct file *, char __user *, size_t, long long *);
|
||||
int (*release) (struct inode *, struct file *);
|
||||
long (*ioctl) (struct file *, unsigned int, unsigned long);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
44
libc/kernel/common/linux/msm_hw3d.h
Normal file
44
libc/kernel/common/linux/msm_hw3d.h
Normal file
@ -0,0 +1,44 @@
|
||||
/****************************************************************************
|
||||
****************************************************************************
|
||||
***
|
||||
*** This header was automatically generated from a Linux kernel header
|
||||
*** of the same name, to make information necessary for userspace to
|
||||
*** call into the kernel available to libc. It contains only constants,
|
||||
*** structures, and macros generated from the original header, and thus,
|
||||
*** contains no copyrightable information.
|
||||
***
|
||||
****************************************************************************
|
||||
****************************************************************************/
|
||||
#ifndef _MSM_HW3D_H_
|
||||
#define _MSM_HW3D_H_
|
||||
|
||||
#include <linux/fs.h>
|
||||
#include <linux/ioctl.h>
|
||||
|
||||
struct hw3d_region;
|
||||
|
||||
#define HW3D_IOCTL_MAGIC 'h'
|
||||
#define HW3D_WAIT_FOR_REVOKE _IO(HW3D_IOCTL_MAGIC, 0x80)
|
||||
#define HW3D_WAIT_FOR_INTERRUPT _IO(HW3D_IOCTL_MAGIC, 0x81)
|
||||
#define HW3D_GET_REGIONS _IOR(HW3D_IOCTL_MAGIC, 0x82, struct hw3d_region *)
|
||||
|
||||
#define HW3D_REGION_OFFSET(id) ((((uint32_t)(id)) & 0xf) << 28)
|
||||
#define HW3D_REGION_ID(addr) (((uint32_t)(addr) >> 28) & 0xf)
|
||||
#define HW3D_OFFSET_IN_REGION(addr) ((uint32_t)(addr) & ~(0xfUL << 28))
|
||||
|
||||
enum {
|
||||
HW3D_EBI = 0,
|
||||
HW3D_SMI = 1,
|
||||
HW3D_REGS = 2,
|
||||
|
||||
HW3D_NUM_REGIONS = HW3D_REGS + 1,
|
||||
};
|
||||
|
||||
struct hw3d_region {
|
||||
unsigned long phys;
|
||||
unsigned long map_offset;
|
||||
unsigned long len;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
@ -30,6 +30,7 @@ enum {
|
||||
MDP_Y_CBCR_H2V1,
|
||||
MDP_RGBA_8888,
|
||||
MDP_BGRA_8888,
|
||||
MDP_RGBX_8888,
|
||||
MDP_IMGTYPE_LIMIT
|
||||
};
|
||||
|
||||
@ -81,3 +82,4 @@ struct mdp_blit_req_list {
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user