On MMIO a new set of registers is defined for finding SHM regions. Add their definitions and use them to find the region.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -122,6 +122,17 @@ · 121 unmodified lines | ||
| 122 | 122 | #define VIRTIO_MMIO_QUEUE_USED_LOW 0x0a0 |
| 123 | 123 | #define VIRTIO_MMIO_QUEUE_USED_HIGH 0x0a4 |
| 124 | 124 | |
| 125 | +/* Shared memory region id */ | |
| 126 | +#define VIRTIO_MMIO_SHM_SEL 0x0ac | |
| 127 | + | |
| 128 | +/* Shared memory region length, 64 bits in two halves */ | |
| 129 | +#define VIRTIO_MMIO_SHM_LEN_LOW 0x0b0 | |
| 130 | +#define VIRTIO_MMIO_SHM_LEN_HIGH 0x0b4 | |
| 131 | + | |
| 132 | +/* Shared memory region base address, 64 bits in two halves */ | |
| 133 | +#define VIRTIO_MMIO_SHM_BASE_LOW 0x0b8 | |
| 134 | +#define VIRTIO_MMIO_SHM_BASE_HIGH 0x0bc | |
| 135 | + | |
| 125 | 136 | /* Configuration atomicity value */ |
| 126 | 137 | #define VIRTIO_MMIO_CONFIG_GENERATION 0x0fc |
| 127 | 138 | |