diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-25 16:14:21 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-07-01 16:35:49 +0200 |
commit | d8966467ca4ecb25f46d7095e762c3486a6aab81 (patch) | |
tree | 4b1424f5f244c7d47a1a537b8c2fc7e13a3424a8 /src/hw/virtio-pci.h | |
parent | d00335ef3cf046ccb4abcfd749a3c3efdbbf8cd3 (diff) | |
download | seabios-d8966467ca4ecb25f46d7095e762c3486a6aab81.tar.gz |
virtio: find version 1.0 virtio capabilities
virtio 1.0 specifies the location of the various virtio regions
using pci capabilities. Look them up and store the results.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/hw/virtio-pci.h')
-rw-r--r-- | src/hw/virtio-pci.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 42e2b7f7..467c02fb 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -115,8 +115,16 @@ typedef struct virtio_pci_isr { /* --- driver structs ----------------------------------------------- */ +struct vp_cap { + u32 addr; + u8 cap; + u8 bar; + u8 is_io; +}; + struct vp_device { unsigned int ioaddr; + struct vp_cap common, notify, isr, device; }; static inline u32 vp_get_features(struct vp_device *vp) |