2017-11-01 08:08:43 -06:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
|
2016-05-06 08:09:08 -06:00
|
|
|
#ifndef _LINUX_QRTR_H
|
|
|
|
#define _LINUX_QRTR_H
|
|
|
|
|
|
|
|
#include <linux/socket.h>
|
uapi: includes linux/types.h before exporting files
Some files will be exported after a following patch. 0-day tests report the
following warning/error:
./usr/include/linux/bcache.h:8: include of <linux/types.h> is preferred over <asm/types.h>
./usr/include/linux/bcache.h:11: found __[us]{8,16,32,64} type without #include <linux/types.h>
./usr/include/linux/qrtr.h:8: found __[us]{8,16,32,64} type without #include <linux/types.h>
./usr/include/linux/cryptouser.h:39: found __[us]{8,16,32,64} type without #include <linux/types.h>
./usr/include/linux/pr.h:14: found __[us]{8,16,32,64} type without #include <linux/types.h>
./usr/include/linux/btrfs_tree.h:337: found __[us]{8,16,32,64} type without #include <linux/types.h>
./usr/include/rdma/bnxt_re-abi.h:45: found __[us]{8,16,32,64} type without #include <linux/types.h>
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2017-03-27 06:20:11 -06:00
|
|
|
#include <linux/types.h>
|
2016-05-06 08:09:08 -06:00
|
|
|
|
2017-10-11 00:45:18 -06:00
|
|
|
#define QRTR_NODE_BCAST 0xffffffffu
|
|
|
|
#define QRTR_PORT_CTRL 0xfffffffeu
|
|
|
|
|
2016-05-06 08:09:08 -06:00
|
|
|
struct sockaddr_qrtr {
|
|
|
|
__kernel_sa_family_t sq_family;
|
|
|
|
__u32 sq_node;
|
|
|
|
__u32 sq_port;
|
|
|
|
};
|
|
|
|
|
2017-10-11 00:45:19 -06:00
|
|
|
enum qrtr_pkt_type {
|
|
|
|
QRTR_TYPE_DATA = 1,
|
|
|
|
QRTR_TYPE_HELLO = 2,
|
|
|
|
QRTR_TYPE_BYE = 3,
|
|
|
|
QRTR_TYPE_NEW_SERVER = 4,
|
|
|
|
QRTR_TYPE_DEL_SERVER = 5,
|
|
|
|
QRTR_TYPE_DEL_CLIENT = 6,
|
|
|
|
QRTR_TYPE_RESUME_TX = 7,
|
|
|
|
QRTR_TYPE_EXIT = 8,
|
|
|
|
QRTR_TYPE_PING = 9,
|
|
|
|
QRTR_TYPE_NEW_LOOKUP = 10,
|
|
|
|
QRTR_TYPE_DEL_LOOKUP = 11,
|
|
|
|
};
|
2018-12-11 19:55:52 -07:00
|
|
|
#define QRTR_TYPE_DEL_PROC 13
|
|
|
|
|
2017-10-11 00:45:19 -06:00
|
|
|
|
|
|
|
struct qrtr_ctrl_pkt {
|
|
|
|
__le32 cmd;
|
|
|
|
|
|
|
|
union {
|
|
|
|
struct {
|
|
|
|
__le32 service;
|
|
|
|
__le32 instance;
|
|
|
|
__le32 node;
|
|
|
|
__le32 port;
|
|
|
|
} server;
|
|
|
|
|
|
|
|
struct {
|
|
|
|
__le32 node;
|
|
|
|
__le32 port;
|
|
|
|
} client;
|
2018-12-11 19:55:52 -07:00
|
|
|
|
|
|
|
struct {
|
|
|
|
__le32 rsvd;
|
|
|
|
__le32 node;
|
|
|
|
} proc;
|
2017-10-11 00:45:19 -06:00
|
|
|
};
|
|
|
|
} __packed;
|
|
|
|
|
2016-05-06 08:09:08 -06:00
|
|
|
#endif /* _LINUX_QRTR_H */
|