162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * Simple pci display device.
462306a36Sopenharmony_ci *
562306a36Sopenharmony_ci * Framebuffer memory is pci bar 0.
662306a36Sopenharmony_ci * Configuration (read-only) is in pci config space.
762306a36Sopenharmony_ci * Format field uses drm fourcc codes.
862306a36Sopenharmony_ci * ATM only DRM_FORMAT_XRGB8888 is supported.
962306a36Sopenharmony_ci */
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci/* pci ids */
1262306a36Sopenharmony_ci#define MDPY_PCI_VENDOR_ID	PCI_VENDOR_ID_REDHAT
1362306a36Sopenharmony_ci#define MDPY_PCI_DEVICE_ID	0x000f
1462306a36Sopenharmony_ci#define MDPY_PCI_SUBVENDOR_ID	PCI_SUBVENDOR_ID_REDHAT_QUMRANET
1562306a36Sopenharmony_ci#define MDPY_PCI_SUBDEVICE_ID	PCI_SUBDEVICE_ID_QEMU
1662306a36Sopenharmony_ci
1762306a36Sopenharmony_ci/* pci cfg space offsets for fb config (dword) */
1862306a36Sopenharmony_ci#define MDPY_VENDORCAP_OFFSET   0x40
1962306a36Sopenharmony_ci#define MDPY_VENDORCAP_SIZE     0x10
2062306a36Sopenharmony_ci#define MDPY_FORMAT_OFFSET	(MDPY_VENDORCAP_OFFSET + 0x04)
2162306a36Sopenharmony_ci#define MDPY_WIDTH_OFFSET	(MDPY_VENDORCAP_OFFSET + 0x08)
2262306a36Sopenharmony_ci#define MDPY_HEIGHT_OFFSET	(MDPY_VENDORCAP_OFFSET + 0x0c)
23