Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Omit minor allocatio...



details:   https://anonhg.NetBSD.org/src/rev/d049956cd3ed
branches:  riastradh-drm2
changeset: 788199:d049956cd3ed
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Wed Jul 24 02:40:28 2013 +0000

description:
Omit minor allocation, procfs, debugfs, and more from drm_stub.c.

Might be better split into two files, one for handling DRM data
structures (masters, devices, &c.) and one for gluing them to Linux
KPIs, but this is expedient for now.

diffstat:

 sys/external/bsd/drm2/dist/drm/drm_stub.c |  7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diffs (47 lines):

diff -r 2ad31e0abb48 -r d049956cd3ed sys/external/bsd/drm2/dist/drm/drm_stub.c
--- a/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:40:12 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_stub.c Wed Jul 24 02:40:28 2013 +0000
@@ -67,11 +67,13 @@
 module_param_named(timestamp_precision_usec, drm_timestamp_precision, int, 0600);
 module_param_named(timestamp_monotonic, drm_timestamp_monotonic, int, 0600);
 
+#ifndef __NetBSD__
 struct idr drm_minors_idr;
 
 struct class *drm_class;
 struct proc_dir_entry *drm_proc_root;
 struct dentry *drm_debugfs_root;
+#endif
 
 int drm_err(const char *func, const char *format, ...)
 {
@@ -109,6 +111,7 @@
 }
 EXPORT_SYMBOL(drm_ut_debug_printk);
 
+#ifndef __NetBSD__
 static int drm_minor_get_id(struct drm_device *dev, int type)
 {
        int new_id;
@@ -143,6 +146,7 @@
        }
        return new_id;
 }
+#endif
 
 struct drm_master *drm_master_create(struct drm_minor *minor)
 {
@@ -331,6 +335,7 @@
 EXPORT_SYMBOL(drm_fill_in_dev);
 
 
+#ifndef __NetBSD__
 /**
  * Get a secondary minor number.
  *
@@ -524,3 +529,5 @@
        mutex_unlock(&drm_global_mutex);
 }
 EXPORT_SYMBOL(drm_unplug_dev);
+
+#endif /* !defined(__NetBSD__) */



Home | Main Index | Thread Index | Old Index