rpmsg_internal.h (84d58132d285b2edef951d6633c1e5224e8b5283) rpmsg_internal.h (c0cdc19f84a4712cf74888f83af286e3c2e14efd)
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>

--- 68 unchanged lines hidden (view full) ---

77
78int rpmsg_register_device(struct rpmsg_device *rpdev);
79int rpmsg_unregister_device(struct device *parent,
80 struct rpmsg_channel_info *chinfo);
81
82struct device *rpmsg_find_device(struct device *parent,
83 struct rpmsg_channel_info *chinfo);
84
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>

--- 68 unchanged lines hidden (view full) ---

77
78int rpmsg_register_device(struct rpmsg_device *rpdev);
79int rpmsg_unregister_device(struct device *parent,
80 struct rpmsg_channel_info *chinfo);
81
82struct device *rpmsg_find_device(struct device *parent,
83 struct rpmsg_channel_info *chinfo);
84
85/**
86 * rpmsg_chrdev_register_device() - register chrdev device based on rpdev
87 * @rpdev: prepared rpdev to be used for creating endpoints
88 *
89 * This function wraps rpmsg_register_device() preparing the rpdev for use as
90 * basis for the rpmsg chrdev.
91 */
92static inline int rpmsg_chrdev_register_device(struct rpmsg_device *rpdev)
93{
94 strcpy(rpdev->id.name, "rpmsg_chrdev");
95 rpdev->driver_override = "rpmsg_chrdev";
96
97 return rpmsg_register_device(rpdev);
98}
99
85#endif
100#endif