Module Name:    src
Committed By:   riastradh
Date:           Wed Jul 24 02:40:28 UTC 2013

Modified Files:
        src/sys/external/bsd/drm2/dist/drm [riastradh-drm2]: drm_stub.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.1.1.1.2.3 -r1.1.1.1.2.4 \
    src/sys/external/bsd/drm2/dist/drm/drm_stub.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/external/bsd/drm2/dist/drm/drm_stub.c
diff -u src/sys/external/bsd/drm2/dist/drm/drm_stub.c:1.1.1.1.2.3 src/sys/external/bsd/drm2/dist/drm/drm_stub.c:1.1.1.1.2.4
--- src/sys/external/bsd/drm2/dist/drm/drm_stub.c:1.1.1.1.2.3	Wed Jul 24 02:40:12 2013
+++ src/sys/external/bsd/drm2/dist/drm/drm_stub.c	Wed Jul 24 02:40:28 2013
@@ -67,11 +67,13 @@ module_param_named(vblankoffdelay, drm_v
 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 @@ void drm_ut_debug_printk(unsigned int re
 }
 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 @@ again:
 	}
 	return new_id;
 }
+#endif
 
 struct drm_master *drm_master_create(struct drm_minor *minor)
 {
@@ -331,6 +335,7 @@ int drm_fill_in_dev(struct drm_device *d
 EXPORT_SYMBOL(drm_fill_in_dev);
 
 
+#ifndef __NetBSD__
 /**
  * Get a secondary minor number.
  *
@@ -524,3 +529,5 @@ void drm_unplug_dev(struct drm_device *d
 	mutex_unlock(&drm_global_mutex);
 }
 EXPORT_SYMBOL(drm_unplug_dev);
+
+#endif	/* !defined(__NetBSD__) */

Reply via email to