techpack: video: add video driver

Add initial video driver files.

Change-Id: Icd48bbf31e435cf36f149d6c3267cf3a4d7913b3
Signed-off-by: Maheshwar Ajja <majja@codeaurora.org>
This commit is contained in:
Maheshwar Ajja
2020-08-05 14:29:29 -07:00
parent 7eb9a06ef5
commit 6f107f7e35
39 changed files with 9337 additions and 0 deletions

View File

@@ -0,0 +1,53 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef _HFI_PACKET_H_
#define _HFI_PACKET_H_
#include "msm_vidc_internal.h"
#include "msm_vidc_inst.h"
#include "msm_vidc_core.h"
struct hfi_header {
u32 size;
u32 session_id;
u32 header_id;
u32 reserved[4];
u32 num_packets;
};
struct hfi_packet {
u32 size;
u32 type;
u32 flags;
u32 payload_info;
u32 port;
u32 packet_id;
u32 reserved[2];
};
struct hfi_buffer {
u32 type;
u32 index;
u64 base_address;
u32 addr_offset;
u32 buffer_size;
u32 data_offset;
u32 data_size;
u32 flags;
u64 timestamp;
u32 reserved[5];
};
int hfi_packet_sys_init(struct msm_vidc_core *core,
void *packet, u32 packet_size);
int hfi_packet_image_version(struct msm_vidc_core *core,
void *packet, u32 packet_size);
int hfi_packet_sys_debug_config(struct msm_vidc_core *core,
void *packet, u32 packet_size, u32 mode);
int hfi_packet_sys_pc_prep(struct msm_vidc_core *core,
void *packet, u32 packet_size);
#endif // _HFI_PACKET_H_