blob: a3bc216448dd15955dd65c63d4b01765e8325412 [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 Ferris525ce912017-07-26 13:12:53 -07007#ifndef _LINUX_VIRTIO_MMIO_H
8#define _LINUX_VIRTIO_MMIO_H
9#define VIRTIO_MMIO_MAGIC_VALUE 0x000
10#define VIRTIO_MMIO_VERSION 0x004
11#define VIRTIO_MMIO_DEVICE_ID 0x008
12#define VIRTIO_MMIO_VENDOR_ID 0x00c
13#define VIRTIO_MMIO_DEVICE_FEATURES 0x010
14#define VIRTIO_MMIO_DEVICE_FEATURES_SEL 0x014
15#define VIRTIO_MMIO_DRIVER_FEATURES 0x020
16#define VIRTIO_MMIO_DRIVER_FEATURES_SEL 0x024
17#ifndef VIRTIO_MMIO_NO_LEGACY
18#define VIRTIO_MMIO_GUEST_PAGE_SIZE 0x028
19#endif
20#define VIRTIO_MMIO_QUEUE_SEL 0x030
21#define VIRTIO_MMIO_QUEUE_NUM_MAX 0x034
22#define VIRTIO_MMIO_QUEUE_NUM 0x038
23#ifndef VIRTIO_MMIO_NO_LEGACY
24#define VIRTIO_MMIO_QUEUE_ALIGN 0x03c
25#define VIRTIO_MMIO_QUEUE_PFN 0x040
26#endif
27#define VIRTIO_MMIO_QUEUE_READY 0x044
28#define VIRTIO_MMIO_QUEUE_NOTIFY 0x050
29#define VIRTIO_MMIO_INTERRUPT_STATUS 0x060
30#define VIRTIO_MMIO_INTERRUPT_ACK 0x064
31#define VIRTIO_MMIO_STATUS 0x070
32#define VIRTIO_MMIO_QUEUE_DESC_LOW 0x080
33#define VIRTIO_MMIO_QUEUE_DESC_HIGH 0x084
34#define VIRTIO_MMIO_QUEUE_AVAIL_LOW 0x090
35#define VIRTIO_MMIO_QUEUE_AVAIL_HIGH 0x094
36#define VIRTIO_MMIO_QUEUE_USED_LOW 0x0a0
37#define VIRTIO_MMIO_QUEUE_USED_HIGH 0x0a4
Christopher Ferris32ff3f82020-12-14 13:10:04 -080038#define VIRTIO_MMIO_SHM_SEL 0x0ac
39#define VIRTIO_MMIO_SHM_LEN_LOW 0x0b0
40#define VIRTIO_MMIO_SHM_LEN_HIGH 0x0b4
41#define VIRTIO_MMIO_SHM_BASE_LOW 0x0b8
42#define VIRTIO_MMIO_SHM_BASE_HIGH 0x0bc
Christopher Ferris525ce912017-07-26 13:12:53 -070043#define VIRTIO_MMIO_CONFIG_GENERATION 0x0fc
44#define VIRTIO_MMIO_CONFIG 0x100
45#define VIRTIO_MMIO_INT_VRING (1 << 0)
46#define VIRTIO_MMIO_INT_CONFIG (1 << 1)
47#endif