diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-25 16:37:41 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-07-01 16:35:49 +0200 |
commit | 6ee9776affe222daa7c0ba4af337963488e5f58c (patch) | |
tree | 1c8366ae52ad7296558a8c65cebbf693485f2955 /src/hw/virtio-pci.h | |
parent | 46d1792bb072a073c78d5d562becdddfbbe97050 (diff) | |
download | seabios-6ee9776affe222daa7c0ba4af337963488e5f58c.tar.gz |
virtio: add version 1.0 support to vp_{get,set}_status
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'src/hw/virtio-pci.h')
-rw-r--r-- | src/hw/virtio-pci.h | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/hw/virtio-pci.h b/src/hw/virtio-pci.h index 962d6c09..e3f6f997 100644 --- a/src/hw/virtio-pci.h +++ b/src/hw/virtio-pci.h @@ -228,17 +228,8 @@ static inline void vp_get(struct vp_device *vp, unsigned offset, ptr[i] = inb(ioaddr + VIRTIO_PCI_CONFIG + offset + i); } -static inline u8 vp_get_status(struct vp_device *vp) -{ - return inb(GET_LOWFLAT(vp->ioaddr) + VIRTIO_PCI_STATUS); -} - -static inline void vp_set_status(struct vp_device *vp, u8 status) -{ - if (status == 0) /* reset */ - return; - outb(status, GET_LOWFLAT(vp->ioaddr) + VIRTIO_PCI_STATUS); -} +u8 vp_get_status(struct vp_device *vp); +void vp_set_status(struct vp_device *vp, u8 status); static inline u8 vp_get_isr(struct vp_device *vp) { |