• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1  /*
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   */
7  #ifndef SCIF_IOCTL_H
8  #define SCIF_IOCTL_H
9  #include <linux/types.h>
10  struct scif_port_id {
11    __u16 node;
12    __u16 port;
13  };
14  struct scifioctl_connect {
15    struct scif_port_id self;
16    struct scif_port_id peer;
17  };
18  struct scifioctl_accept {
19    __s32 flags;
20    struct scif_port_id peer;
21    __u64 endpt;
22  };
23  struct scifioctl_msg {
24    __u64 msg;
25    __s32 len;
26    __s32 flags;
27    __s32 out_len;
28  };
29  struct scifioctl_reg {
30    __u64 addr;
31    __u64 len;
32    __s64 offset;
33    __s32 prot;
34    __s32 flags;
35    __s64 out_offset;
36  };
37  struct scifioctl_unreg {
38    __s64 offset;
39    __u64 len;
40  };
41  struct scifioctl_copy {
42    __s64 loffset;
43    __u64 len;
44    __s64 roffset;
45    __u64 addr;
46    __s32 flags;
47  };
48  struct scifioctl_fence_mark {
49    __s32 flags;
50    __u64 mark;
51  };
52  struct scifioctl_fence_signal {
53    __s64 loff;
54    __u64 lval;
55    __s64 roff;
56    __u64 rval;
57    __s32 flags;
58  };
59  struct scifioctl_node_ids {
60    __u64 nodes;
61    __u64 self;
62    __s32 len;
63  };
64  #define SCIF_BIND _IOWR('s', 1, __u64)
65  #define SCIF_LISTEN _IOW('s', 2, __s32)
66  #define SCIF_CONNECT _IOWR('s', 3, struct scifioctl_connect)
67  #define SCIF_ACCEPTREQ _IOWR('s', 4, struct scifioctl_accept)
68  #define SCIF_ACCEPTREG _IOWR('s', 5, __u64)
69  #define SCIF_SEND _IOWR('s', 6, struct scifioctl_msg)
70  #define SCIF_RECV _IOWR('s', 7, struct scifioctl_msg)
71  #define SCIF_REG _IOWR('s', 8, struct scifioctl_reg)
72  #define SCIF_UNREG _IOWR('s', 9, struct scifioctl_unreg)
73  #define SCIF_READFROM _IOWR('s', 10, struct scifioctl_copy)
74  #define SCIF_WRITETO _IOWR('s', 11, struct scifioctl_copy)
75  #define SCIF_VREADFROM _IOWR('s', 12, struct scifioctl_copy)
76  #define SCIF_VWRITETO _IOWR('s', 13, struct scifioctl_copy)
77  #define SCIF_GET_NODEIDS _IOWR('s', 14, struct scifioctl_node_ids)
78  #define SCIF_FENCE_MARK _IOWR('s', 15, struct scifioctl_fence_mark)
79  #define SCIF_FENCE_WAIT _IOWR('s', 16, __s32)
80  #define SCIF_FENCE_SIGNAL _IOWR('s', 17, struct scifioctl_fence_signal)
81  #endif
82