aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtio-pci.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-05-10 21:51:38 -0400
committerKevin O'Connor <kevin@koconnor.net>2010-05-10 21:51:38 -0400
commit7d09d0e3ba11310e973d4302c7fcc3fc2184e04c (patch)
tree876b2984c9a52e5c8dae7de77627769cebcb6887 /src/virtio-pci.h
parent89acfa3fb404bd81eac23bd5a3fb92d4eec50648 (diff)
downloadseabios-7d09d0e3ba11310e973d4302c7fcc3fc2184e04c.tar.gz
Fix virtio compile errors on various gcc versions.
Gcc 3.4 doesn't like __FUNCTION__ for some reason - use __func__ instead. Gcc 4.5 compiles each .c file independently, so make sure includes are correct for each .c file.
Diffstat (limited to 'src/virtio-pci.h')
-rw-r--r--src/virtio-pci.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/virtio-pci.h b/src/virtio-pci.h
index 6932036a..9da761dc 100644
--- a/src/virtio-pci.h
+++ b/src/virtio-pci.h
@@ -1,6 +1,8 @@
#ifndef _VIRTIO_PCI_H
#define _VIRTIO_PCI_H
+#include "ioport.h" // inl
+
/* A 32-bit r/o bitmask of the features supported by the host */
#define VIRTIO_PCI_HOST_FEATURES 0
@@ -92,6 +94,7 @@ static inline void vp_del_vq(unsigned int ioaddr, int queue_index)
outl(0, ioaddr + VIRTIO_PCI_QUEUE_PFN);
}
+struct vring_virtqueue;
int vp_find_vq(unsigned int ioaddr, int queue_index,
struct vring_virtqueue *vq);
#endif /* _VIRTIO_PCI_H_ */