j
: Next unread message k
: Previous unread message j a
: Jump to all threads
j l
: Jump to MailingList overview
Author: blueswirl Date: Sat Jun 9 19:05:32 2012 New Revision: 1061 URL: http://tracker.coreboot.org/trac/openbios/changeset/1061
Log: 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
Modified: trunk/openbios-devel/drivers/pci_database.c trunk/openbios-devel/include/drivers/pci.h
Modified: trunk/openbios-devel/drivers/pci_database.c ============================================================================== --- trunk/openbios-devel/drivers/pci_database.c Sun May 20 18:07:35 2012 (r1060) +++ trunk/openbios-devel/drivers/pci_database.c Sat Jun 9 19:05:32 2012 (r1061) @@ -129,6 +129,14 @@ 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, -1, -1, -1,
Modified: trunk/openbios-devel/include/drivers/pci.h ============================================================================== --- trunk/openbios-devel/include/drivers/pci.h Sun May 20 18:07:35 2012 (r1060) +++ trunk/openbios-devel/include/drivers/pci.h Sat Jun 9 19:05:32 2012 (r1061) @@ -206,6 +206,7 @@ #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