Deleted Added
full compact
drm_fb_helper.c (259016) drm_fb_helper.c (259179)
1/*
2 * Copyright (c) 2006-2009 Red Hat Inc.
3 * Copyright (c) 2006-2008 Intel Corporation
4 * Copyright (c) 2007 Dave Airlie <airlied@linux.ie>
5 *
6 * DRM framebuffer helper functions
7 *
8 * Permission to use, copy, modify, distribute, and sell this software and its

--- 15 unchanged lines hidden (view full) ---

24 * OF THIS SOFTWARE.
25 *
26 * Authors:
27 * Dave Airlie <airlied@linux.ie>
28 * Jesse Barnes <jesse.barnes@intel.com>
29 */
30
31#include <sys/cdefs.h>
1/*
2 * Copyright (c) 2006-2009 Red Hat Inc.
3 * Copyright (c) 2006-2008 Intel Corporation
4 * Copyright (c) 2007 Dave Airlie <airlied@linux.ie>
5 *
6 * DRM framebuffer helper functions
7 *
8 * Permission to use, copy, modify, distribute, and sell this software and its

--- 15 unchanged lines hidden (view full) ---

24 * OF THIS SOFTWARE.
25 *
26 * Authors:
27 * Dave Airlie <airlied@linux.ie>
28 * Jesse Barnes <jesse.barnes@intel.com>
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: head/sys/dev/drm2/drm_fb_helper.c 259016 2013-12-05 22:38:53Z ray $");
32__FBSDID("$FreeBSD: head/sys/dev/drm2/drm_fb_helper.c 259179 2013-12-10 15:53:00Z ray $");
33
34#include <dev/drm2/drmP.h>
35#include <dev/drm2/drm_crtc.h>
36#include <dev/drm2/drm_fb_helper.h>
37#include <dev/drm2/drm_crtc_helper.h>
38
39#if defined(__FreeBSD__)
40struct vt_kms_softc {

--- 998 unchanged lines hidden (view full) ---

1039#if defined(__FreeBSD__)
1040 if (new_fb) {
1041 device_t fbd;
1042 int ret;
1043
1044 kdev = fb_helper->dev->device;
1045 fbd = device_add_child(kdev, "fbd", device_get_unit(kdev));
1046 ret = device_probe_and_attach(fbd);
33
34#include <dev/drm2/drmP.h>
35#include <dev/drm2/drm_crtc.h>
36#include <dev/drm2/drm_fb_helper.h>
37#include <dev/drm2/drm_crtc_helper.h>
38
39#if defined(__FreeBSD__)
40struct vt_kms_softc {

--- 998 unchanged lines hidden (view full) ---

1039#if defined(__FreeBSD__)
1040 if (new_fb) {
1041 device_t fbd;
1042 int ret;
1043
1044 kdev = fb_helper->dev->device;
1045 fbd = device_add_child(kdev, "fbd", device_get_unit(kdev));
1046 ret = device_probe_and_attach(fbd);
1047#ifdef DEV_VT
1047 if (ret != 0)
1048 DRM_ERROR("Failed to attach fbd device: %d\n", ret);
1048 if (ret != 0)
1049 DRM_ERROR("Failed to attach fbd device: %d\n", ret);
1050#endif
1049 }
1050#else
1051 if (new_fb) {
1052 info->var.pixclock = 0;
1053 if (register_framebuffer(info) < 0) {
1054 return -EINVAL;
1055 }
1056

--- 579 unchanged lines hidden ---
1051 }
1052#else
1053 if (new_fb) {
1054 info->var.pixclock = 0;
1055 if (register_framebuffer(info) < 0) {
1056 return -EINVAL;
1057 }
1058

--- 579 unchanged lines hidden ---