mirror of
https://github.com/torvalds/linux.git
synced 2024-11-27 14:41:39 +00:00
2575b2f3ee
Instead of duplicating the PCI_VENDOR_ID_REDHAT definition everywhere, move it to include/linux/pci_ids.h. [bhelgaas: also update MDPY_PCI_VENDOR_ID] Link: https://lore.kernel.org/r/1594195170-11119-1-git-send-email-chenhc@lemote.com Signed-off-by: Huacai Chen <chenhc@lemote.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com>
23 lines
763 B
C
23 lines
763 B
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
/*
|
|
* Simple pci display device.
|
|
*
|
|
* Framebuffer memory is pci bar 0.
|
|
* Configuration (read-only) is in pci config space.
|
|
* Format field uses drm fourcc codes.
|
|
* ATM only DRM_FORMAT_XRGB8888 is supported.
|
|
*/
|
|
|
|
/* pci ids */
|
|
#define MDPY_PCI_VENDOR_ID PCI_VENDOR_ID_REDHAT
|
|
#define MDPY_PCI_DEVICE_ID 0x000f
|
|
#define MDPY_PCI_SUBVENDOR_ID PCI_SUBVENDOR_ID_REDHAT_QUMRANET
|
|
#define MDPY_PCI_SUBDEVICE_ID PCI_SUBDEVICE_ID_QEMU
|
|
|
|
/* pci cfg space offsets for fb config (dword) */
|
|
#define MDPY_VENDORCAP_OFFSET 0x40
|
|
#define MDPY_VENDORCAP_SIZE 0x10
|
|
#define MDPY_FORMAT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x04)
|
|
#define MDPY_WIDTH_OFFSET (MDPY_VENDORCAP_OFFSET + 0x08)
|
|
#define MDPY_HEIGHT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x0c)
|