#include <linux/debugfs.h>
#include <linux/dynamic_debug.h>
#include <linux/io.h>
#include <linux/moduleparam.h>
#include <linux/seq_file.h>
#include <linux/slab.h>
#include <linux/stdarg.h>
#include <drm/drm.h>
#include <drm/drm_drv.h>
#include <drm/drm_print.h>
unsigned long __drm_debug;
EXPORT_SYMBOL(…);
MODULE_PARM_DESC(…) …;
#if !defined(CONFIG_DRM_USE_DYNAMIC_DEBUG)
module_param_named(debug, __drm_debug, ulong, 0600);
#else
DECLARE_DYNDBG_CLASSMAP(drm_debug_classes, DD_CLASS_TYPE_DISJOINT_BITS, 0,
"DRM_UT_CORE",
"DRM_UT_DRIVER",
"DRM_UT_KMS",
"DRM_UT_PRIME",
"DRM_UT_ATOMIC",
"DRM_UT_VBL",
"DRM_UT_STATE",
"DRM_UT_LEASE",
"DRM_UT_DP",
"DRM_UT_DRMRES");
static struct ddebug_class_param drm_debug_bitmap = {
.bits = &__drm_debug,
.flags = "p",
.map = &drm_debug_classes,
};
module_param_cb(debug, ¶m_ops_dyndbg_classes, &drm_debug_bitmap, 0600);
#endif
void __drm_puts_coredump(struct drm_printer *p, const char *str)
{ … }
EXPORT_SYMBOL(…);
void __drm_printfn_coredump(struct drm_printer *p, struct va_format *vaf)
{ … }
EXPORT_SYMBOL(…);
void __drm_puts_seq_file(struct drm_printer *p, const char *str)
{ … }
EXPORT_SYMBOL(…);
void __drm_printfn_seq_file(struct drm_printer *p, struct va_format *vaf)
{ … }
EXPORT_SYMBOL(…);
static void __drm_dev_vprintk(const struct device *dev, const char *level,
const void *origin, const char *prefix,
struct va_format *vaf)
{ … }
void __drm_printfn_info(struct drm_printer *p, struct va_format *vaf)
{ … }
EXPORT_SYMBOL(…);
void __drm_printfn_dbg(struct drm_printer *p, struct va_format *vaf)
{ … }
EXPORT_SYMBOL(…);
void __drm_printfn_err(struct drm_printer *p, struct va_format *vaf)
{ … }
EXPORT_SYMBOL(…);
void drm_puts(struct drm_printer *p, const char *str)
{ … }
EXPORT_SYMBOL(…);
void drm_printf(struct drm_printer *p, const char *f, ...)
{ … }
EXPORT_SYMBOL(…);
void drm_print_bits(struct drm_printer *p, unsigned long value,
const char * const bits[], unsigned int nbits)
{ … }
EXPORT_SYMBOL(…);
void drm_dev_printk(const struct device *dev, const char *level,
const char *format, ...)
{ … }
EXPORT_SYMBOL(…);
void __drm_dev_dbg(struct _ddebug *desc, const struct device *dev,
enum drm_debug_category category, const char *format, ...)
{ … }
EXPORT_SYMBOL(…);
void __drm_err(const char *format, ...)
{ … }
EXPORT_SYMBOL(…);
void drm_print_regset32(struct drm_printer *p, struct debugfs_regset32 *regset)
{ … }
EXPORT_SYMBOL(…);