summary refs log tree commit diff stats
path: root/hw/lance.c
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2010-12-08 13:34:54 +0200
committerBlue Swirl <blauwirbel@gmail.com>2010-12-11 21:27:44 +0000
commit779206de677533616ec3558bae89ea06fb91fc84 (patch)
treef85efe1ffc71bf96366aa486aace956a7cc2bb6a /hw/lance.c
parent1b3cba6e91ab55a158e49bc5398fd76e67c695a8 (diff)
downloadfocaccia-qemu-779206de677533616ec3558bae89ea06fb91fc84.tar.gz
focaccia-qemu-779206de677533616ec3558bae89ea06fb91fc84.zip
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/lance.c')
-rw-r--r--hw/lance.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/lance.c b/hw/lance.c
index 8c5185817b..ddb1cbb7a4 100644
--- a/hw/lance.c
+++ b/hw/lance.c
@@ -142,6 +142,7 @@ static void lance_reset(DeviceState *dev)
 static SysBusDeviceInfo lance_info = {
     .init       = lance_init,
     .qdev.name  = "lance",
+    .qdev.fw_name  = "ethernet",
     .qdev.size  = sizeof(SysBusPCNetState),
     .qdev.reset = lance_reset,
     .qdev.vmsd  = &vmstate_lance,