SmartAudio/lichee/linux-4.9/drivers/media/cedar-vp9/google_vp9.h

63 lines
1.0 KiB
C

#ifndef _GOOGLE_VP9_H_
#define _GOOGLE_VP9_H_
enum IOCTL_CMD {
VP9_IOCTL_UNKNOWN = 0x100,
VP9_IOCTL_GET_ENV_INFO,
VP9_IOCTL_WAIT_INTERRUPT,
VP9_IOCTL_RESET,
VP9_IOCTL_SET_FREQ,
VP9_IOCTL_SET_HIGH_PERF_MSG,
VP9_IOCTL_ENGINE_REQ,
VP9_IOCTL_ENGINE_REL,
/*for iommu*/
IOCTL_GET_IOMMU_ADDR,
IOCTL_FREE_IOMMU_ADDR,
};
struct vp9_env_information {
unsigned int phymem_start;
int phymem_total_size;
unsigned long address_macc;
};
struct __vp9_task {
int task_prio;
int ID;
unsigned long timeout;
unsigned int frametime;
unsigned int block_mode;
};
struct vp9_engine_task {
struct __vp9_task t;
struct list_head list;
struct task_struct *task_handle;
unsigned int status;
unsigned int running;
unsigned int is_first_task;
};
struct vp9_regop {
unsigned long addr;
unsigned int value;
};
struct vp9_env_information_compat {
unsigned int phymem_start;
int phymem_total_size;
u32 address_macc;
};
struct vp9_regop_compat {
u32 addr;
unsigned int value;
};
/*--------------------------------------------------------------*/
#endif