blob: 60cff794ca2064fcb4228139a76397331b9e8c70 [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 Ferris05d08e92016-02-04 13:16:38 -08007#ifndef SCIF_IOCTL_H
8#define SCIF_IOCTL_H
9#include <linux/types.h>
10struct scif_port_id {
Christopher Ferris05d08e92016-02-04 13:16:38 -080011 __u16 node;
12 __u16 port;
13};
14struct scifioctl_connect {
Christopher Ferris05d08e92016-02-04 13:16:38 -080015 struct scif_port_id self;
16 struct scif_port_id peer;
17};
18struct scifioctl_accept {
Christopher Ferris05d08e92016-02-04 13:16:38 -080019 __s32 flags;
20 struct scif_port_id peer;
21 __u64 endpt;
22};
Christopher Ferris05d08e92016-02-04 13:16:38 -080023struct scifioctl_msg {
24 __u64 msg;
25 __s32 len;
26 __s32 flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080027 __s32 out_len;
28};
29struct scifioctl_reg {
30 __u64 addr;
Christopher Ferris05d08e92016-02-04 13:16:38 -080031 __u64 len;
32 __s64 offset;
33 __s32 prot;
34 __s32 flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080035 __s64 out_offset;
36};
37struct scifioctl_unreg {
38 __s64 offset;
Christopher Ferris05d08e92016-02-04 13:16:38 -080039 __u64 len;
40};
41struct scifioctl_copy {
42 __s64 loffset;
Christopher Ferris05d08e92016-02-04 13:16:38 -080043 __u64 len;
44 __s64 roffset;
45 __u64 addr;
46 __s32 flags;
Christopher Ferris05d08e92016-02-04 13:16:38 -080047};
48struct scifioctl_fence_mark {
49 __s32 flags;
50 __u64 mark;
Christopher Ferris05d08e92016-02-04 13:16:38 -080051};
52struct scifioctl_fence_signal {
53 __s64 loff;
54 __u64 lval;
Christopher Ferris05d08e92016-02-04 13:16:38 -080055 __s64 roff;
56 __u64 rval;
57 __s32 flags;
58};
Christopher Ferris05d08e92016-02-04 13:16:38 -080059struct scifioctl_node_ids {
60 __u64 nodes;
61 __u64 self;
62 __s32 len;
Christopher Ferris05d08e92016-02-04 13:16:38 -080063};
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)
Christopher Ferris05d08e92016-02-04 13:16:38 -080067#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)
Christopher Ferris05d08e92016-02-04 13:16:38 -080071#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)
Christopher Ferris05d08e92016-02-04 13:16:38 -080075#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)
Christopher Ferris05d08e92016-02-04 13:16:38 -080079#define SCIF_FENCE_WAIT _IOWR('s', 16, __s32)
80#define SCIF_FENCE_SIGNAL _IOWR('s', 17, struct scifioctl_fence_signal)
81#endif