1 /* SPDX-License-Identifier: GPL-2.0 */ 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 2 /* 3 * Simple pci display device. 3 * Simple pci display device. 4 * 4 * 5 * Framebuffer memory is pci bar 0. 5 * Framebuffer memory is pci bar 0. 6 * Configuration (read-only) is in pci config 6 * Configuration (read-only) is in pci config space. 7 * Format field uses drm fourcc codes. 7 * Format field uses drm fourcc codes. 8 * ATM only DRM_FORMAT_XRGB8888 is supported. 8 * ATM only DRM_FORMAT_XRGB8888 is supported. 9 */ 9 */ 10 10 11 /* pci ids */ 11 /* pci ids */ 12 #define MDPY_PCI_VENDOR_ID PCI_VENDOR_ID_ !! 12 #define MDPY_PCI_VENDOR_ID 0x1b36 /* redhat */ 13 #define MDPY_PCI_DEVICE_ID 0x000f 13 #define MDPY_PCI_DEVICE_ID 0x000f 14 #define MDPY_PCI_SUBVENDOR_ID PCI_SUBVENDOR_ 14 #define MDPY_PCI_SUBVENDOR_ID PCI_SUBVENDOR_ID_REDHAT_QUMRANET 15 #define MDPY_PCI_SUBDEVICE_ID PCI_SUBDEVICE_ 15 #define MDPY_PCI_SUBDEVICE_ID PCI_SUBDEVICE_ID_QEMU 16 16 17 /* pci cfg space offsets for fb config (dword) 17 /* pci cfg space offsets for fb config (dword) */ 18 #define MDPY_VENDORCAP_OFFSET 0x40 18 #define MDPY_VENDORCAP_OFFSET 0x40 19 #define MDPY_VENDORCAP_SIZE 0x10 19 #define MDPY_VENDORCAP_SIZE 0x10 20 #define MDPY_FORMAT_OFFSET (MDPY_VENDORCA 20 #define MDPY_FORMAT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x04) 21 #define MDPY_WIDTH_OFFSET (MDPY_VENDORCA 21 #define MDPY_WIDTH_OFFSET (MDPY_VENDORCAP_OFFSET + 0x08) 22 #define MDPY_HEIGHT_OFFSET (MDPY_VENDORCA 22 #define MDPY_HEIGHT_OFFSET (MDPY_VENDORCAP_OFFSET + 0x0c) 23 23
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.