| /* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */ |
| * Copyright (c) 2019 Amlogic, Inc. All rights reserved. |
| #ifndef __AM_MESON_FBDEV_H |
| #define __AM_MESON_FBDEV_H |
| #include <drm/drm_fb_helper.h> |
| int am_meson_drm_fbdev_init(struct drm_device *dev); |
| void am_meson_drm_fbdev_fini(struct drm_device *dev); |
| /*keep sync with amlogic osd/fbdev.*/ |
| #define FBIOGET_OSD_DMABUF 0x46fc |
| #define FBIO_WAITFORVSYNC _IOW('F', 0x20, __u32) |
| #define FBIO_WAITFORVSYNC_64 _IOW('F', 0x21, __u32) |
| struct fb_dmabuf_export { |
| /*idx only used in legacy android implement, not used now.*/ |
| struct meson_drm_fbdev_config { |
| struct drm_fb_helper base; |
| //struct am_meson_fb * fb; |
| struct drm_gem_object *fb_gem; |
| struct drm_mode_set modeset; |
| extern struct am_meson_logo logo; |
| #endif /* __AM_MESON_FBDEV_H */ |