
Merge all changes that deal with the ION memory manager from msm-4.19 to msm-lahaina as of commit: 9dd0018410fe: Merge "clk: qcom: npucc-kona: Enable safe config and HW_CTL for all RCGs". Change-Id: I0c362ff9e6938883535467f0809ee360a733638e Signed-off-by: Isaac J. Manjarres <isaacm@codeaurora.org>
31 lines
819 B
C
31 lines
819 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Copyright (c) 2018-2019, The Linux Foundation. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _DMA_BUF_REF_H
|
|
#define _DMA_BUF_REF_H
|
|
|
|
struct msm_dma_buf;
|
|
struct seq_file;
|
|
|
|
#ifdef CONFIG_DEBUG_DMA_BUF_REF
|
|
void dma_buf_ref_init(struct msm_dma_buf *b);
|
|
void dma_buf_ref_destroy(struct msm_dma_buf *b);
|
|
void dma_buf_ref_mod(struct msm_dma_buf *b, int nr);
|
|
int dma_buf_ref_show(struct seq_file *s, struct msm_dma_buf *msm_dma_buf);
|
|
|
|
#else
|
|
static inline void dma_buf_ref_init(struct msm_dma_buf *b) {}
|
|
static inline void dma_buf_ref_destroy(struct msm_dma_buf *b) {}
|
|
static inline void dma_buf_ref_mod(struct msm_dma_buf *b, int nr) {}
|
|
static inline int dma_buf_ref_show(struct seq_file *s,
|
|
struct msm_dma_buf *msm_dma_buf)
|
|
{
|
|
return -ENOMEM;
|
|
}
|
|
#endif
|
|
|
|
|
|
#endif /* _DMA_BUF_REF_H */
|