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

Commit 63d831d0 authored by Chris Lew's avatar Chris Lew
Browse files

mailbox: Add snapshot of MSM QMP driver



This snapshot is taken as of msm-4.19 'commit <dac6e981b55e>
("Merge "icnss: Skip removing WLAN host driver during recovery"")'.

In addition, update header copyright and remove unnecessary module
owner assignment.

Change-Id: Ic1e6ff34ca90a52d6b879ef0b12f5b60e9aec058
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent 85bf042e
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -227,4 +227,12 @@ config ZYNQMP_IPI_MBOX
	  message to the IPI buffer and will access the IPI control
	  registers to kick the other processor or enquire status.

config MSM_QMP
	tristate "QTI Mailbox Protocol(QMP)"
	help
	  Say yes to add support for the QTI Mailbox Protocol mailbox driver.
	  QMP is a lightweight communication protocol for sending messages to
	  a remote processor. This protocol fits into the Generic Mailbox
	  Framework. QMP uses a mailbox located in shared memory.

endif
+2 −0
Original line number Diff line number Diff line
@@ -48,3 +48,5 @@ obj-$(CONFIG_STM32_IPCC) += stm32-ipcc.o
obj-$(CONFIG_MTK_CMDQ_MBOX)	+= mtk-cmdq-mailbox.o

obj-$(CONFIG_ZYNQMP_IPI_MBOX)	+= zynqmp-ipi-mailbox.o

obj-$(CONFIG_MSM_QMP)   += msm_qmp.o
+1019 −0

File added.

Preview size limit exceeded, changes collapsed.

+21 −0
Original line number Diff line number Diff line
/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) 2017-2019, The Linux Foundation. All rights reserved.
 */

#ifndef _QMP_H_
#define _QMP_H_

#include <linux/types.h>

/**
 * struct qmp_pkt - Packet structure to be used for TX and RX with QMP
 * @size	size of data
 * @data	Buffer holding data of this packet
 */
struct qmp_pkt {
	u32 size;
	void *data;
};

#endif /* _QMP_H_ */