Identify virtio-net devices

Identify virtio network device in PCI probe.

Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@1061 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Artyom Tarasenko 2012-06-09 17:05:32 +00:00 committed by Blue Swirl
parent c3481793f8
commit d1a0f7ccf8
2 changed files with 9 additions and 0 deletions

View File

@ -128,6 +128,14 @@ static const pci_dev_t eth_devices[] = {
0, 0, 0,
NULL, "ethernet",
},
{
/* Virtio-network controller */
PCI_VENDOR_ID_REDHAT_QUMRANET, PCI_DEVICE_ID_VIRTIO_NET,
NULL, "virtio-net", NULL,
"pci1af4,1000\0pci1af4,1000\0pciclass,020000\0",
0, 0, 0,
virtio_config_cb, NULL,
},
{
0xFFFF, 0xFFFF,
NULL, NULL, NULL, NULL,

View File

@ -206,6 +206,7 @@ extern const pci_arch_t *arch;
#define PCI_DEVICE_ID_QEMU_VGA 0x1111
#define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4
#define PCI_DEVICE_ID_VIRTIO_NET 0x1000
#define PCI_DEVICE_ID_VIRTIO_BLOCK 0x1001
#define PCI_VENDOR_ID_INTEL 0x8086