From owner-svn-src-all@FreeBSD.ORG Sat Dec 14 11:32:58 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D04F5EB2; Sat, 14 Dec 2013 11:32:58 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id BBDC51B66; Sat, 14 Dec 2013 11:32:58 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id rBEBWwwc046625; Sat, 14 Dec 2013 11:32:58 GMT (envelope-from rmh@svn.freebsd.org) Received: (from rmh@localhost) by svn.freebsd.org (8.14.7/8.14.7/Submit) id rBEBWwII046624; Sat, 14 Dec 2013 11:32:58 GMT (envelope-from rmh@svn.freebsd.org) Message-Id: <201312141132.rBEBWwII046624@svn.freebsd.org> From: Robert Millan Date: Sat, 14 Dec 2013 11:32:58 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-releng@freebsd.org Subject: svn commit: r259388 - releng/10.0/sys/dev/drm2/radeon X-SVN-Group: releng MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Dec 2013 11:32:58 -0000 Author: rmh Date: Sat Dec 14 11:32:58 2013 New Revision: 259388 URL: http://svnweb.freebsd.org/changeset/base/259388 Log: MFC r259003: Initialize modesetting sysctls in radeonkms. Approved by: re (gjb) Modified: releng/10.0/sys/dev/drm2/radeon/radeon_drv.c Directory Properties: releng/10.0/ (props changed) Modified: releng/10.0/sys/dev/drm2/radeon/radeon_drv.c ============================================================================== --- releng/10.0/sys/dev/drm2/radeon/radeon_drv.c Sat Dec 14 04:27:28 2013 (r259387) +++ releng/10.0/sys/dev/drm2/radeon/radeon_drv.c Sat Dec 14 11:32:58 2013 (r259388) @@ -338,6 +338,12 @@ static const struct file_operations rade }; #endif /* DUMBBELL_WIP */ +static int radeon_sysctl_init(struct drm_device *dev, struct sysctl_ctx_list *ctx, + struct sysctl_oid *top) +{ + return drm_add_busid_modesetting(dev, ctx, top); +} + static struct drm_driver_info kms_driver = { .driver_features = DRIVER_USE_AGP | DRIVER_USE_MTRR | DRIVER_PCI_DMA | DRIVER_SG | @@ -367,6 +373,7 @@ static struct drm_driver_info kms_driver .irq_postinstall = radeon_driver_irq_postinstall_kms, .irq_uninstall = radeon_driver_irq_uninstall_kms, .irq_handler = radeon_driver_irq_handler_kms, + .sysctl_init = radeon_sysctl_init, .ioctls = radeon_ioctls_kms, .gem_init_object = radeon_gem_object_init, .gem_free_object = radeon_gem_object_free,