18c2ecf20Sopenharmony_ci#undef TRACE_SYSTEM 28c2ecf20Sopenharmony_ci#define TRACE_SYSTEM tegra 38c2ecf20Sopenharmony_ci 48c2ecf20Sopenharmony_ci#if !defined(DRM_TEGRA_TRACE_H) || defined(TRACE_HEADER_MULTI_READ) 58c2ecf20Sopenharmony_ci#define DRM_TEGRA_TRACE_H 1 68c2ecf20Sopenharmony_ci 78c2ecf20Sopenharmony_ci#include <linux/device.h> 88c2ecf20Sopenharmony_ci#include <linux/tracepoint.h> 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciDECLARE_EVENT_CLASS(register_access, 118c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 128c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value), 138c2ecf20Sopenharmony_ci TP_STRUCT__entry( 148c2ecf20Sopenharmony_ci __field(struct device *, dev) 158c2ecf20Sopenharmony_ci __field(unsigned int, offset) 168c2ecf20Sopenharmony_ci __field(u32, value) 178c2ecf20Sopenharmony_ci ), 188c2ecf20Sopenharmony_ci TP_fast_assign( 198c2ecf20Sopenharmony_ci __entry->dev = dev; 208c2ecf20Sopenharmony_ci __entry->offset = offset; 218c2ecf20Sopenharmony_ci __entry->value = value; 228c2ecf20Sopenharmony_ci ), 238c2ecf20Sopenharmony_ci TP_printk("%s %04x %08x", dev_name(__entry->dev), __entry->offset, 248c2ecf20Sopenharmony_ci __entry->value) 258c2ecf20Sopenharmony_ci); 268c2ecf20Sopenharmony_ci 278c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dc_writel, 288c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 298c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 308c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dc_readl, 318c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 328c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, hdmi_writel, 358c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 368c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 378c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, hdmi_readl, 388c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 398c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 408c2ecf20Sopenharmony_ci 418c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dsi_writel, 428c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 438c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 448c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dsi_readl, 458c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 468c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 478c2ecf20Sopenharmony_ci 488c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dpaux_writel, 498c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 508c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 518c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, dpaux_readl, 528c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 538c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 548c2ecf20Sopenharmony_ci 558c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, sor_writel, 568c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 578c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 588c2ecf20Sopenharmony_ciDEFINE_EVENT(register_access, sor_readl, 598c2ecf20Sopenharmony_ci TP_PROTO(struct device *dev, unsigned int offset, u32 value), 608c2ecf20Sopenharmony_ci TP_ARGS(dev, offset, value)); 618c2ecf20Sopenharmony_ci 628c2ecf20Sopenharmony_ci#endif /* DRM_TEGRA_TRACE_H */ 638c2ecf20Sopenharmony_ci 648c2ecf20Sopenharmony_ci/* This part must be outside protection */ 658c2ecf20Sopenharmony_ci#undef TRACE_INCLUDE_PATH 668c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_PATH ../../drivers/gpu/drm/tegra 678c2ecf20Sopenharmony_ci#define TRACE_INCLUDE_FILE trace 688c2ecf20Sopenharmony_ci#include <trace/define_trace.h> 69