mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-11-25 19:14:10 +00:00
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:
committed by
Will Deacon
parent
a2c8c69686
commit
d18883188b
+4
-4
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user