summaryrefslogtreecommitdiff
path: root/.gitignore
AgeCommit message (Expand)Author
2008-05-01Update mm tests for GEM rename.Eric Anholt
2008-04-29Move mmfs tests over to be drm tests.Eric Anholt
2008-04-23Add mmap ioctl to mmfs.Eric Anholt
2008-04-23Add pread/pwrite ioctls to mmfs.Eric Anholt
2008-04-23Initial add of mmfs module.Eric Anholt
2007-08-15Add a set of tests for DRM locking, exposing issues on BSD.Eric Anholt
2007-08-15Add a regression test for the setversion interface.Eric Anholt
2007-08-15Add simple regression test for getstats (does it not crash the kernel?).Eric Anholt
2007-08-13Add a regression test for authentication.Eric Anholt
2007-07-20BSD: Replace symlink building with symlinks in git.Eric Anholt
2007-07-19Add a test for drawable add, remove, and update.Eric Anholt
2007-07-19Add some trivial regression tests, one of which fails.Eric Anholt
2007-07-19Add current BSD stuff to .gitignore.Eric Anholt
2007-02-02Make git ignore generated config.h.in.Michel Dänzer
2007-01-02Make git ignore Emacs style backup files and cscope files.Michel Dänzer
2006-12-01Track linux-core symlinks in git.Michel Dänzer
2006-07-19.cvsignore -> .gitignoreMichel Dänzer
hl com"> * paragraph) shall be included in all copies or substantial portions of the * Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR * OTHER DEALINGS IN THE SOFTWARE. * * Authors: * Rickard E. (Rik) Faith <faith@valinux.com> * Gareth Hughes <gareth@valinux.com> */ #include "drmP.h" #if 1 && DRM_DEBUG_CODE int DRM(flags) = DRM_FLAG_DEBUG; #else int DRM(flags) = 0; #endif /* drm_parse_option parses a single option. See description for * drm_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, "noctx")) { DRM(flags) |= DRM_FLAG_NOCTX; DRM_INFO("Server-mediated context switching OFF\n"); return; } 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; } /* drm_parse_options parse the insmod "drm_opts=" options, or the command-line * options passed to the kernel via LILO. The grammar of the format is as * follows: * * drm ::= 'drm_opts=' option_list * option_list ::= option [ ';' option_list ] * option ::= 'device:' major * | 'debug' * | 'noctx' * major ::= INTEGER * * Note that 's' contains option_list without the 'drm_opts=' part. * * 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 * */ 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 */ } } /* drm_cpu_valid returns non-zero if the DRI will run on this CPU, and 0 * otherwise. */ int DRM(cpu_valid)(void) { return 1; }