summaryrefslogtreecommitdiff
path: root/sys/dev/virtio
diff options
context:
space:
mode:
authorPeter Grehan <grehan@FreeBSD.org>2012-09-13 00:42:56 +0000
committerPeter Grehan <grehan@FreeBSD.org>2012-09-13 00:42:56 +0000
commit60ff33428504293cd82fc9b921acd39604d352b2 (patch)
tree7e0dbe539ecb0c535fe0dc05567ba142217f5757 /sys/dev/virtio
parentc44ef550e1b740ce6a37de0d698c07e6ba4640b5 (diff)
Notes
Diffstat (limited to 'sys/dev/virtio')
-rw-r--r--sys/dev/virtio/virtio.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/dev/virtio/virtio.h b/sys/dev/virtio/virtio.h
index 8c22b12e7c9f..e8cdaf8e6eb3 100644
--- a/sys/dev/virtio/virtio.h
+++ b/sys/dev/virtio/virtio.h
@@ -151,6 +151,8 @@ VIRTIO_RDWR_DEVICE_CONFIG(1, uint8_t);
VIRTIO_RDWR_DEVICE_CONFIG(2, uint16_t);
VIRTIO_RDWR_DEVICE_CONFIG(4, uint32_t);
+#undef VIRTIO_RDWR_DEVICE_CONFIG
+
#define VIRTIO_READ_IVAR(name, ivar) \
static inline int \
__CONCAT(virtio_get_,name)(device_t dev) \
@@ -166,6 +168,8 @@ VIRTIO_READ_IVAR(device, VIRTIO_IVAR_DEVICE);
VIRTIO_READ_IVAR(subvendor, VIRTIO_IVAR_SUBVENDOR);
VIRTIO_READ_IVAR(subdevice, VIRTIO_IVAR_SUBDEVICE);
+#undef VIRTIO_READ_IVAR
+
#define VIRTIO_WRITE_IVAR(name, ivar) \
static inline void \
__CONCAT(virtio_set_,name)(device_t dev, void *val) \
@@ -175,4 +179,6 @@ __CONCAT(virtio_set_,name)(device_t dev, void *val) \
VIRTIO_WRITE_IVAR(feature_desc, VIRTIO_IVAR_FEATURE_DESC);
+#undef VIRTIO_WRITE_IVAR
+
#endif /* _VIRTIO_H_ */