123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141 |
- #ifndef _LINUX_VIRTIO_MMIO_H
- #define _LINUX_VIRTIO_MMIO_H
- #define VIRTIO_MMIO_MAGIC_VALUE 0x000
- #define VIRTIO_MMIO_VERSION 0x004
- #define VIRTIO_MMIO_DEVICE_ID 0x008
- #define VIRTIO_MMIO_VENDOR_ID 0x00c
- #define VIRTIO_MMIO_DEVICE_FEATURES 0x010
- #define VIRTIO_MMIO_DEVICE_FEATURES_SEL 0x014
- #define VIRTIO_MMIO_DRIVER_FEATURES 0x020
- #define VIRTIO_MMIO_DRIVER_FEATURES_SEL 0x024
- #ifndef VIRTIO_MMIO_NO_LEGACY
- #define VIRTIO_MMIO_GUEST_PAGE_SIZE 0x028
- #endif
- #define VIRTIO_MMIO_QUEUE_SEL 0x030
- #define VIRTIO_MMIO_QUEUE_NUM_MAX 0x034
- #define VIRTIO_MMIO_QUEUE_NUM 0x038
- #ifndef VIRTIO_MMIO_NO_LEGACY
- #define VIRTIO_MMIO_QUEUE_ALIGN 0x03c
- #define VIRTIO_MMIO_QUEUE_PFN 0x040
- #endif
- #define VIRTIO_MMIO_QUEUE_READY 0x044
- #define VIRTIO_MMIO_QUEUE_NOTIFY 0x050
- #define VIRTIO_MMIO_INTERRUPT_STATUS 0x060
- #define VIRTIO_MMIO_INTERRUPT_ACK 0x064
- #define VIRTIO_MMIO_STATUS 0x070
- #define VIRTIO_MMIO_QUEUE_DESC_LOW 0x080
- #define VIRTIO_MMIO_QUEUE_DESC_HIGH 0x084
- #define VIRTIO_MMIO_QUEUE_AVAIL_LOW 0x090
- #define VIRTIO_MMIO_QUEUE_AVAIL_HIGH 0x094
- #define VIRTIO_MMIO_QUEUE_USED_LOW 0x0a0
- #define VIRTIO_MMIO_QUEUE_USED_HIGH 0x0a4
- #define VIRTIO_MMIO_CONFIG_GENERATION 0x0fc
- #define VIRTIO_MMIO_CONFIG 0x100
- #define VIRTIO_MMIO_INT_VRING (1 << 0)
- #define VIRTIO_MMIO_INT_CONFIG (1 << 1)
- #endif
|