2015-03-03 04:01:12 +07:00
|
|
|
/*
|
|
|
|
* Copyright © 2014 Broadcom
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
|
|
* published by the Free Software Foundation.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <linux/seq_file.h>
|
|
|
|
#include <linux/circ_buf.h>
|
|
|
|
#include <linux/ctype.h>
|
|
|
|
#include <linux/debugfs.h>
|
|
|
|
#include <drm/drmP.h>
|
|
|
|
|
|
|
|
#include "vc4_drv.h"
|
|
|
|
#include "vc4_regs.h"
|
|
|
|
|
|
|
|
static const struct drm_info_list vc4_debugfs_list[] = {
|
2015-10-10 10:25:07 +07:00
|
|
|
{"bo_stats", vc4_bo_stats_debugfs, 0},
|
2016-02-11 02:42:32 +07:00
|
|
|
{"dpi_regs", vc4_dpi_debugfs_regs, 0},
|
2017-02-01 02:29:11 +07:00
|
|
|
{"dsi1_regs", vc4_dsi_debugfs_regs, 0, (void *)(uintptr_t)1},
|
2015-03-03 04:01:12 +07:00
|
|
|
{"hdmi_regs", vc4_hdmi_debugfs_regs, 0},
|
2016-12-02 20:48:10 +07:00
|
|
|
{"vec_regs", vc4_vec_debugfs_regs, 0},
|
2018-07-03 14:50:22 +07:00
|
|
|
{"txp_regs", vc4_txp_debugfs_regs, 0},
|
2015-03-03 04:01:12 +07:00
|
|
|
{"hvs_regs", vc4_hvs_debugfs_regs, 0},
|
|
|
|
{"crtc0_regs", vc4_crtc_debugfs_regs, 0, (void *)(uintptr_t)0},
|
|
|
|
{"crtc1_regs", vc4_crtc_debugfs_regs, 0, (void *)(uintptr_t)1},
|
|
|
|
{"crtc2_regs", vc4_crtc_debugfs_regs, 0, (void *)(uintptr_t)2},
|
2015-03-03 04:01:12 +07:00
|
|
|
{"v3d_ident", vc4_v3d_debugfs_ident, 0},
|
|
|
|
{"v3d_regs", vc4_v3d_debugfs_regs, 0},
|
2015-03-03 04:01:12 +07:00
|
|
|
};
|
|
|
|
|
|
|
|
#define VC4_DEBUGFS_ENTRIES ARRAY_SIZE(vc4_debugfs_list)
|
|
|
|
|
|
|
|
int
|
|
|
|
vc4_debugfs_init(struct drm_minor *minor)
|
|
|
|
{
|
|
|
|
return drm_debugfs_create_files(vc4_debugfs_list, VC4_DEBUGFS_ENTRIES,
|
|
|
|
minor->debugfs_root, minor);
|
|
|
|
}
|