qcom_aoss.h (654B)
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright (c) 2021, The Linux Foundation. All rights reserved. 4 */ 5 6#ifndef __QCOM_AOSS_H__ 7#define __QCOM_AOSS_H__ 8 9#include <linux/err.h> 10#include <linux/device.h> 11 12struct qmp; 13 14#if IS_ENABLED(CONFIG_QCOM_AOSS_QMP) 15 16int qmp_send(struct qmp *qmp, const void *data, size_t len); 17struct qmp *qmp_get(struct device *dev); 18void qmp_put(struct qmp *qmp); 19 20#else 21 22static inline int qmp_send(struct qmp *qmp, const void *data, size_t len) 23{ 24 return -ENODEV; 25} 26 27static inline struct qmp *qmp_get(struct device *dev) 28{ 29 return ERR_PTR(-ENODEV); 30} 31 32static inline void qmp_put(struct qmp *qmp) 33{ 34} 35 36#endif 37 38#endif