1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __UAPI_CAM_JPEG_H__ 20 #define __UAPI_CAM_JPEG_H__ 21 #include "cam_defs.h" 22 #define CAM_JPEG_DEV_TYPE_ENC 0 23 #define CAM_JPEG_DEV_TYPE_DMA 1 24 #define CAM_JPEG_DEV_TYPE_MAX 2 25 #define CAM_JPEG_NUM_DEV_PER_RES_MAX 1 26 #define CAM_JPEG_RES_TYPE_ENC 0 27 #define CAM_JPEG_RES_TYPE_DMA 1 28 #define CAM_JPEG_RES_TYPE_MAX 2 29 #define CAM_JPEG_OPCODE_ENC_UPDATE 0 30 #define CAM_JPEG_OPCODE_DMA_UPDATE 1 31 #define CAM_JPEG_ENC_INPUT_IMAGE 0x0 32 #define CAM_JPEG_ENC_OUTPUT_IMAGE 0x1 33 #define CAM_JPEG_ENC_IO_IMAGES_MAX 0x2 34 #define CAM_JPEG_DMA_INPUT_IMAGE 0x0 35 #define CAM_JPEG_DMA_OUTPUT_IMAGE 0x1 36 #define CAM_JPEG_DMA_IO_IMAGES_MAX 0x2 37 #define CAM_JPEG_IMAGE_MAX 0x2 38 struct cam_jpeg_dev_ver { 39 uint32_t size; 40 uint32_t dev_type; 41 struct cam_hw_version hw_ver; 42 }; 43 struct cam_jpeg_query_cap_cmd { 44 struct cam_iommu_handle dev_iommu_handle; 45 struct cam_iommu_handle cdm_iommu_handle; 46 uint32_t num_enc; 47 uint32_t num_dma; 48 struct cam_jpeg_dev_ver dev_ver[CAM_JPEG_DEV_TYPE_MAX]; 49 }; 50 struct cam_jpeg_res_info { 51 uint32_t format; 52 uint32_t width; 53 uint32_t height; 54 uint32_t fps; 55 }; 56 struct cam_jpeg_acquire_dev_info { 57 uint32_t dev_type; 58 uint32_t reserved; 59 struct cam_jpeg_res_info in_res; 60 struct cam_jpeg_res_info out_res; 61 }; 62 struct cam_jpeg_config_inout_param_info { 63 int32_t clk_index; 64 int32_t output_size; 65 }; 66 #endif 67 68