bochs.c (9388ccf69925223223c87355a417ba39b13a5e8e) | bochs.c (66843697a5ab1f80777a1570d1aca19cf2a9b177) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2 3#include <linux/module.h> 4#include <linux/pci.h> 5 6#include <drm/drm_aperture.h> 7#include <drm/drm_atomic.h> 8#include <drm/drm_atomic_helper.h> | 1// SPDX-License-Identifier: GPL-2.0-or-later 2 3#include <linux/module.h> 4#include <linux/pci.h> 5 6#include <drm/drm_aperture.h> 7#include <drm/drm_atomic.h> 8#include <drm/drm_atomic_helper.h> |
9#include <drm/drm_client_setup.h> |
|
9#include <drm/drm_damage_helper.h> 10#include <drm/drm_drv.h> 11#include <drm/drm_edid.h> 12#include <drm/drm_fbdev_shmem.h> 13#include <drm/drm_fourcc.h> 14#include <drm/drm_framebuffer.h> 15#include <drm/drm_gem_atomic_helper.h> 16#include <drm/drm_gem_framebuffer_helper.h> --- 652 unchanged lines hidden (view full) --- 669 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 670 .fops = &bochs_fops, 671 .name = "bochs-drm", 672 .desc = "bochs dispi vga interface (qemu stdvga)", 673 .date = "20130925", 674 .major = 1, 675 .minor = 0, 676 DRM_GEM_SHMEM_DRIVER_OPS, | 10#include <drm/drm_damage_helper.h> 11#include <drm/drm_drv.h> 12#include <drm/drm_edid.h> 13#include <drm/drm_fbdev_shmem.h> 14#include <drm/drm_fourcc.h> 15#include <drm/drm_framebuffer.h> 16#include <drm/drm_gem_atomic_helper.h> 17#include <drm/drm_gem_framebuffer_helper.h> --- 652 unchanged lines hidden (view full) --- 670 .driver_features = DRIVER_GEM | DRIVER_MODESET | DRIVER_ATOMIC, 671 .fops = &bochs_fops, 672 .name = "bochs-drm", 673 .desc = "bochs dispi vga interface (qemu stdvga)", 674 .date = "20130925", 675 .major = 1, 676 .minor = 0, 677 DRM_GEM_SHMEM_DRIVER_OPS, |
678 DRM_FBDEV_SHMEM_DRIVER_OPS, |
|
677}; 678 679/* ---------------------------------------------------------------------- */ 680/* pm interface */ 681 682#ifdef CONFIG_PM_SLEEP 683static int bochs_pm_suspend(struct device *dev) 684{ --- 42 unchanged lines hidden (view full) --- 727 ret = bochs_load(bochs); 728 if (ret) 729 goto err_free_dev; 730 731 ret = drm_dev_register(dev, 0); 732 if (ret) 733 goto err_free_dev; 734 | 679}; 680 681/* ---------------------------------------------------------------------- */ 682/* pm interface */ 683 684#ifdef CONFIG_PM_SLEEP 685static int bochs_pm_suspend(struct device *dev) 686{ --- 42 unchanged lines hidden (view full) --- 729 ret = bochs_load(bochs); 730 if (ret) 731 goto err_free_dev; 732 733 ret = drm_dev_register(dev, 0); 734 if (ret) 735 goto err_free_dev; 736 |
735 drm_fbdev_shmem_setup(dev, 32); | 737 drm_client_setup(dev, NULL); 738 |
736 return ret; 737 738err_free_dev: 739 drm_dev_put(dev); 740 return ret; 741} 742 743static void bochs_pci_remove(struct pci_dev *pdev) --- 56 unchanged lines hidden --- | 739 return ret; 740 741err_free_dev: 742 drm_dev_put(dev); 743 return ret; 744} 745 746static void bochs_pci_remove(struct pci_dev *pdev) --- 56 unchanged lines hidden --- |