svn commit: r259003 - head/sys/dev/drm2/radeon
Robert Millan
rmh at FreeBSD.org
Thu Dec 5 20:23:33 UTC 2013
Author: rmh
Date: Thu Dec 5 20:23:32 2013
New Revision: 259003
URL: http://svnweb.freebsd.org/changeset/base/259003
Log:
Initialize modesetting sysctls in radeonkms.
This is intended for MFC if re@ permits.
Reviewed by: kib, dumbbell
Tested by: Steven Chamberlain <steven at pyro.eu.org>
MFC after: 3 days
Modified:
head/sys/dev/drm2/radeon/radeon_drv.c
Modified: head/sys/dev/drm2/radeon/radeon_drv.c
==============================================================================
--- head/sys/dev/drm2/radeon/radeon_drv.c Thu Dec 5 20:12:02 2013 (r259002)
+++ head/sys/dev/drm2/radeon/radeon_drv.c Thu Dec 5 20:23:32 2013 (r259003)
@@ -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,
More information about the svn-src-head
mailing list