d064080d80
This snapshot is taken as of msm-4.14 'commit <67942dbf2187> ("Merge "net: netfilter: IRC DCC for private clients"")'. This change brings the rpmsg and rpmsg glink drivers up to date with the fixes from msm-4.14 and also adds the spi and spss transports from msm-4.14. In addition, change the copyrights to SPDX format. Change-Id: Idc0c9ad00c0562a7f3e2807ea9cfca644680dd9d Signed-off-by: Chris Lew <clew@codeaurora.org>
71 lines
1.4 KiB
C
71 lines
1.4 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef _LINUX_RPMSG_QCOM_GLINK_H
|
|
#define _LINUX_RPMSG_QCOM_GLINK_H
|
|
|
|
#include <linux/device.h>
|
|
|
|
struct qcom_glink;
|
|
struct glink_spi;
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SMEM)
|
|
|
|
struct qcom_glink *qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node);
|
|
void qcom_glink_smem_unregister(struct qcom_glink *glink);
|
|
|
|
#else
|
|
|
|
static inline struct qcom_glink *
|
|
qcom_glink_smem_register(struct device *parent,
|
|
struct device_node *node)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void qcom_glink_smem_unregister(struct qcom_glink *glink) {}
|
|
|
|
#endif
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SPSS)
|
|
|
|
struct qcom_glink *qcom_glink_spss_register(struct device *parent,
|
|
struct device_node *node);
|
|
void qcom_glink_spss_unregister(struct qcom_glink *glink);
|
|
|
|
#else
|
|
|
|
static inline struct qcom_glink *
|
|
qcom_glink_spss_register(struct device *parent,
|
|
struct device_node *node)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void qcom_glink_spss_unregister(struct qcom_glink *glink) {}
|
|
|
|
#endif
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_RPMSG_QCOM_GLINK_SPI)
|
|
|
|
struct glink_spi *qcom_glink_spi_register(struct device *parent,
|
|
struct device_node *node);
|
|
void qcom_glink_spi_unregister(struct glink_spi *glink);
|
|
|
|
#else
|
|
|
|
static inline struct glink_spi *
|
|
qcom_glink_spi_register(struct device *parent, struct device_node *node)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
static inline void qcom_glink_spi_unregister(struct glink_spi *glink) {}
|
|
|
|
#endif
|
|
|
|
|
|
#endif
|