From d18883188b41aa7fe2318af0025c1a1f1174fe6f Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 13 Jan 2011 18:56:17 +0200 Subject: [PATCH] virtio, block: Rename IOPORT_VIRTIO to IOPORT_VIRTIO_BLK Since that is its only purpose, not the whole virtio stuff. Signed-off-by: Cyrill Gorcunov Signed-off-by: Pekka Enberg --- blk-virtio.c | 8 ++++---- include/kvm/ioport.h | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/blk-virtio.c b/blk-virtio.c index 0179339..f3d0560 100644 --- a/blk-virtio.c +++ b/blk-virtio.c @@ -81,7 +81,7 @@ static bool blk_virtio_in(struct kvm *self, uint16_t port, void *data, int size, { unsigned long offset; - offset = port - IOPORT_VIRTIO; + offset = port - IOPORT_VIRTIO_BLK; switch (offset) { case VIRTIO_PCI_HOST_FEATURES: @@ -218,7 +218,7 @@ static bool blk_virtio_out(struct kvm *self, uint16_t port, void *data, int size { unsigned long offset; - offset = port - IOPORT_VIRTIO; + offset = port - IOPORT_VIRTIO_BLK; switch (offset) { case VIRTIO_PCI_GUEST_FEATURES: @@ -290,7 +290,7 @@ static struct pci_device_header blk_virtio_pci_device = { .class = 0x010000, .subsys_vendor_id = PCI_SUBSYSTEM_VENDOR_ID_REDHAT_QUMRANET, .subsys_id = PCI_SUBSYSTEM_ID_VIRTIO_BLK, - .bar[0] = IOPORT_VIRTIO | PCI_BASE_ADDRESS_SPACE_IO, + .bar[0] = IOPORT_VIRTIO_BLK | PCI_BASE_ADDRESS_SPACE_IO, .irq_pin = 1, .irq_line = VIRTIO_BLK_IRQ, }; @@ -304,5 +304,5 @@ void blk_virtio__init(struct kvm *self) pci__register(&blk_virtio_pci_device, 1); - ioport__register(IOPORT_VIRTIO, &blk_virtio_io_ops, 256); + ioport__register(IOPORT_VIRTIO_BLK, &blk_virtio_io_ops, 256); } diff --git a/include/kvm/ioport.h b/include/kvm/ioport.h index 10589b0..7b6af53 100644 --- a/include/kvm/ioport.h +++ b/include/kvm/ioport.h @@ -5,8 +5,8 @@ #include /* some ports we reserve for own use */ -#define IOPORT_DBG 0xe0 -#define IOPORT_VIRTIO 0xc200 +#define IOPORT_DBG 0xe0 +#define IOPORT_VIRTIO_BLK 0xc200 /* Virtio block device */ struct kvm;