Files
android_kernel_samsung_sm86…/msm/sde/sde_vm_msgq.h
Jeykumar Sankaran d076f02017 disp: msm: sde: add msgq support for sde vm layer
Linux message queues(msgq) are used to communicate between VM's
This change creates a display specific msgq and a set of
framework api's for the VM layer to invoke communication
between the VMs'.

Display msgq is bidirectional. Tx end is created by default for
both the VM's. Rx is kept optional to avoid unnecessary creation
of listener threads.

Change-Id: If4e6410045293d6b21087a76ec018d4784dd5238
Signed-off-by: Jeykumar Sankaran <jsanka@codeaurora.org>
2020-10-28 00:52:12 -04:00

29 rader
757 B
C

/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2020, The Linux Foundation. All rights reserved.
*/
#ifndef __SDE_VM_MSGQ_H__
#define __SDE_VM_MSGQ_H__
/**
* sde_vm_msgq_init - initialize display message queue: both TX and RX
* @sde_kms - handle to sde_kms
*/
int sde_vm_msgq_init(struct sde_vm *sde_vm);
/**
* sde_vm_msgq_deinit - deinitialize display message queue: both TX and RX
* @sde_kms - handle to sde_kms
*/
void sde_vm_msgq_deinit(struct sde_vm *sde_vm);
/**
* sde_vm_msgq_send - send custom messages across VM's
* @sde_vm - handle to vm base struct
* @msg - payload data
* @msg_size - size of the payload_data
*/
int sde_vm_msgq_send(struct sde_vm *sde_vm, void *msg, size_t msg_size);
#endif // __SDE_VM_MSGQ_H__