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 <gorcunov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
Cyrill Gorcunov
2015-06-01 16:39:41 +01:00
committed by Will Deacon
parent a2c8c69686
commit d18883188b
2 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -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);
}
+2 -2
View File
@@ -5,8 +5,8 @@
#include <stdint.h>
/* 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;