]>
Commit | Line | Data |
---|---|---|
8b881c07 BA |
1 | /* |
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 | ||
28 | struct device *rpmsg_find_device(struct device *parent, | |
29 | struct rpmsg_channel_info *chinfo); | |
30 | ||
31 | #endif |