linux/drivers/media/platform/qcom/venus/hfi_msgs.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved.
 * Copyright (C) 2017 Linaro Ltd.
 */
#ifndef __VENUS_HFI_MSGS_H__
#define __VENUS_HFI_MSGS_H__

/* message calls */
#define HFI_MSG_SYS_INIT
#define HFI_MSG_SYS_PC_PREP
#define HFI_MSG_SYS_RELEASE_RESOURCE
#define HFI_MSG_SYS_DEBUG
#define HFI_MSG_SYS_SESSION_INIT
#define HFI_MSG_SYS_SESSION_END
#define HFI_MSG_SYS_IDLE
#define HFI_MSG_SYS_COV
#define HFI_MSG_SYS_PROPERTY_INFO

#define HFI_MSG_EVENT_NOTIFY
#define HFI_MSG_SESSION_GET_SEQUENCE_HEADER

#define HFI_MSG_SYS_PING_ACK
#define HFI_MSG_SYS_SESSION_ABORT

#define HFI_MSG_SESSION_LOAD_RESOURCES
#define HFI_MSG_SESSION_START
#define HFI_MSG_SESSION_STOP
#define HFI_MSG_SESSION_SUSPEND
#define HFI_MSG_SESSION_RESUME
#define HFI_MSG_SESSION_FLUSH
#define HFI_MSG_SESSION_EMPTY_BUFFER
#define HFI_MSG_SESSION_FILL_BUFFER
#define HFI_MSG_SESSION_PROPERTY_INFO
#define HFI_MSG_SESSION_RELEASE_RESOURCES
#define HFI_MSG_SESSION_PARSE_SEQUENCE_HEADER
#define HFI_MSG_SESSION_RELEASE_BUFFERS

#define HFI_PICTURE_I
#define HFI_PICTURE_P
#define HFI_PICTURE_B
#define HFI_PICTURE_IDR
#define HFI_FRAME_NOTCODED
#define HFI_FRAME_YUV
#define HFI_UNUSED_PICT

/* message packets */
struct hfi_msg_event_notify_pkt {};

struct hfi_msg_event_release_buffer_ref_pkt {};

struct hfi_msg_sys_init_done_pkt {};

struct hfi_msg_sys_pc_prep_done_pkt {};

struct hfi_msg_sys_release_resource_done_pkt {};

struct hfi_msg_session_init_done_pkt {};

struct hfi_msg_session_end_done_pkt {};

struct hfi_msg_session_get_sequence_hdr_done_pkt {};

struct hfi_msg_sys_session_abort_done_pkt {};

struct hfi_msg_sys_idle_pkt {};

struct hfi_msg_sys_ping_ack_pkt {};

struct hfi_msg_sys_property_info_pkt {};

struct hfi_msg_session_load_resources_done_pkt {};

struct hfi_msg_session_start_done_pkt {};

struct hfi_msg_session_stop_done_pkt {};

struct hfi_msg_session_suspend_done_pkt {};

struct hfi_msg_session_resume_done_pkt {};

struct hfi_msg_session_flush_done_pkt {};

struct hfi_msg_session_empty_buffer_done_pkt {};

struct hfi_msg_session_fbd_compressed_pkt {};

struct hfi_msg_session_fbd_uncompressed_plane0_pkt {};

struct hfi_msg_session_fbd_uncompressed_plane1_pkt {};

struct hfi_msg_session_fbd_uncompressed_plane2_pkt {};

struct hfi_msg_session_parse_sequence_header_done_pkt {};

struct hfi_msg_session_property_info_pkt {};

struct hfi_msg_session_release_resources_done_pkt {};

struct hfi_msg_session_release_buffers_done_pkt {};

struct hfi_msg_sys_debug_pkt {};

struct hfi_msg_sys_coverage_pkt {};

struct venus_core;
struct hfi_pkt_hdr;

void hfi_process_watchdog_timeout(struct venus_core *core);
u32 hfi_process_msg_packet(struct venus_core *core, struct hfi_pkt_hdr *hdr);

#endif