projects/linux·blob master · refs

41 lines · 1.1 KiB

1/* SPDX-License-Identifier: MIT */
2/*
3 * Copyright © 2019 Intel Corporation
4 */
5
6#ifndef __INTEL_FBDEV_H__
7#define __INTEL_FBDEV_H__
8
9#include <linux/types.h>
10
11struct drm_fb_helper;
12struct drm_fb_helper_surface_size;
13struct intel_display;
14struct intel_fbdev;
15struct intel_framebuffer;
16struct iosys_map;
17
18#ifdef CONFIG_DRM_FBDEV_EMULATION
19int intel_fbdev_driver_fbdev_probe(struct drm_fb_helper *helper,
20 struct drm_fb_helper_surface_size *sizes);
21#define INTEL_FBDEV_DRIVER_OPS \
22 .fbdev_probe = intel_fbdev_driver_fbdev_probe
23void intel_fbdev_setup(struct intel_display *display);
24struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev);
25void intel_fbdev_get_map(struct intel_display *display, struct iosys_map *map);
26#else
27#define INTEL_FBDEV_DRIVER_OPS \
28 .fbdev_probe = NULL
29static inline void intel_fbdev_setup(struct intel_display *display)
30{
31}
32static inline struct intel_framebuffer *intel_fbdev_framebuffer(struct intel_fbdev *fbdev)
33{
34 return NULL;
35}
36static inline void intel_fbdev_get_map(struct intel_display *display, struct iosys_map *map)
37{
38}
39#endif
40
41#endif /* __INTEL_FBDEV_H__ */