XenevaOS
Loading...
Searching...
No Matches
pci_ids.h
Go to the documentation of this file.
1#ifndef _LINUX_PCI_IDS_H
2#define _LINUX_PCI_IDS_H
3
4/*
5 * DCL <linux/pci_ids.h> -- the two vendor entries this tree has a driver
6 * for, in upstream's spelling.
7 *
8 * mainline's header is 2600 lines of vendor/subvendor constants. Only the
9 * names below are read by any file here: bochs.c matches the first entry of
10 * its id_table on the whole quadruple (1234:1111, subsystem 1af4:1100) to
11 * tell QEMU's stdvga apart from the Simics model, so the subvendor and
12 * subdevice constants are the matches' identity, not decoration.
13 *
14 * Values are upstream's byte for byte (pci_ids.h:2592-2593 in linux-7.2.6);
15 * the file grows by demand like the rest of DCL's headers.
16 */
17
18#define PCI_SUBVENDOR_ID_REDHAT_QUMRANET 0x1af4
19#define PCI_SUBDEVICE_ID_QEMU 0x1100
20
21/*
22 * Added with the virtio-gpu port. The vendored virtio_gpu_driver_init()
23 * (Vendored/drivers/gpu/drm/virtio/virtgpu_drv.c:187) looks a function up by
24 * the redhat *vendor* id, so the vendor spelling is needed beside the
25 * subvendor one above -- its device id (0x1050) is defined locally in that
26 * file. The two PCI_CLASS_* codes feed pci_is_vga() in <linux/pci.h>: they
27 * are class<<8 values as the fabric stores them (pci_shim.c re-packs
28 * config-space byte order into that form), values upstream's
29 * (pci_ids.h:16/:39 in linux-7.2.6).
30 */
31#define PCI_VENDOR_ID_REDHAT_QUMRANET 0x1af4
32
33#define PCI_CLASS_NOT_DEFINED_VGA 0x0001
34#define PCI_CLASS_DISPLAY_VGA 0x0300
35
36#endif /* _LINUX_PCI_IDS_H */