diff options
author | mmel <mmel@FreeBSD.org> | 2017-04-16 08:07:38 +0000 |
---|---|---|
committer | mmel <mmel@FreeBSD.org> | 2017-04-16 08:07:38 +0000 |
commit | cbd86975941d11694e2d5479edf9fbab1f0f0228 (patch) | |
tree | 971d9a5b7bfb53b5119355a50654e96a10d40d0c /sys/dev/drm2/drmP.h | |
parent | e056abe3cf377e30f256a3998a34287b71b51280 (diff) | |
download | FreeBSD-src-cbd86975941d11694e2d5479edf9fbab1f0f0228.zip FreeBSD-src-cbd86975941d11694e2d5479edf9fbab1f0f0228.tar.gz |
MFC r310593,r310599:
r310593:
Fix late monitor hotplug event. If system starts without attached monitor,
DRM create framebuffer for VT console. Later, when monitor is attached, the
hotplug event must issue full modeset procedure to setup CRTC. In original
code, this was done in drm_fb_helper_set_par(), but we don't have this
function implemented yet. Use unrolled version of drm_fb_helper_set_par()
to ensure same functionality.
r310599:
Import drm_patform.c, an implementation of non-PCI based attachment for
graphics drivers. It will be used in upcoming driver for Nvidia Tegra
boards.
Diffstat (limited to 'sys/dev/drm2/drmP.h')
-rw-r--r-- | sys/dev/drm2/drmP.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/dev/drm2/drmP.h b/sys/dev/drm2/drmP.h index 51f407c..3483cee 100644 --- a/sys/dev/drm2/drmP.h +++ b/sys/dev/drm2/drmP.h @@ -1576,6 +1576,10 @@ extern int drm_pcie_get_speed_cap_mask(struct drm_device *dev, u32 *speed_mask); #define drm_can_sleep() (DRM_HZ & 1) +/* Platform section */ +int drm_get_platform_dev(device_t kdev, struct drm_device *dev, + struct drm_driver *driver); + /* FreeBSD specific -- should be moved to drm_os_freebsd.h */ #define DRM_GEM_MAPPING_MASK (3ULL << 62) |