index 223d6c4cc1d0407f6b79c3a07e152be20a2b30a6..3afb8350a75cca0c3a6111f34334a939b1b33dd5 100644 (file)
/* user space needs this */
#ifndef AF_RPMSG
+#include <linux/version.h>
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,9,0)
#define AF_RPMSG 40
-#define PF_RPMSG AF_RPMSG
-#endif
+#else
+#define AF_RPMSG 41
+#endif /* LINUX_VERSION_CODE */
+#endif /* AF_RPMSG */
/* Connection and socket states */
enum {
#define RPMSG_LOCALHOST ((__u32) ~0UL)
-#ifdef __KERNEL__
-
-#include <net/sock.h>
-#include <linux/rpmsg.h>
-
-struct rpmsg_socket {
- struct sock sk;
- struct rpmsg_channel *rpdev;
- bool unregister_rpdev;
-};
-
-#endif /* __KERNEL__ */
#endif /* __NET_RPMSG_H */