18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 28c2ecf20Sopenharmony_ci/* 38c2ecf20Sopenharmony_ci * Intel(R) Trace Hub Software Trace Hub (STH) data structures 48c2ecf20Sopenharmony_ci * 58c2ecf20Sopenharmony_ci * Copyright (C) 2014-2015 Intel Corporation. 68c2ecf20Sopenharmony_ci */ 78c2ecf20Sopenharmony_ci 88c2ecf20Sopenharmony_ci#ifndef __INTEL_TH_STH_H__ 98c2ecf20Sopenharmony_ci#define __INTEL_TH_STH_H__ 108c2ecf20Sopenharmony_ci 118c2ecf20Sopenharmony_cienum { 128c2ecf20Sopenharmony_ci REG_STH_STHCAP0 = 0x0000, /* capabilities pt1 */ 138c2ecf20Sopenharmony_ci REG_STH_STHCAP1 = 0x0004, /* capabilities pt2 */ 148c2ecf20Sopenharmony_ci REG_STH_TRIG = 0x0008, /* TRIG packet payload */ 158c2ecf20Sopenharmony_ci REG_STH_TRIG_TS = 0x000c, /* TRIG_TS packet payload */ 168c2ecf20Sopenharmony_ci REG_STH_XSYNC = 0x0010, /* XSYNC packet payload */ 178c2ecf20Sopenharmony_ci REG_STH_XSYNC_TS = 0x0014, /* XSYNC_TS packet payload */ 188c2ecf20Sopenharmony_ci REG_STH_GERR = 0x0018, /* GERR packet payload */ 198c2ecf20Sopenharmony_ci}; 208c2ecf20Sopenharmony_ci 218c2ecf20Sopenharmony_cistruct intel_th_channel { 228c2ecf20Sopenharmony_ci u64 Dn; 238c2ecf20Sopenharmony_ci u64 DnM; 248c2ecf20Sopenharmony_ci u64 DnTS; 258c2ecf20Sopenharmony_ci u64 DnMTS; 268c2ecf20Sopenharmony_ci u64 USER; 278c2ecf20Sopenharmony_ci u64 USER_TS; 288c2ecf20Sopenharmony_ci u32 FLAG; 298c2ecf20Sopenharmony_ci u32 FLAG_TS; 308c2ecf20Sopenharmony_ci u32 MERR; 318c2ecf20Sopenharmony_ci u32 __unused; 328c2ecf20Sopenharmony_ci} __packed; 338c2ecf20Sopenharmony_ci 348c2ecf20Sopenharmony_ci#endif /* __INTEL_TH_STH_H__ */ 35