diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:34:54 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:27:44 +0000 |
commit | 779206de677533616ec3558bae89ea06fb91fc84 (patch) | |
tree | f85efe1ffc71bf96366aa486aace956a7cc2bb6a /hw/ide | |
parent | 1b3cba6e91ab55a158e49bc5398fd76e67c695a8 (diff) | |
download | qemu-779206de677533616ec3558bae89ea06fb91fc84.zip qemu-779206de677533616ec3558bae89ea06fb91fc84.tar.gz qemu-779206de677533616ec3558bae89ea06fb91fc84.tar.bz2 |
Introduce fw_name field to DeviceInfo structure.
Add "fw_name" to DeviceInfo to use in device path building. In
contrast to "name" "fw_name" should refer to functionality device
provides instead of particular device model like "name" does.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ide')
-rw-r--r-- | hw/ide/isa.c | 1 | ||||
-rw-r--r-- | hw/ide/qdev.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/ide/isa.c b/hw/ide/isa.c index 6b57e0d..9856435 100644 --- a/hw/ide/isa.c +++ b/hw/ide/isa.c @@ -98,6 +98,7 @@ ISADevice *isa_ide_init(int iobase, int iobase2, int isairq, static ISADeviceInfo isa_ide_info = { .qdev.name = "isa-ide", + .qdev.fw_name = "ide", .qdev.size = sizeof(ISAIDEState), .init = isa_ide_initfn, .qdev.reset = isa_ide_reset, diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c index 0808760..6d27b60 100644 --- a/hw/ide/qdev.c +++ b/hw/ide/qdev.c @@ -134,6 +134,7 @@ static int ide_drive_initfn(IDEDevice *dev) static IDEDeviceInfo ide_drive_info = { .qdev.name = "ide-drive", + .qdev.fw_name = "drive", .qdev.size = sizeof(IDEDrive), .init = ide_drive_initfn, .qdev.props = (Property[]) { |