OSHW-DEIMOS/SOFTWARE/A64-TERES/linux-a64/drivers/media/cedar-ve/cedar_ve.h
Dimitar Gamishev f9b0e7a283 linux
2017-10-13 14:07:04 +03:00

81 lines
1.4 KiB
C

#ifndef _CEDAR_VE_H_
#define _CEDAR_VE_H_
enum IOCTL_CMD {
IOCTL_UNKOWN = 0x100,
IOCTL_GET_ENV_INFO,
IOCTL_WAIT_VE_DE,
IOCTL_WAIT_VE_EN,
IOCTL_RESET_VE,
IOCTL_ENABLE_VE,
IOCTL_DISABLE_VE,
IOCTL_SET_VE_FREQ,
IOCTL_CONFIG_AVS2 = 0x200,
IOCTL_GETVALUE_AVS2 ,
IOCTL_PAUSE_AVS2 ,
IOCTL_START_AVS2 ,
IOCTL_RESET_AVS2 ,
IOCTL_ADJUST_AVS2,
IOCTL_ENGINE_REQ,
IOCTL_ENGINE_REL,
IOCTL_ENGINE_CHECK_DELAY,
IOCTL_GET_IC_VER,
IOCTL_ADJUST_AVS2_ABS,
IOCTL_FLUSH_CACHE,
IOCTL_SET_REFCOUNT,
IOCTL_READ_REG = 0x300,
IOCTL_WRITE_REG,
IOCTL_SET_VOL = 0x400,
#if ((defined CONFIG_ARCH_SUN8IW8P1) || (defined CONFIG_ARCH_SUN50I))
IOCTL_WAIT_JPEG_DEC = 0x500,
#endif
IOCTL_GET_REFCOUNT,
};
struct cedarv_env_infomation{
unsigned int phymem_start;
int phymem_total_size;
unsigned long address_macc;
};
struct cedarv_cache_range{
long start;
long end;
};
struct __cedarv_task {
int task_prio;
int ID;
unsigned long timeout;
unsigned int frametime;
unsigned int block_mode;
};
struct cedarv_engine_task {
struct __cedarv_task t;
struct list_head list;
struct task_struct *task_handle;
unsigned int status;
unsigned int running;
unsigned int is_first_task;
};
struct cedarv_engine_task_info {
int task_prio;
unsigned int frametime;
unsigned int total_time;
};
struct cedarv_regop {
unsigned long addr;
unsigned int value;
};
/*--------------------------------------------------------------------------------*/
#endif