QEMU's emulated PCI devices that predate its Red Hat vendor IDs (stdvga, bochs-display, edu) use vendor ID 0x1234. It is not registered with PCI-SIG, but it is a de-facto QEMU ID matched by more than one driver: `drivers/gpu/drm/tiny/bochs.c` open-codes it, and the Rust EDU sample needs it too.
Add `PCI_VENDOR_ID_QEMU` so these drivers can share the definition. Suggested-by: Alice Ryhl <[email protected]> Suggested-by: John Hubbard <[email protected]> Signed-off-by: Maurice Hieronymus <[email protected]> --- include/linux/pci_ids.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/pci_ids.h b/include/linux/pci_ids.h index 030c86dd6d67..cf384fd96f6a 100644 --- a/include/linux/pci_ids.h +++ b/include/linux/pci_ids.h @@ -1754,6 +1754,8 @@ #define PCI_DEVICE_ID_3DFX_VOODOO3 0x0005 #define PCI_DEVICE_ID_3DFX_VOODOO5 0x0009 +#define PCI_VENDOR_ID_QEMU 0x1234 + #define PCI_VENDOR_ID_AVM 0x1244 #define PCI_DEVICE_ID_AVM_B1 0x0700 #define PCI_DEVICE_ID_AVM_C4 0x0800 -- 2.54.0
