blob: 4a67a5d90530ad0ff6142f20d12f6d9c59caa599 [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 Ferris3a39c0b2021-09-02 00:03:38 +00007#ifndef _UAPI_LINUX_VIRTIO_PCIDEV_H
8#define _UAPI_LINUX_VIRTIO_PCIDEV_H
Ben Cheng655a7c02013-10-16 16:09:24 -07009#include <linux/types.h>
Christopher Ferris3a39c0b2021-09-02 00:03:38 +000010enum virtio_pcidev_ops {
11 VIRTIO_PCIDEV_OP_RESERVED = 0,
12 VIRTIO_PCIDEV_OP_CFG_READ,
13 VIRTIO_PCIDEV_OP_CFG_WRITE,
14 VIRTIO_PCIDEV_OP_MMIO_READ,
15 VIRTIO_PCIDEV_OP_MMIO_WRITE,
16 VIRTIO_PCIDEV_OP_MMIO_MEMSET,
17 VIRTIO_PCIDEV_OP_INT,
18 VIRTIO_PCIDEV_OP_MSI,
19 VIRTIO_PCIDEV_OP_PME,
20};
21struct virtio_pcidev_msg {
22 __u8 op;
23 __u8 bar;
24 __u16 reserved;
25 __u32 size;
26 __u64 addr;
27 __u8 data[];
Ben Cheng655a7c02013-10-16 16:09:24 -070028};
Nick Kralevicha67e4de2013-01-14 11:28:26 -080029#endif