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

Commit 60623777 authored by Sujeev Dias's avatar Sujeev Dias
Browse files

mhi: core: expand mhi_buf structure to describe additional bufferptr types



MHI clients use mhi_buf structure to describe payload packet,
expand it to store page, and skb ptr.

CRs-Fixed: 2361266
Change-Id: Ia240d1fb726ab96f8b47daef1e25db881beb61ef
Signed-off-by: default avatarSujeev Dias <sdias@codeaurora.org>
parent 8adc93c7
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -339,18 +339,23 @@ struct mhi_result {

/**
 * struct mhi_buf - Describes the buffer
 * @page: buffer as a page
 * @buf: cpu address for the buffer
 * @phys_addr: physical address of the buffer
 * @dma_addr: iommu address for the buffer
 * @skb: skb of ip packet
 * @len: # of bytes
 * @name: Buffer label, for offload channel configurations name must be:
 * ECA - Event context array data
 * CCA - Channel context array data
 */
struct mhi_buf {
	struct list_head node;
	struct page *page;
	void *buf;
	phys_addr_t phys_addr;
	dma_addr_t dma_addr;
	struct sk_buff *skb;
	size_t len;
	const char *name; /* ECA, CCA */
};