blob: 024a5be3dca419f32940553e8bc6fd2dc7359285 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
2 * This file is auto-generated. Modifications will be lost.
3 *
4 * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5 * for more information.
6 */
Christopher Ferris106b3a82016-08-24 12:15:38 -07007#ifndef _LINUX_QRTR_H
8#define _LINUX_QRTR_H
9#include <linux/socket.h>
Christopher Ferris525ce912017-07-26 13:12:53 -070010#include <linux/types.h>
Christopher Ferris934ec942018-01-31 15:29:16 -080011#define QRTR_NODE_BCAST 0xffffffffu
12#define QRTR_PORT_CTRL 0xfffffffeu
Christopher Ferris106b3a82016-08-24 12:15:38 -070013struct sockaddr_qrtr {
Christopher Ferris106b3a82016-08-24 12:15:38 -070014 __kernel_sa_family_t sq_family;
15 __u32 sq_node;
16 __u32 sq_port;
17};
Christopher Ferris934ec942018-01-31 15:29:16 -080018enum qrtr_pkt_type {
19 QRTR_TYPE_DATA = 1,
20 QRTR_TYPE_HELLO = 2,
21 QRTR_TYPE_BYE = 3,
22 QRTR_TYPE_NEW_SERVER = 4,
23 QRTR_TYPE_DEL_SERVER = 5,
24 QRTR_TYPE_DEL_CLIENT = 6,
25 QRTR_TYPE_RESUME_TX = 7,
26 QRTR_TYPE_EXIT = 8,
27 QRTR_TYPE_PING = 9,
28 QRTR_TYPE_NEW_LOOKUP = 10,
29 QRTR_TYPE_DEL_LOOKUP = 11,
30};
31struct qrtr_ctrl_pkt {
32 __le32 cmd;
33 union {
34 struct {
35 __le32 service;
36 __le32 instance;
37 __le32 node;
38 __le32 port;
39 } server;
40 struct {
41 __le32 node;
42 __le32 port;
43 } client;
44 };
Colin Cross4ac33222022-12-15 15:45:35 -080045} __attribute__((__packed__));
Christopher Ferris106b3a82016-08-24 12:15:38 -070046#endif