OvmfPkg/QemuVideoDxe: Add SubClass field to QEMU_VIDEO_CARD

Then check for PCI_CLASS_DISPLAY_VGA using the new field.
This allows to enable/disable non-vga display classes per
card entry.

Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
Gerd Hoffmann
2018-05-17 11:21:32 +02:00
committed by Laszlo Ersek
parent b22d093101
commit 70dbd16361
2 changed files with 14 additions and 4 deletions

View File

@@ -96,6 +96,7 @@ typedef enum {
} QEMU_VIDEO_VARIANT;
typedef struct {
UINT8 SubClass;
UINT16 VendorId;
UINT16 DeviceId;
QEMU_VIDEO_VARIANT Variant;