mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-22 18:44:44 +08:00
97c9bfe3f6
Print the name of the DRM driver when taking over fbdev devices. Makes the output to dmesg more consistent. Note that the driver name is only used for printing a string to the kernel log. No UAPI is affected by this change. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Nirmoy Das <nirmoy.das@amd.com> Acked-by: Chen-Yu Tsai <wens@csie.org> # sun4i Acked-by: Neil Armstrong <narmstrong@baylibre.com> # meson Link: https://patchwork.freedesktop.org/patch/msgid/20210629135833.22679-1-tzimmermann@suse.de
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/* SPDX-License-Identifier: MIT */
|
|
|
|
#ifndef _DRM_APERTURE_H_
|
|
#define _DRM_APERTURE_H_
|
|
|
|
#include <linux/types.h>
|
|
|
|
struct drm_device;
|
|
struct drm_driver;
|
|
struct pci_dev;
|
|
|
|
int devm_aperture_acquire_from_firmware(struct drm_device *dev, resource_size_t base,
|
|
resource_size_t size);
|
|
|
|
int drm_aperture_remove_conflicting_framebuffers(resource_size_t base, resource_size_t size,
|
|
bool primary, const struct drm_driver *req_driver);
|
|
|
|
int drm_aperture_remove_conflicting_pci_framebuffers(struct pci_dev *pdev,
|
|
const struct drm_driver *req_driver);
|
|
|
|
/**
|
|
* drm_aperture_remove_framebuffers - remove all existing framebuffers
|
|
* @primary: also kick vga16fb if present
|
|
* @req_driver: requesting DRM driver
|
|
*
|
|
* This function removes all graphics device drivers. Use this function on systems
|
|
* that can have their framebuffer located anywhere in memory.
|
|
*
|
|
* Returns:
|
|
* 0 on success, or a negative errno code otherwise
|
|
*/
|
|
static inline int
|
|
drm_aperture_remove_framebuffers(bool primary, const struct drm_driver *req_driver)
|
|
{
|
|
return drm_aperture_remove_conflicting_framebuffers(0, (resource_size_t)-1, primary,
|
|
req_driver);
|
|
}
|
|
|
|
#endif
|