diff options
author | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-15 02:59:35 +0000 |
---|---|---|
committer | Jon Smirl <jonsmirl@yahoo.com> | 2004-10-15 02:59:35 +0000 |
commit | fa50e2b5132b84353ae964a39c3b10ea270d15e8 (patch) | |
tree | 8b987d4039b84b424e5d55c6b32b74d99cc00695 /linux-core/drmP.h | |
parent | 5e8838fd115879174567c4c2db8ad25331619994 (diff) |
Switch linux-core over to 2.6 parameter model to enable debug use
drm_debug=1
Diffstat (limited to 'linux-core/drmP.h')
-rw-r--r-- | linux-core/drmP.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/linux-core/drmP.h b/linux-core/drmP.h index 8af9f359..49cd9049 100644 --- a/linux-core/drmP.h +++ b/linux-core/drmP.h @@ -188,7 +188,7 @@ #if DRM_DEBUG_CODE #define DRM_DEBUG(fmt, arg...) \ do { \ - if ( drm_flags & DRM_FLAG_DEBUG ) \ + if ( drm_debug ) \ printk(KERN_DEBUG \ "[" DRM_NAME ":%s] " fmt , \ __FUNCTION__ , ##arg); \ @@ -726,8 +726,6 @@ static inline int drm_core_has_MTRR(struct drm_device *dev) /*@{*/ /* Misc. support (drm_init.h) */ -extern int drm_flags; -extern void drm_parse_options(char *s); extern int drm_cpu_valid(void); /* Driver support (drm_drv.h) */ @@ -919,6 +917,7 @@ extern int drm_get_dev(struct pci_dev *pdev, const struct pci_device_id *ent, extern int drm_put_dev(drm_device_t * dev); extern int drm_get_head(drm_device_t * dev, drm_head_t *head); extern int drm_put_head(drm_head_t * head); +extern unsigned int drm_debug; /* 1 to enable debug output */ extern unsigned int cards_limit; extern drm_head_t **drm_heads; extern struct drm_sysfs_class *drm_class; |