/* * Cedarx framework. * Copyright (c) 2008-2015 Allwinner Technology Co. Ltd. * Copyright (c) 2014 BZ Chen * * This file is part of Cedarx. * * Cedarx is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This program is distributed "as is" WITHOUT ANY WARRANTY of any * kind, whether express or implied; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU Lesser General Public License for more details. */ #ifndef __CEDARDEV_API_H__ #define __CEDARDEV_API_H__ enum IOCTL_CMD { IOCTL_UNKOWN = 0x100, IOCTL_GET_ENV_INFO, IOCTL_WAIT_VE_DE, //* changed from IOCTL_WAIT_VE to IOCTL_WAIT_VE_DE, it make code compliant. 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_FLUSH_CACHE_ALL, IOCTL_TEST_VERSION, IOCTL_READ_REG = 0x300, IOCTL_WRITE_REG, }; #define IOCTL_WAIT_VE_EN IOCTL_WAIT_VE_DE //* decoder and encoder is together on 1651. struct cedarv_env_infomation { unsigned int phymem_start; int phymem_total_size; unsigned int address_macc; }; struct cedarv_cache_range { long start; long end; }; struct cedarv_regop { unsigned int addr; unsigned int value; }; #endif