ne2000: add bootindex to qom property
commit6cb0851d628ffb84088e1dbdb70098320a5c0894
authorGonglei <arei.gonglei@huawei.com>
Tue, 7 Oct 2014 08:00:15 +0000 (7 16:00 +0800)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 15 Oct 2014 07:52:54 +0000 (15 09:52 +0200)
tree10eacc69be283104b7324c539aad83f6f5554dec
parent7317bb1782088081f78127158f315d89789fb02c
ne2000: add bootindex to qom property

Add a qom property with the same name 'bootindex',
when we remove it form qdev property, things will
continue to work just fine, and we can use qom features
which are not supported by qdev property.

At present, isa_ne2000 device does not support to boot
os, so we register two seprate qom getter/setter functions.

Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/net/ne2000-isa.c
hw/net/ne2000.c