1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef SCIF_IOCTL_H
20#define SCIF_IOCTL_H
21#include <linux/types.h>
22struct scif_port_id {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24  __u16 node;
25  __u16 port;
26};
27struct scifioctl_connect {
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  struct scif_port_id self;
30  struct scif_port_id peer;
31};
32struct scifioctl_accept {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __s32 flags;
35  struct scif_port_id peer;
36  __u64 endpt;
37};
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39struct scifioctl_msg {
40  __u64 msg;
41  __s32 len;
42  __s32 flags;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44  __s32 out_len;
45};
46struct scifioctl_reg {
47  __u64 addr;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49  __u64 len;
50  __s64 offset;
51  __s32 prot;
52  __s32 flags;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __s64 out_offset;
55};
56struct scifioctl_unreg {
57  __s64 offset;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __u64 len;
60};
61struct scifioctl_copy {
62  __s64 loffset;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  __u64 len;
65  __s64 roffset;
66  __u64 addr;
67  __s32 flags;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70struct scifioctl_fence_mark {
71  __s32 flags;
72  __u64 mark;
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74};
75struct scifioctl_fence_signal {
76  __s64 loff;
77  __u64 lval;
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  __s64 roff;
80  __u64 rval;
81  __s32 flags;
82};
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84struct scifioctl_node_ids {
85  __u64 nodes;
86  __u64 self;
87  __s32 len;
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89};
90#define SCIF_BIND _IOWR('s', 1, __u64)
91#define SCIF_LISTEN _IOW('s', 2, __s32)
92#define SCIF_CONNECT _IOWR('s', 3, struct scifioctl_connect)
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94#define SCIF_ACCEPTREQ _IOWR('s', 4, struct scifioctl_accept)
95#define SCIF_ACCEPTREG _IOWR('s', 5, __u64)
96#define SCIF_SEND _IOWR('s', 6, struct scifioctl_msg)
97#define SCIF_RECV _IOWR('s', 7, struct scifioctl_msg)
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99#define SCIF_REG _IOWR('s', 8, struct scifioctl_reg)
100#define SCIF_UNREG _IOWR('s', 9, struct scifioctl_unreg)
101#define SCIF_READFROM _IOWR('s', 10, struct scifioctl_copy)
102#define SCIF_WRITETO _IOWR('s', 11, struct scifioctl_copy)
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104#define SCIF_VREADFROM _IOWR('s', 12, struct scifioctl_copy)
105#define SCIF_VWRITETO _IOWR('s', 13, struct scifioctl_copy)
106#define SCIF_GET_NODEIDS _IOWR('s', 14, struct scifioctl_node_ids)
107#define SCIF_FENCE_MARK _IOWR('s', 15, struct scifioctl_fence_mark)
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109#define SCIF_FENCE_WAIT _IOWR('s', 16, __s32)
110#define SCIF_FENCE_SIGNAL _IOWR('s', 17, struct scifioctl_fence_signal)
111#endif
112