diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:35:05 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:32:46 +0000 |
commit | 1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757 (patch) | |
tree | 6ce3a2ba2b2f643935d12ca9765ec6e4847ca4a4 /hw/ne2000.c | |
parent | db07c0f84ba2bedea4b8201ccb62602fd5e64c28 (diff) |
Add bootindex parameter to net/block/fd device
If bootindex is specified on command line a string that describes device
in firmware readable way is added into sorted list. Later this list will
be passed into firmware to control boot order.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/ne2000.c')
-rw-r--r-- | hw/ne2000.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hw/ne2000.c b/hw/ne2000.c index 126e7cfeaf..a030106fa5 100644 --- a/hw/ne2000.c +++ b/hw/ne2000.c @@ -26,6 +26,7 @@ #include "net.h" #include "ne2000.h" #include "loader.h" +#include "sysemu.h" /* debug NE2000 card */ //#define DEBUG_NE2000 @@ -746,6 +747,8 @@ static int pci_ne2000_init(PCIDevice *pci_dev) } } + add_boot_device_path(s->c.bootindex, &pci_dev->qdev, "/ethernet-phy@0"); + return 0; } |