aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/qrtr.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/uapi/linux/qrtr.h b/include/uapi/linux/qrtr.h
index 63e8803e4d90..179af64846e0 100644
--- a/include/uapi/linux/qrtr.h
+++ b/include/uapi/linux/qrtr.h
@@ -13,4 +13,36 @@ struct sockaddr_qrtr {
13 __u32 sq_port; 13 __u32 sq_port;
14}; 14};
15 15
16enum qrtr_pkt_type {
17 QRTR_TYPE_DATA = 1,
18 QRTR_TYPE_HELLO = 2,
19 QRTR_TYPE_BYE = 3,
20 QRTR_TYPE_NEW_SERVER = 4,
21 QRTR_TYPE_DEL_SERVER = 5,
22 QRTR_TYPE_DEL_CLIENT = 6,
23 QRTR_TYPE_RESUME_TX = 7,
24 QRTR_TYPE_EXIT = 8,
25 QRTR_TYPE_PING = 9,
26 QRTR_TYPE_NEW_LOOKUP = 10,
27 QRTR_TYPE_DEL_LOOKUP = 11,
28};
29
30struct qrtr_ctrl_pkt {
31 __le32 cmd;
32
33 union {
34 struct {
35 __le32 service;
36 __le32 instance;
37 __le32 node;
38 __le32 port;
39 } server;
40
41 struct {
42 __le32 node;
43 __le32 port;
44 } client;
45 };
46} __packed;
47
16#endif /* _LINUX_QRTR_H */ 48#endif /* _LINUX_QRTR_H */