cam_isp.h 42 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121
  1. /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */
  2. /*
  3. * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved.
  4. * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved.
  5. */
  6. #ifndef __UAPI_CAM_ISP_H__
  7. #define __UAPI_CAM_ISP_H__
  8. #include <media/cam_defs.h>
  9. #include <media/cam_isp_vfe.h>
  10. #include <media/cam_isp_ife.h>
  11. #include <media/cam_isp_sfe.h>
  12. #include <media/cam_cpas.h>
  13. /* ISP driver name */
  14. #define CAM_ISP_DEV_NAME "cam-isp"
  15. /* HW type */
  16. #define CAM_ISP_HW_BASE 0
  17. #define CAM_ISP_HW_CSID 1
  18. #define CAM_ISP_HW_VFE 2
  19. #define CAM_ISP_HW_IFE 3
  20. #define CAM_ISP_HW_ISPIF 4
  21. #define CAM_ISP_HW_IFE_LITE 5
  22. #define CAM_ISP_HW_CSID_LITE 6
  23. #define CAM_ISP_HW_SFE 7
  24. #define CAM_ISP_HW_MAX 8
  25. /* Color Pattern */
  26. #define CAM_ISP_PATTERN_BAYER_RGRGRG 0
  27. #define CAM_ISP_PATTERN_BAYER_GRGRGR 1
  28. #define CAM_ISP_PATTERN_BAYER_BGBGBG 2
  29. #define CAM_ISP_PATTERN_BAYER_GBGBGB 3
  30. #define CAM_ISP_PATTERN_YUV_YCBYCR 4
  31. #define CAM_ISP_PATTERN_YUV_YCRYCB 5
  32. #define CAM_ISP_PATTERN_YUV_CBYCRY 6
  33. #define CAM_ISP_PATTERN_YUV_CRYCBY 7
  34. #define CAM_ISP_PATTERN_MAX 8
  35. /* Usage Type */
  36. #define CAM_ISP_RES_USAGE_SINGLE 0
  37. #define CAM_ISP_RES_USAGE_DUAL 1
  38. #define CAM_ISP_RES_USAGE_MAX 2
  39. /* Resource ID */
  40. #define CAM_ISP_RES_ID_PORT 0
  41. #define CAM_ISP_RES_ID_CLK 1
  42. #define CAM_ISP_RES_ID_MAX 2
  43. /* Resource Type - Type of resource for the resource id
  44. * defined in cam_isp_vfe.h, cam_isp_ife.h
  45. */
  46. /* Lane Type in input resource for Port */
  47. #define CAM_ISP_LANE_TYPE_DPHY 0
  48. #define CAM_ISP_LANE_TYPE_CPHY 1
  49. #define CAM_ISP_LANE_TYPE_MAX 2
  50. /* ISP Resurce Composite Group ID */
  51. #define CAM_ISP_RES_COMP_GROUP_NONE 0
  52. #define CAM_ISP_RES_COMP_GROUP_ID_0 1
  53. #define CAM_ISP_RES_COMP_GROUP_ID_1 2
  54. #define CAM_ISP_RES_COMP_GROUP_ID_2 3
  55. #define CAM_ISP_RES_COMP_GROUP_ID_3 4
  56. #define CAM_ISP_RES_COMP_GROUP_ID_4 5
  57. #define CAM_ISP_RES_COMP_GROUP_ID_5 6
  58. #define CAM_ISP_RES_COMP_GROUP_ID_MAX 6
  59. /* ISP packet opcode for ISP */
  60. #define CAM_ISP_PACKET_OP_BASE 0
  61. #define CAM_ISP_PACKET_INIT_DEV 1
  62. #define CAM_ISP_PACKET_UPDATE_DEV 2
  63. #define CAM_ISP_PACKET_OP_MAX 3
  64. /* ISP packet meta_data type for command buffer */
  65. #define CAM_ISP_PACKET_META_BASE 0
  66. #define CAM_ISP_PACKET_META_LEFT 1
  67. #define CAM_ISP_PACKET_META_RIGHT 2
  68. #define CAM_ISP_PACKET_META_COMMON 3
  69. #define CAM_ISP_PACKET_META_DMI_LEFT 4
  70. #define CAM_ISP_PACKET_META_DMI_RIGHT 5
  71. #define CAM_ISP_PACKET_META_DMI_COMMON 6
  72. #define CAM_ISP_PACKET_META_CLOCK 7
  73. #define CAM_ISP_PACKET_META_CSID 8
  74. #define CAM_ISP_PACKET_META_DUAL_CONFIG 9
  75. #define CAM_ISP_PACKET_META_GENERIC_BLOB_LEFT 10
  76. #define CAM_ISP_PACKET_META_GENERIC_BLOB_RIGHT 11
  77. #define CAM_ISP_PACKET_META_GENERIC_BLOB_COMMON 12
  78. #define CAM_ISP_PACKET_META_REG_DUMP_PER_REQUEST 13
  79. #define CAM_ISP_PACKET_META_REG_DUMP_ON_FLUSH 14
  80. #define CAM_ISP_PACKET_META_REG_DUMP_ON_ERROR 15
  81. #define CAM_ISP_PACKET_META_CSID_LEFT 16
  82. #define CAM_ISP_PACKET_META_CSID_RIGHT 17
  83. #define CAM_ISP_PACKET_META_CSID_COMMON 18
  84. /* SFE packet meta_data type for command buffer */
  85. #define CAM_ISP_SFE_PACKET_META_LEFT 0x15
  86. #define CAM_ISP_SFE_PACKET_META_RIGHT 0x16
  87. #define CAM_ISP_SFE_PACKET_META_COMMON 0x17
  88. #define CAM_ISP_SFE_PACKET_META_DUAL_CONFIG 0x18
  89. /* DSP mode */
  90. #define CAM_ISP_DSP_MODE_NONE 0
  91. #define CAM_ISP_DSP_MODE_ONE_WAY 1
  92. #define CAM_ISP_DSP_MODE_ROUND 2
  93. /* ISP Generic Cmd Buffer Blob types */
  94. #define CAM_ISP_GENERIC_BLOB_TYPE_HFR_CONFIG 0
  95. #define CAM_ISP_GENERIC_BLOB_TYPE_CLOCK_CONFIG 1
  96. #define CAM_ISP_GENERIC_BLOB_TYPE_BW_CONFIG 2
  97. #define CAM_ISP_GENERIC_BLOB_TYPE_UBWC_CONFIG 3
  98. #define CAM_ISP_GENERIC_BLOB_TYPE_CSID_CLOCK_CONFIG 4
  99. #define CAM_ISP_GENERIC_BLOB_TYPE_FE_CONFIG 5
  100. #define CAM_ISP_GENERIC_BLOB_TYPE_UBWC_CONFIG_V2 6
  101. #define CAM_ISP_GENERIC_BLOB_TYPE_IFE_CORE_CONFIG 7
  102. #define CAM_ISP_GENERIC_BLOB_TYPE_VFE_OUT_CONFIG 8
  103. #define CAM_ISP_GENERIC_BLOB_TYPE_BW_CONFIG_V2 9
  104. #define CAM_ISP_GENERIC_BLOB_TYPE_DISCARD_INITIAL_FRAMES 10
  105. #define CAM_ISP_GENERIC_BLOB_TYPE_SENSOR_DIMENSION_CONFIG 11
  106. #define CAM_ISP_GENERIC_BLOB_TYPE_CSID_QCFA_CONFIG 12
  107. #define CAM_ISP_GENERIC_BLOB_TYPE_SENSOR_BLANKING_CONFIG 13
  108. #define CAM_ISP_GENERIC_BLOB_TYPE_TPG_CORE_CONFIG 14
  109. #define CAM_ISP_GENERIC_BLOB_TYPE_DYNAMIC_MODE_SWITCH 15
  110. #define CAM_ISP_GENERIC_BLOB_TYPE_BW_LIMITER_CFG 16
  111. #define CAM_ISP_GENERIC_BLOB_TYPE_FPS_CONFIG 17
  112. #define CAM_ISP_GENERIC_BLOB_TYPE_INIT_CONFIG 18
  113. #define CAM_ISP_GENERIC_BLOB_TYPE_RDI_LCR_CONFIG 19
  114. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_CLOCK_CONFIG 21
  115. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_CORE_CONFIG 22
  116. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_OUT_CONFIG 23
  117. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_HFR_CONFIG 24
  118. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_FE_CONFIG 25
  119. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_SCRATCH_BUF_CFG 26
  120. #define CAM_ISP_GENERIC_BLOB_TYPE_SFE_EXP_ORDER_CFG 27
  121. #define CAM_ISP_GENERIC_BLOB_TYPE_DRV_CONFIG 28
  122. #define CAM_ISP_GENERIC_BLOB_TYPE_BW_CONFIG_V3 29
  123. #define CAM_ISP_GENERIC_BLOB_TYPE_NFI_MODE_SWITCH 30
  124. #define CAM_ISP_VC_DT_CFG 4
  125. #define CAM_ISP_IFE0_HW 0x1
  126. #define CAM_ISP_IFE1_HW 0x2
  127. #define CAM_ISP_IFE0_LITE_HW 0x4
  128. #define CAM_ISP_IFE1_LITE_HW 0x8
  129. #define CAM_ISP_IFE2_LITE_HW 0x10
  130. #define CAM_ISP_IFE3_LITE_HW 0x20
  131. #define CAM_ISP_IFE4_LITE_HW 0x40
  132. #define CAM_ISP_IFE2_HW 0x100
  133. #define CAM_ISP_SFE0_HW 0x1000
  134. #define CAM_ISP_SFE1_HW 0x2000
  135. #define CAM_ISP_PXL_PATH 0x1
  136. #define CAM_ISP_PPP_PATH 0x2
  137. #define CAM_ISP_LCR_PATH 0x4
  138. #define CAM_ISP_RDI0_PATH 0x8
  139. #define CAM_ISP_RDI1_PATH 0x10
  140. #define CAM_ISP_RDI2_PATH 0x20
  141. #define CAM_ISP_RDI3_PATH 0x40
  142. #define CAM_ISP_RDI4_PATH 0x80
  143. /* Per Path Usage Data */
  144. #define CAM_ISP_USAGE_INVALID 0
  145. #define CAM_ISP_USAGE_LEFT_PX 1
  146. #define CAM_ISP_USAGE_RIGHT_PX 2
  147. #define CAM_ISP_USAGE_RDI 3
  148. #define CAM_ISP_USAGE_SFE_LEFT 4
  149. #define CAM_ISP_USAGE_SFE_RIGHT 5
  150. #define CAM_ISP_USAGE_SFE_RDI 6
  151. /* Acquire with custom hw */
  152. #define CAM_ISP_ACQ_CUSTOM_NONE 0
  153. #define CAM_ISP_ACQ_CUSTOM_PRIMARY 1
  154. #define CAM_ISP_ACQ_CUSTOM_SECONDARY 2
  155. #define CAM_IFE_CSID_RDI_MAX 5
  156. /* Feature Flag indicators */
  157. #define CAM_ISP_PARAM_FETCH_SECURITY_MODE BIT(0)
  158. #define CAM_ISP_CAN_USE_LITE_MODE BIT(1)
  159. #define CAM_ISP_DYNAMIC_SENOR_SWITCH_EN BIT(2)
  160. #define CAM_ISP_SFE_BINNED_EPOCH_CFG_ENABLE BIT(3)
  161. #define CAM_ISP_EPD_SUPPORT BIT(4)
  162. #define CAM_ISP_SFE_FS_MODE_EN BIT(5)
  163. #define CAM_ISP_SFE_SHDR_MODE_EN BIT(6)
  164. #define CAM_ISP_AEB_MODE_EN BIT(7)
  165. #define CAM_ISP_HDR_MODE_DYNAMIC_SWITCH_EN BIT(8)
  166. #define CAM_ISP_NFI_BASED_MODE_SWITCH_EN BIT(9)
  167. /* ISP core cfg flag params */
  168. #define CAM_ISP_PARAM_CORE_CFG_HDR_MUX_SEL BIT(0)
  169. #define CAM_ISP_PARAM_CORE_CFG_PP_FORMAT BIT(16)
  170. /**
  171. * Decode format1 Support for multi VCDT use case.
  172. * Format type is packed in 8 bits. BIT(0-7) is
  173. * format and BIT(8-15) is format1 type in the format
  174. * variable
  175. */
  176. #define CAM_IFE_DECODE_FORMAT_MASK 0xFF
  177. #define CAM_IFE_DECODE_FORMAT_SHIFT_VAL 8
  178. /**
  179. * struct cam_isp_drv_config - CSID config for DRV
  180. * Enables DRV and provides worst case timeout value in INIT packet,
  181. * provides path_idle_en and timeout updates (if any) in UPDATE packet
  182. *
  183. * @drv_en : Enables DRV block
  184. * @timeout_val : Timeout value from SOF to trigger vote up,
  185. * given in number of Global Counter cycles.
  186. * @path_idle_en : Mask for paths to be considered for consolidated IDLE signal.
  187. * When paths matching the mask go idle, BW is voted down.
  188. * @num_valid_params : Number of valid params
  189. * @valid_param_mask : Valid param mask
  190. * @params : params
  191. */
  192. struct cam_isp_drv_config {
  193. __u32 drv_en;
  194. __u32 timeout_val;
  195. __u32 path_idle_en;
  196. __u32 num_valid_params;
  197. __u32 valid_param_mask;
  198. __u32 params[5];
  199. } __attribute__((packed));
  200. /* Query devices */
  201. /**
  202. * struct cam_isp_dev_cap_info - A cap info for particular hw type
  203. *
  204. * @hw_type: Hardware type for the cap info
  205. * @num_hw: Number of HW of type @hw_type
  206. * @hw_version: Hardware version
  207. *
  208. */
  209. struct cam_isp_dev_cap_info {
  210. __u32 hw_type;
  211. __u32 num_hw;
  212. struct cam_hw_version hw_version;
  213. };
  214. /**
  215. * struct cam_isp_query_cap_cmd - ISP query device capability payload
  216. *
  217. * @device_iommu: returned iommu handles for device
  218. * @cdm_iommu: returned iommu handles for cdm
  219. * @num_dev: returned number of device capabilities
  220. * @reserved: reserved field for alignment
  221. * @dev_caps: returned device capability array
  222. *
  223. */
  224. struct cam_isp_query_cap_cmd {
  225. struct cam_iommu_handle device_iommu;
  226. struct cam_iommu_handle cdm_iommu;
  227. __s32 num_dev;
  228. __u32 reserved;
  229. struct cam_isp_dev_cap_info dev_caps[CAM_ISP_HW_MAX];
  230. };
  231. /* Acquire Device */
  232. /**
  233. * struct cam_isp_out_port_info - An output port resource info
  234. *
  235. * @res_type: output resource type defined in file
  236. * cam_isp_vfe.h or cam_isp_ife.h
  237. * @format: output format of the resource
  238. * @wdith: output width in pixels
  239. * @height: output height in lines
  240. * @comp_grp_id: composite group id for the resource.
  241. * @split_point: split point in pixels for the dual VFE.
  242. * @secure_mode: flag to tell if output should be run in secure
  243. * mode or not. See cam_defs.h for definition
  244. * @reserved: reserved field for alignment
  245. *
  246. */
  247. struct cam_isp_out_port_info {
  248. __u32 res_type;
  249. __u32 format;
  250. __u32 width;
  251. __u32 height;
  252. __u32 comp_grp_id;
  253. __u32 split_point;
  254. __u32 secure_mode;
  255. __u32 reserved;
  256. };
  257. /**
  258. * struct cam_isp_out_port_info_v2 - An output port resource info
  259. *
  260. * @res_type: output resource type defined in file
  261. * cam_isp_vfe.h or cam_isp_ife.h
  262. * @format: output format of the resource
  263. * @wdith: output width in pixels
  264. * @height: output height in lines
  265. * @comp_grp_id: composite group id for the resource.
  266. * @split_point: split point in pixels for the dual VFE.
  267. * @secure_mode: flag to tell if output should be run in secure
  268. * mode or not. See cam_defs.h for definition
  269. * @wm_mode: WM mode
  270. * @out_port_res1: Output reserved field
  271. * @out_port_res2: Output reserved field
  272. *
  273. */
  274. struct cam_isp_out_port_info_v2 {
  275. __u32 res_type;
  276. __u32 format;
  277. __u32 width;
  278. __u32 height;
  279. __u32 comp_grp_id;
  280. __u32 split_point;
  281. __u32 secure_mode;
  282. __u32 wm_mode;
  283. __u32 out_port_res1;
  284. __u32 out_port_res2;
  285. };
  286. /**
  287. * struct cam_isp_in_port_info - An input port resource info
  288. *
  289. * @res_type: input resource type define in file
  290. * cam_isp_vfe.h or cam_isp_ife.h
  291. * @lane_type: lane type: c-phy or d-phy.
  292. * @lane_num: active lane number
  293. * @lane_cfg: lane configurations: 4 bits per lane
  294. * @vc: input virtual channel number
  295. * @dt: input data type number
  296. * @format: input format
  297. * @test_pattern: test pattern for the testgen
  298. * @usage_type: whether dual vfe is required
  299. * @left_start: left input start offset in pixels
  300. * @left_stop: left input stop offset in pixels
  301. * @left_width: left input width in pixels
  302. * @right_start: right input start offset in pixels.
  303. * Only for Dual VFE
  304. * @right_stop: right input stop offset in pixels.
  305. * Only for Dual VFE
  306. * @right_width: right input width in pixels.
  307. * Only for dual VFE
  308. * @line_start: top of the line number
  309. * @line_stop: bottome of the line number
  310. * @height: input height in lines
  311. * @pixel_clk; sensor output clock
  312. * @batch_size: batch size for HFR mode
  313. * @dsp_mode: DSP stream mode (Defines as CAM_ISP_DSP_MODE_*)
  314. * @hbi_cnt: HBI count for the camif input
  315. * @reserved: Reserved field for alignment
  316. * @num_out_res: number of the output resource associated
  317. * @data: payload that contains the output resources
  318. *
  319. */
  320. struct cam_isp_in_port_info {
  321. __u32 res_type;
  322. __u32 lane_type;
  323. __u32 lane_num;
  324. __u32 lane_cfg;
  325. __u32 vc;
  326. __u32 dt;
  327. __u32 format;
  328. __u32 test_pattern;
  329. __u32 usage_type;
  330. __u32 left_start;
  331. __u32 left_stop;
  332. __u32 left_width;
  333. __u32 right_start;
  334. __u32 right_stop;
  335. __u32 right_width;
  336. __u32 line_start;
  337. __u32 line_stop;
  338. __u32 height;
  339. __u32 pixel_clk;
  340. __u32 batch_size;
  341. __u32 dsp_mode;
  342. __u32 hbi_cnt;
  343. __u32 reserved;
  344. __u32 num_out_res;
  345. struct cam_isp_out_port_info data[1];
  346. };
  347. /**
  348. * struct cam_isp_in_port_info_v2 - An input port resource info
  349. *
  350. * @res_type: input resource type define in file
  351. * cam_isp_vfe.h or cam_isp_ife.h
  352. * @lane_type: lane type: c-phy or d-phy.
  353. * @lane_num: active lane number
  354. * @lane_cfg: lane configurations: 4 bits per lane
  355. * @vc: input virtual channel number
  356. * @dt: input data type number
  357. * @num_valid_vc_dt: valid vc and dt in array
  358. * @format: input format
  359. * @test_pattern: test pattern for the testgen
  360. * @usage_type: whether dual vfe is required
  361. * @left_start: left input start offset in pixels
  362. * @left_stop: left input stop offset in pixels
  363. * @left_width: left input width in pixels
  364. * @right_start: right input start offset in pixels.
  365. * Only for Dual VFE
  366. * @right_stop: right input stop offset in pixels.
  367. * only for Dual VFE
  368. * @right_width: right input width in pixels.
  369. * only for dual VFE
  370. * @line_start: top of the line number
  371. * @line_stop: bottome of the line number
  372. * @height: input height in lines
  373. * @pixel_clk; sensor output clock
  374. * @batch_size: batch size for HFR mode
  375. * @dsp_mode: DSP stream mode (Defines as CAM_ISP_DSP_MODE_*)
  376. * @hbi_cnt: HBI count for the camif input
  377. * @cust_node: if any custom HW block is present before IFE
  378. * @num_out_res: number of the output resource associated
  379. * @bidirectional_bin: [0 : 15] - Set 1 for Horizontal binning
  380. * [16 : 31] - Set 1 for Vertical binning
  381. * @qcfa_bin: Quadra Binning info
  382. * @sfe_in_path_type: SFE input path type
  383. * 0:15 - refer to cam_isp_sfe.h for SFE paths
  384. * 16:31 - Corresponding IFE i/p path type
  385. * Example:((CAM_ISP_PXL_PATH << 16) |
  386. * CAM_ISP_SFE_INLINE_PIX)
  387. * This will acquire SFE inline IPP and IFE IPP
  388. * PPP is an exception CSID PPP -> IFE PPP
  389. * @feature_flag: See the macros defined under feature flag above
  390. * @ife_res_1: payload for future use.
  391. * @ife_res_2: payload for future use.
  392. * @data: payload that contains the output resources
  393. *
  394. */
  395. struct cam_isp_in_port_info_v2 {
  396. __u32 res_type;
  397. __u32 lane_type;
  398. __u32 lane_num;
  399. __u32 lane_cfg;
  400. __u32 vc[CAM_ISP_VC_DT_CFG];
  401. __u32 dt[CAM_ISP_VC_DT_CFG];
  402. __u32 num_valid_vc_dt;
  403. __u32 format;
  404. __u32 test_pattern;
  405. __u32 usage_type;
  406. __u32 left_start;
  407. __u32 left_stop;
  408. __u32 left_width;
  409. __u32 right_start;
  410. __u32 right_stop;
  411. __u32 right_width;
  412. __u32 line_start;
  413. __u32 line_stop;
  414. __u32 height;
  415. __u32 pixel_clk;
  416. __u32 batch_size;
  417. __u32 dsp_mode;
  418. __u32 hbi_cnt;
  419. __u32 cust_node;
  420. __u32 num_out_res;
  421. __u32 offline_mode;
  422. __u32 bidirectional_bin;
  423. __u32 qcfa_bin;
  424. __u32 sfe_in_path_type;
  425. __u32 feature_flag;
  426. __u32 ife_res_1;
  427. __u32 ife_res_2;
  428. struct cam_isp_out_port_info_v2 data[1];
  429. };
  430. /**
  431. * struct cam_isp_resource - A resource bundle
  432. *
  433. * @resoruce_id: resource id for the resource bundle
  434. * @length: length of the while resource blob
  435. * @handle_type: type of the resource handle
  436. * @reserved: reserved field for alignment
  437. * @res_hdl: resource handle that points to the
  438. * resource array;
  439. *
  440. */
  441. struct cam_isp_resource {
  442. __u32 resource_id;
  443. __u32 length;
  444. __u32 handle_type;
  445. __u32 reserved;
  446. __u64 res_hdl;
  447. };
  448. /**
  449. * struct cam_isp_port_hfr_config - HFR configuration for this port
  450. *
  451. * @resource_type: Resource type
  452. * @subsample_pattern: Subsample pattern. Used in HFR mode. It
  453. * should be consistent with batchSize and
  454. * CAMIF programming.
  455. * @subsample_period: Subsample period. Used in HFR mode. It
  456. * should be consistent with batchSize and
  457. * CAMIF programming.
  458. * @framedrop_pattern: Framedrop pattern
  459. * @framedrop_period: Framedrop period
  460. * @reserved: Reserved for alignment
  461. */
  462. struct cam_isp_port_hfr_config {
  463. __u32 resource_type;
  464. __u32 subsample_pattern;
  465. __u32 subsample_period;
  466. __u32 framedrop_pattern;
  467. __u32 framedrop_period;
  468. __u32 reserved;
  469. } __attribute__((packed));
  470. /**
  471. * struct cam_isp_resource_hfr_config - Resource HFR configuration
  472. *
  473. * @num_ports: Number of ports
  474. * @reserved: Reserved for alignment
  475. * @port_hfr_config: HFR configuration for each IO port
  476. */
  477. struct cam_isp_resource_hfr_config {
  478. __u32 num_ports;
  479. __u32 reserved;
  480. struct cam_isp_port_hfr_config port_hfr_config[1];
  481. } __attribute__((packed));
  482. /**
  483. * struct cam_isp_dual_split_params - dual isp spilt parameters
  484. *
  485. * @split_point: Split point information x, where (0 < x < width)
  486. * left ISP's input ends at x + righ padding and
  487. * Right ISP's input starts at x - left padding
  488. * @right_padding: Padding added past the split point for left
  489. * ISP's input
  490. * @left_padding: Padding added before split point for right
  491. * ISP's input
  492. * @reserved: Reserved filed for alignment
  493. *
  494. */
  495. struct cam_isp_dual_split_params {
  496. __u32 split_point;
  497. __u32 right_padding;
  498. __u32 left_padding;
  499. __u32 reserved;
  500. };
  501. /**
  502. * struct cam_isp_dual_stripe_config - stripe config per bus client
  503. *
  504. * @offset: Start horizontal offset relative to
  505. * output buffer
  506. * In UBWC mode, this value indicates the H_INIT
  507. * value in pixel
  508. * @width: Width of the stripe in bytes
  509. * @tileconfig Ubwc meta tile config. Contain the partial
  510. * tile info
  511. * @port_id: port id of ISP output
  512. *
  513. */
  514. struct cam_isp_dual_stripe_config {
  515. __u32 offset;
  516. __u32 width;
  517. __u32 tileconfig;
  518. __u32 port_id;
  519. };
  520. /**
  521. * struct cam_isp_dual_config - dual isp configuration
  522. *
  523. * @num_ports Number of isp output ports
  524. * @reserved Reserved field for alignment
  525. * @split_params: Inpput split parameters
  526. * @stripes: Stripe information
  527. *
  528. */
  529. struct cam_isp_dual_config {
  530. __u32 num_ports;
  531. __u32 reserved;
  532. struct cam_isp_dual_split_params split_params;
  533. struct cam_isp_dual_stripe_config stripes[1];
  534. } __attribute__((packed));
  535. /**
  536. * struct cam_isp_clock_config - Clock configuration
  537. *
  538. * @usage_type: Usage type (Single/Dual)
  539. * @num_rdi: Number of RDI votes
  540. * @left_pix_hz: Pixel Clock for Left ISP
  541. * @right_pix_hz: Pixel Clock for Right ISP, valid only if Dual
  542. * @rdi_hz: RDI Clock. ISP clock will be max of RDI and
  543. * PIX clocks. For a particular context which ISP
  544. * HW the RDI is allocated to is not known to UMD.
  545. * Hence pass the clock and let KMD decide.
  546. */
  547. struct cam_isp_clock_config {
  548. __u32 usage_type;
  549. __u32 num_rdi;
  550. __u64 left_pix_hz;
  551. __u64 right_pix_hz;
  552. __u64 rdi_hz[1];
  553. } __attribute__((packed));
  554. /**
  555. * struct cam_isp_csid_clock_config - CSID clock configuration
  556. *
  557. * @csid_clock CSID clock
  558. */
  559. struct cam_isp_csid_clock_config {
  560. __u64 csid_clock;
  561. } __attribute__((packed));
  562. /**
  563. * struct cam_isp_csid_qcfa_config - CSID qcfa binning support configuration
  564. *
  565. * @csid_binning CSID binning
  566. */
  567. struct cam_isp_csid_qcfa_config {
  568. __u32 csid_binning;
  569. } __attribute__((packed));
  570. /**
  571. * struct cam_isp_bw_vote - Bandwidth vote information
  572. *
  573. * @resource_id: Resource ID
  574. * @reserved: Reserved field for alignment
  575. * @cam_bw_bps: Bandwidth vote for CAMNOC
  576. * @ext_bw_bps: Bandwidth vote for path-to-DDR after CAMNOC
  577. */
  578. struct cam_isp_bw_vote {
  579. __u32 resource_id;
  580. __u32 reserved;
  581. __u64 cam_bw_bps;
  582. __u64 ext_bw_bps;
  583. } __attribute__((packed));
  584. /**
  585. * struct cam_isp_bw_config - Bandwidth configuration
  586. *
  587. * @usage_type: Usage type (Single/Dual)
  588. * @num_rdi: Number of RDI votes
  589. * @left_pix_vote: Bandwidth vote for left ISP
  590. * @right_pix_vote: Bandwidth vote for right ISP
  591. * @rdi_vote: RDI bandwidth requirements
  592. */
  593. struct cam_isp_bw_config {
  594. __u32 usage_type;
  595. __u32 num_rdi;
  596. struct cam_isp_bw_vote left_pix_vote;
  597. struct cam_isp_bw_vote right_pix_vote;
  598. struct cam_isp_bw_vote rdi_vote[1];
  599. } __attribute__((packed));
  600. /**
  601. * struct cam_isp_bw_config_v2 - Bandwidth configuration
  602. *
  603. * @usage_type: Usage type (Single/Dual)
  604. * @num_paths: Number of axi data paths
  605. * @axi_path Per path vote info
  606. */
  607. struct cam_isp_bw_config_v2 {
  608. __u32 usage_type;
  609. __u32 num_paths;
  610. struct cam_axi_per_path_bw_vote axi_path[1];
  611. } __attribute__((packed));
  612. /**
  613. * struct cam_isp_bw_config_v3 - Bandwidth configuration
  614. *
  615. * @usage_type: Usage type (Single/Dual)
  616. * @num_paths: Number of axi data paths
  617. * @num_valid_params: Number of valid params
  618. * @valid_param_mask: Valid param mask
  619. * @params: params
  620. * @axi_path: Per path vote info v2
  621. */
  622. struct cam_isp_bw_config_v3 {
  623. __u32 usage_type;
  624. __u32 num_paths;
  625. __u32 num_valid_params;
  626. __u32 valid_param_mask;
  627. __u32 params[4];
  628. struct cam_axi_per_path_bw_vote_v2 axi_path[1];
  629. } __attribute__((packed));
  630. /**
  631. * struct cam_fe_config - Fetch Engine configuration
  632. *
  633. * @version: fetch engine veriosn
  634. * @min_vbi: require min vbi
  635. * @fs_mode: indicates if fs mode enabled
  636. * @fs_line_sync_en: frame level sync or line level
  637. * sync for fetch engine
  638. * @hbi_count: hbi count
  639. * @fs_sync_enable: indicates if fetch engine working
  640. * wokring in sync with write engine
  641. * @go_cmd_sel: softwrae go_cmd or hw go_cmd
  642. * @client_enable: enable read engine
  643. * @source_addr: adrress of buffer to read from
  644. * @width: buffer width
  645. * @height: buffer height
  646. * @stride: buffer stride (here equal to width)
  647. * @format: format of image in buffer
  648. * @unpacker_cfg: unpacker config type
  649. * @latency_buf_size: latency buffer for read engine
  650. */
  651. struct cam_fe_config {
  652. __u64 version;
  653. __u32 min_vbi;
  654. __u32 fs_mode;
  655. __u32 fs_line_sync_en;
  656. __u32 hbi_count;
  657. __u32 fs_sync_enable;
  658. __u32 go_cmd_sel;
  659. __u32 client_enable;
  660. __u32 source_addr;
  661. __u32 width;
  662. __u32 height;
  663. __u32 stride;
  664. __u32 format;
  665. __u32 unpacker_cfg;
  666. __u32 latency_buf_size;
  667. } __attribute__((packed));
  668. /**
  669. * struct cam_isp_sensor_path_dimension
  670. *
  671. * @width expected width
  672. * @height expected height
  673. * @measure_enabled flag to indicate if pixel measurement is to be enabled
  674. */
  675. struct cam_isp_sensor_dimension {
  676. __u32 width;
  677. __u32 height;
  678. __u32 measure_enabled;
  679. } __attribute__((packed));
  680. /**
  681. * struct cam_isp_sensor_blanking_config
  682. *
  683. * @hbi HBI value
  684. * @vbi VBI value
  685. */
  686. struct cam_isp_sensor_blanking_config {
  687. __u32 hbi;
  688. __u32 vbi;
  689. } __attribute__((packed));
  690. /**
  691. * struct cam_isp_sensor_config - Sensor Dimension configuration
  692. *
  693. * @ppp_path: expected ppp path configuration
  694. * @ipp_path: expected ipp path configuration
  695. * @rdi_path: expected rdi path configuration
  696. * @hbi: HBI value
  697. * @vbi: VBI value
  698. */
  699. struct cam_isp_sensor_config {
  700. struct cam_isp_sensor_dimension ppp_path;
  701. struct cam_isp_sensor_dimension ipp_path;
  702. struct cam_isp_sensor_dimension rdi_path[CAM_IFE_CSID_RDI_MAX];
  703. __u32 hbi;
  704. __u32 vbi;
  705. } __attribute__((packed));
  706. /**
  707. * struct cam_isp_core_config - ISP core registers configuration
  708. *
  709. * @version: Version info
  710. * @vid_ds16_r2pd: Enables Y and C merging PD output for video DS16
  711. * @vid_ds4_r2pd: Enables Y and C merging PD output for video DS4
  712. * @disp_ds16_r2pd: Enables Y and C merging PD output for disp DS16
  713. * @disp_ds4_r2pd: Enables Y and C merging PD output for disp DS4
  714. * @dsp_streaming_tap_point: This selects source for DSP streaming interface
  715. * @ihist_src_sel: Selects input for IHIST module
  716. * @hdr_be_src_sel: Selects input for HDR BE module
  717. * @hdr_bhist_src_sel: Selects input for HDR BHIST module
  718. * @input_mux_sel_pdaf: Selects input for PDAF
  719. * @input_mux_sel_pp: Selects input for Pixel Pipe
  720. * @core_cfg_flag: Core config flag to set HDR mux/PP
  721. * input format type
  722. */
  723. struct cam_isp_core_config {
  724. __u32 version;
  725. __u32 vid_ds16_r2pd;
  726. __u32 vid_ds4_r2pd;
  727. __u32 disp_ds16_r2pd;
  728. __u32 disp_ds4_r2pd;
  729. __u32 dsp_streaming_tap_point;
  730. __u32 ihist_src_sel;
  731. __u32 hdr_be_src_sel;
  732. __u32 hdr_bhist_src_sel;
  733. __u32 input_mux_sel_pdaf;
  734. __u32 input_mux_sel_pp;
  735. __u32 core_cfg_flag;
  736. } __attribute__((packed));
  737. /**
  738. * struct cam_isp_sfe_core_config - SFE core registers configuration
  739. *
  740. * @version : Version info
  741. * @mode_sel : Selects core for sHDR/non-sHDR mode
  742. * @ops_mode_cfg : Selects core if is inline/offline mode
  743. * @fs_mode_cfg : Selects output in fast shutter mode
  744. * @sfe_params : SFE params for future use
  745. */
  746. struct cam_isp_sfe_core_config {
  747. __u32 version;
  748. __u32 mode_sel;
  749. __u32 ops_mode_cfg;
  750. __u32 fs_mode_cfg;
  751. __u32 sfe_params[6];
  752. } __attribute__((packed));
  753. /**
  754. * struct cam_isp_sfe_scratch_buf_info - Scratch buf info
  755. *
  756. * @mem_handle : Scratch buffer handle
  757. * @offset : Offset to the buffer
  758. * @width : Width in pixels
  759. * @height : Height in pixels
  760. * @stride : Stride in pixels
  761. * @slice_height : Slice height in lines
  762. * @resource_type : rsrc type
  763. * @scratch_buf_params : for future use
  764. */
  765. struct cam_isp_sfe_scratch_buf_info {
  766. __s32 mem_handle;
  767. __u32 offset;
  768. __u32 width;
  769. __u32 height;
  770. __u32 stride;
  771. __u32 slice_height;
  772. __u32 resource_type;
  773. __u32 scratch_buf_params[5];
  774. };
  775. /**
  776. * struct cam_isp_sfe_init_scratch_buf_config - SFE init buffer cfg
  777. * Provides scratch buffer info for SFE ports
  778. * as part of INIT packet
  779. *
  780. * @num_ports : Number of ports
  781. * @reserved : reserved
  782. * @port_scratch_cfg : scratch buffer info
  783. */
  784. struct cam_isp_sfe_init_scratch_buf_config {
  785. __u32 num_ports;
  786. __u32 reserved;
  787. struct cam_isp_sfe_scratch_buf_info port_scratch_cfg[1];
  788. };
  789. /**
  790. * struct cam_isp_tpg_core_config - TPG core registers configuration
  791. *
  792. * @version : Version info
  793. * @vc_dt_pattern_id : TPG pattern - SparsePD, sHDR etc.
  794. * @qcfa_en : Selects qcfa in color bar
  795. * @pix_pattern : Pix pattern color bar cfg
  796. * @hbi_clk_cnt : Number of HBI # of cycles
  797. * @vbi_clk_cnt : Number of VBI # of cycles
  798. * @throttle_pattern : Defines bubble pattern in throttler
  799. * @tpg_params : TPG params for future use
  800. */
  801. struct cam_isp_tpg_core_config {
  802. __u32 version;
  803. __u32 vc_dt_pattern_id;
  804. __u32 qcfa_en;
  805. __u32 pix_pattern;
  806. __u32 hbi_clk_cnt;
  807. __u32 vbi_clk_cnt;
  808. __u32 throttle_pattern;
  809. __u32 tpg_params[3];
  810. } __attribute__((packed));
  811. /**
  812. * struct cam_isp_acquire_hw_info - ISP acquire HW params
  813. *
  814. * @common_info_version : Version of common info struct used
  815. * @common_info_size : Size of common info struct used
  816. * @common_info_offset : Offset of common info from start of data
  817. * @num_inputs : Number of inputs
  818. * @input_info_version : Version of input info struct used
  819. * @input_info_size : Size of input info struct used
  820. * @input_info_offset : Offset of input info from start of data
  821. * @data : Start of data region
  822. */
  823. struct cam_isp_acquire_hw_info {
  824. __u16 common_info_version;
  825. __u16 common_info_size;
  826. __u32 common_info_offset;
  827. __u32 num_inputs;
  828. __u32 input_info_version;
  829. __u32 input_info_size;
  830. __u32 input_info_offset;
  831. __u64 data;
  832. };
  833. /**
  834. * struct cam_isp_vfe_wm_config - VFE write master config per port
  835. *
  836. * @port_type : Unique ID of output port
  837. * @wm_mode : Write master mode
  838. * 0x0 - Line based mode
  839. * 0x1 - Frame based mode
  840. * 0x2 - Index based mode, valid for BAF only
  841. * @h_init : Horizontal starting coordinate in pixels. Must be a
  842. * multiple of 3 for TP10 format
  843. * @height : Height in pixels
  844. * @width : Width in pixels
  845. * @virtual_frame_en : Enabling virtual frame will prevent actual request from
  846. * being sent to NOC
  847. * @stride : Write master stride
  848. * @offset : Write master offset
  849. * @addr_reuse_en : Enabling addr-reuse will write output to the same addr
  850. * after the last addr that was read from FIFO.
  851. * @packer_format : Update packer format for Write master config
  852. * @reserved_3 : Reserved field for Write master config
  853. * @reserved_4 : Reserved field for Write master config
  854. */
  855. struct cam_isp_vfe_wm_config {
  856. __u32 port_type;
  857. __u32 wm_mode;
  858. __u32 h_init;
  859. __u32 height;
  860. __u32 width;
  861. __u32 virtual_frame_en;
  862. __u32 stride;
  863. __u32 offset;
  864. __u32 addr_reuse_en;
  865. __u32 packer_format;
  866. __u32 reserved_3;
  867. __u32 reserved_4;
  868. };
  869. /**
  870. * struct cam_isp_vfe_out_config - VFE write master config
  871. *
  872. * @num_ports : Number of ports
  873. * @reserved : Reserved field
  874. * @wm_config : VFE out config
  875. */
  876. struct cam_isp_vfe_out_config {
  877. __u32 num_ports;
  878. __u32 reserved;
  879. struct cam_isp_vfe_wm_config wm_config[1];
  880. };
  881. /**
  882. * struct cam_isp_mode_switch_info - Dynamic mode switch info
  883. *
  884. * @mup : MUP for incoming VC of next frame
  885. * @num_expoures : Number of exposures
  886. * @reserved : Reserved
  887. */
  888. struct cam_isp_mode_switch_info{
  889. __u32 mup;
  890. __u32 num_expoures;
  891. __u32 reserved;
  892. } __attribute__((packed));
  893. /**
  894. * struct cam_isp_nfi_mode_switch_info - New Frame ID (NFI) Based Switching Scheme info
  895. *
  896. * @version : Version info
  897. * @mode_id : Mode ID value for the next frame
  898. * @modeid_vc : The VC with which the embedded packet with MODE ID comes with.
  899. * @x_offset : X offset of MODE ID location in horizontal
  900. * direction within single EBD line packet, unit is byte.
  901. * @y_offset : Y offset of MODE ID location in vertical direction
  902. * within EBD Lines, unit is line packet.
  903. * @reg_length : Number of bytes for each MODE ID
  904. * @num_valid_params : Number of valid params
  905. * @param_mask : Mask to indicate fields in params
  906. * @params : Additional Params
  907. */
  908. struct cam_isp_nfi_mode_switch_info {
  909. __u32 version;
  910. __u32 mode_id;
  911. __u32 modeid_vc;
  912. __u32 x_offset;
  913. __u32 y_offset;
  914. __u32 reg_length;
  915. __u32 num_valid_params;
  916. __u32 param_mask;
  917. __u32 params[4];
  918. } __attribute__((packed));
  919. /**
  920. * struct cam_isp_sfe_wm_exp_order_config - SFE write master
  921. * exposure order config
  922. *
  923. * This config will reflect for corresponding RM as well
  924. *
  925. * @res_type : output resource type defined in file
  926. * cam_isp_sfe.h or cam_isp_ife.h
  927. * @additional_params : Params for future use
  928. */
  929. struct cam_isp_sfe_wm_exp_order_config {
  930. __u32 res_type;
  931. __u32 additional_params[5];
  932. };
  933. /**
  934. * struct cam_isp_sfe_exp_config - SFE out exposure config
  935. *
  936. * Exp order is determined by it's index in wm_config[]
  937. * The last resource in the array will be considered as
  938. * last [shortest] exposure.
  939. *
  940. * @num_ports : Number of ports
  941. * @reserved : Reserved field
  942. * @wm_config : WM exp config
  943. */
  944. struct cam_isp_sfe_exp_config {
  945. __u32 num_ports;
  946. __u32 reserved;
  947. struct cam_isp_sfe_wm_exp_order_config wm_config[1];
  948. };
  949. /**
  950. * struct cam_isp_discard_initial_frames - Discard init frames
  951. *
  952. * Some sensors require discarding the initial frames
  953. * after the sensor is streamed on. The discard would be
  954. * applied on all paths [IPP/PPP/RDIx] for the given
  955. * pipeline.
  956. *
  957. * @num_frames : Number of frames to be discarded
  958. * @discard_params : Params for future use
  959. */
  960. struct cam_isp_discard_initial_frames {
  961. __u32 num_frames;
  962. __u32 discard_params[5];
  963. } __attribute__((packed));
  964. /**
  965. * struct cam_isp_wm_bw_limiter_config - ISP write master
  966. * BW limter config
  967. *
  968. *
  969. * @res_type : output resource type defined in file
  970. * cam_isp_sfe.h or cam_isp_ife.h
  971. * @enable_limiter : 0 for disable else enabled
  972. * @counter_limit : Max counter value
  973. * @additional_params : Params for future use
  974. */
  975. struct cam_isp_wm_bw_limiter_config {
  976. __u32 res_type;
  977. __u32 enable_limiter;
  978. __u32 counter_limit[CAM_PACKET_MAX_PLANES];
  979. __u32 additional_params[5];
  980. };
  981. /**
  982. * struct cam_isp_out_rsrc_bw_limiter_config - ISP out rsrc BW limiter config
  983. *
  984. * Configure BW limiter for ISP WMs
  985. *
  986. * @num_ports : Number of ports
  987. * @reserved : Reserved field
  988. * @bw_limit_config : WM BW limiter config
  989. */
  990. struct cam_isp_out_rsrc_bw_limiter_config {
  991. __u32 num_ports;
  992. __u32 reserved;
  993. struct cam_isp_wm_bw_limiter_config bw_limiter_config[1];
  994. };
  995. /**
  996. * struct cam_isp_init_config - Init config for IFE/CSID/SFE
  997. *
  998. * Any configurations to be consumed by KMD
  999. * prior to stream on - one time configuration per stream.
  1000. * This blob is expected only in INIT packet. Per frame
  1001. * dynamic settings will not be part of this blob.
  1002. *
  1003. * @epoch_factor : % factor for epoch config with respect to frame height
  1004. * If factor is 60, epoch will be configured to 3/5th of
  1005. * the frame height. If this field is 0,
  1006. * KMD will configure default 50% of the height
  1007. * @additional_params : Reserved fields for future use
  1008. */
  1009. struct cam_isp_init_config {
  1010. struct cam_isp_epoch_height_config {
  1011. __u32 epoch_factor;
  1012. } epoch_cfg;
  1013. __u32 additional_params[19];
  1014. };
  1015. /**
  1016. * struct cam_isp_lcr_rdi_config - RDI res id to be muxed to LCR
  1017. *
  1018. * Configure RDI Res id for LCR
  1019. *
  1020. * @res_id : Out port Res id, it is same as the out port
  1021. * configured during acquire. It would vary
  1022. * as per SFE or IFE. Based on this res id,
  1023. * Mux register in IFE will be programmed.
  1024. * Examples:
  1025. * IFE:
  1026. * CAM_ISP_IFE_OUT_RES_RDI_0
  1027. * SFE:
  1028. * CAM_ISP_SFE_OUT_RES_RDI_0
  1029. * This blob is expected as a part of init packet for
  1030. * all LCR cases. For SHDR-LCR cases, this can be used
  1031. * per request. For non-shdr cases, this blob is not
  1032. * expected as the input to LCR will remain same throughout
  1033. * the session
  1034. * @reserved : Reserved field
  1035. */
  1036. struct cam_isp_lcr_rdi_config {
  1037. __u32 res_id;
  1038. __u32 reserved[5];
  1039. };
  1040. #define CAM_ISP_ACQUIRE_COMMON_VER0 0x1000
  1041. #define CAM_ISP_ACQUIRE_COMMON_SIZE_VER0 0x0
  1042. #define CAM_ISP_ACQUIRE_INPUT_VER0 0x2000
  1043. #define CAM_ISP_ACQUIRE_INPUT_SIZE_VER0 sizeof(struct cam_isp_in_port_info)
  1044. #define CAM_ISP_ACQUIRE_OUT_VER0 0x3000
  1045. #define CAM_ISP_ACQUIRE_OUT_SIZE_VER0 sizeof(struct cam_isp_out_port_info)
  1046. #endif /* __UAPI_CAM_ISP_H__ */