search for: nv_reg_debug

Displaying 1 result from an estimated 1 matches for "nv_reg_debug".

2009 Sep 06
2
[PATCH 1/4] drm/nouveau: add reg_debug module parameter
...UG_EXTDEV = 0x8, + NOUVEAU_REG_DEBUG_REG = 0x10, + NOUVEAU_REG_DEBUG_CRTC = 0x20, + NOUVEAU_REG_DEBUG_RAMDAC = 0x40, + NOUVEAU_REG_DEBUG_VGACRTC = 0x80, + NOUVEAU_REG_DEBUG_RMVIO = 0x100, + NOUVEAU_REG_DEBUG_VGAATTR = 0x200, +}; + +#define NV_REG_DEBUG(type, dev, fmt, arg...) do { \ + if (nouveau_reg_debug & NOUVEAU_REG_DEBUG_##type) \ + NV_PRINTK(KERN_DEBUG, dev, "%s: " fmt, __func__, ##arg); \ +} while (0) + static inline enum nouveau_card_type nv_arch(struct drm_device *dev) { diff --git a/drivers/gpu/drm/nouveau/nouveau_hw.h...