blob: 205debf4ea65322b0b6c075f63560ee3e9f66597 [file] [log] [blame]
Bjorn Andersson8b881c02016-09-01 15:28:02 -07001/*
2 * remote processor messaging bus internals
3 *
4 * Copyright (C) 2011 Texas Instruments, Inc.
5 * Copyright (C) 2011 Google, Inc.
6 *
7 * Ohad Ben-Cohen <ohad@wizery.com>
8 * Brian Swetland <swetland@google.com>
9 *
10 * This software is licensed under the terms of the GNU General Public
11 * License version 2, as published by the Free Software Foundation, and
12 * may be copied, distributed, and modified under those terms.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * GNU General Public License for more details.
18 */
19
20#ifndef __RPMSG_INTERNAL_H__
21#define __RPMSG_INTERNAL_H__
22
23#include <linux/rpmsg.h>
24
25#define to_rpmsg_device(d) container_of(d, struct rpmsg_device, dev)
26#define to_rpmsg_driver(d) container_of(d, struct rpmsg_driver, drv)
27
28struct device *rpmsg_find_device(struct device *parent,
29 struct rpmsg_channel_info *chinfo);
30
31#endif