blob: a3a5453db4fcfb2014dfaffc989da6fb1ed48546 [file] [log] [blame]
Christopher Ferris49f525c2016-12-12 14:55:36 -08001/****************************************************************************
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 _UAPI_LINUX_VIRTIO_VSOCK_H
20#define _UAPI_LINUX_VIRTIO_VSOCK_H
21#include <linux/types.h>
22#include <linux/virtio_ids.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#include <linux/virtio_config.h>
25struct virtio_vsock_config {
26 __le64 guest_cid;
27} __attribute__((packed));
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29enum virtio_vsock_event_id {
30 VIRTIO_VSOCK_EVENT_TRANSPORT_RESET = 0,
31};
32struct virtio_vsock_event {
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 __le32 id;
35} __attribute__((packed));
36struct virtio_vsock_hdr {
37 __le64 src_cid;
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 __le64 dst_cid;
40 __le32 src_port;
41 __le32 dst_port;
42 __le32 len;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 __le16 type;
45 __le16 op;
46 __le32 flags;
47 __le32 buf_alloc;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __le32 fwd_cnt;
50} __attribute__((packed));
51enum virtio_vsock_type {
52 VIRTIO_VSOCK_TYPE_STREAM = 1,
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55enum virtio_vsock_op {
56 VIRTIO_VSOCK_OP_INVALID = 0,
57 VIRTIO_VSOCK_OP_REQUEST = 1,
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59 VIRTIO_VSOCK_OP_RESPONSE = 2,
60 VIRTIO_VSOCK_OP_RST = 3,
61 VIRTIO_VSOCK_OP_SHUTDOWN = 4,
62 VIRTIO_VSOCK_OP_RW = 5,
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 VIRTIO_VSOCK_OP_CREDIT_UPDATE = 6,
65 VIRTIO_VSOCK_OP_CREDIT_REQUEST = 7,
66};
67enum virtio_vsock_shutdown {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 VIRTIO_VSOCK_SHUTDOWN_RCV = 1,
70 VIRTIO_VSOCK_SHUTDOWN_SEND = 2,
71};
72#endif
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */