Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5a3d3c05 authored by Jilai Wang's avatar Jilai Wang
Browse files

msm: npu: update uapi header file to align with 4.14/4.19 kernel



This change is to update npu driver's uapi header file to align
data structures' definition same as those in 4.14 and 4.19 kernel
which allows the user application to be used on different kernel
version.

Change-Id: I426308c98f058981517aa46fd2475a5a137f548f
Signed-off-by: default avatarJilai Wang <jilaiw@codeaurora.org>
parent 37a11268
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -103,19 +103,17 @@
struct msm_npu_patch_info {
	/* chunk id */
	__u32 chunk_id;
	/* location offset */
	__u32 loc_offset;
	/* instruction size in bytes */
	__u16 instruction_size_in_bytes;
	/* variable size in bits */
	__u16 variable_size_in_bits;
	/* shift value in bits */
	__u16 shift_value_in_bits;
	/* location offset */
	__u32 loc_offset;
};

struct msm_npu_layer {
	/* physical address */
	__u64 buf_phys_addr;
	/* layer id */
	__u32 layer_id;
	/* patch information*/
@@ -124,6 +122,8 @@ struct msm_npu_layer {
	__s32 buf_hdl;
	/* buffer size */
	__u32 buf_size;
	/* physical address */
	__u64 buf_phys_addr;
};

struct msm_npu_patch_info_v2 {
@@ -153,19 +153,19 @@ struct msm_npu_patch_buf_info {
 * -------------------------------------------------------------------------
 */
struct msm_npu_map_buf_ioctl {
	/* iommu mapped physical address */
	__u64 npu_phys_addr;
	/* buffer ion handle */
	__s32 buf_ion_hdl;
	/* buffer size */
	__u32 size;
	/* iommu mapped physical address */
	__u64 npu_phys_addr;
};

struct msm_npu_unmap_buf_ioctl {
	/* iommu mapped physical address */
	__u64 npu_phys_addr;
	/* buffer ion handle */
	__s32 buf_ion_hdl;
	/* iommu mapped physical address */
	__u64 npu_phys_addr;
};

struct msm_npu_get_info_ioctl {
@@ -176,10 +176,10 @@ struct msm_npu_get_info_ioctl {
};

struct msm_npu_load_network_ioctl {
	/* physical address */
	__u64 buf_phys_addr;
	/* buffer ion handle */
	__s32 buf_ion_hdl;
	/* physical address */
	__u64 buf_phys_addr;
	/* buffer size */
	__u32 buf_size;
	/* first block size */