aboutsummaryrefslogtreecommitdiff
path: root/linux-core/drm_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core/drm_init.c')
-rw-r--r--linux-core/drm_init.c85
1 files changed, 0 insertions, 85 deletions
diff --git a/linux-core/drm_init.c b/linux-core/drm_init.c
index 65413474..0d3c1d88 100644
--- a/linux-core/drm_init.c
+++ b/linux-core/drm_init.c
@@ -35,91 +35,6 @@
#include "drmP.h"
-/** Debug flags. Set by parse_option(). */
-#if 0
-int drm_flags = DRM_FLAG_DEBUG;
-#else
-int drm_flags = 0;
-#endif
-EXPORT_SYMBOL(drm_flags);
-
-/**
- * Parse a single option.
- *
- * \param s option string.
- *
- * \sa See parse_options() for details.
- */
-static void drm_parse_option(char *s)
-{
- char *c, *r;
-
- DRM_DEBUG("\"%s\"\n", s);
- if (!s || !*s)
- return;
- for (c = s; *c && *c != ':'; c++) ; /* find : or \0 */
- if (*c)
- r = c + 1;
- else
- r = NULL; /* remember remainder */
- *c = '\0'; /* terminate */
- if (!strcmp(s, "debug")) {
- drm_flags |= DRM_FLAG_DEBUG;
- DRM_INFO("Debug messages ON\n");
- return;
- }
- DRM_ERROR("\"%s\" is not a valid option\n", s);
- return;
-}
-
-/**
- * Parse the insmod "drm_opts=" options, or the command-line
- * options passed to the kernel via LILO.
- *
- * \param s contains option_list without the 'drm_opts=' part.
- *
- * The grammar of the format is as
- * follows:
- *
- * \code
- * drm ::= 'drm_opts=' option_list
- * option_list ::= option [ ';' option_list ]
- * option ::= 'device:' major
- * | 'debug'
- * | 'noctx'
- * major ::= INTEGER
- * \endcode
- *
- * - device=major,minor specifies the device number used for /dev/drm
- * - if major == 0 then the misc device is used
- * - if major == 0 and minor == 0 then dynamic misc allocation is used
- * - debug=on specifies that debugging messages will be printk'd
- * - debug=trace specifies that each function call will be logged via printk
- * - debug=off turns off all debugging options
- *
- * \todo Actually only the \e presence of the 'debug' option is currently
- * checked.
- */
-
-void drm_parse_options(char *s)
-{
- char *h, *t, *n;
-
- DRM_DEBUG("\"%s\"\n", s ? : "");
- if (!s || !*s)
- return;
-
- for (h = t = n = s; h && *h; h = n) {
- for (; *t && *t != ';'; t++) ; /* find ; or \0 */
- if (*t)
- n = t + 1;
- else
- n = NULL; /* remember next */
- *t = '\0'; /* terminate */
- drm_parse_option(h); /* parse */
- }
-}
-
/**
* Check whether DRI will run on this CPU.
*