sth.h 786 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Intel(R) Trace Hub Software Trace Hub (STH) data structures
  4. *
  5. * Copyright (C) 2014-2015 Intel Corporation.
  6. */
  7. #ifndef __INTEL_TH_STH_H__
  8. #define __INTEL_TH_STH_H__
  9. enum {
  10. REG_STH_STHCAP0 = 0x0000, /* capabilities pt1 */
  11. REG_STH_STHCAP1 = 0x0004, /* capabilities pt2 */
  12. REG_STH_TRIG = 0x0008, /* TRIG packet payload */
  13. REG_STH_TRIG_TS = 0x000c, /* TRIG_TS packet payload */
  14. REG_STH_XSYNC = 0x0010, /* XSYNC packet payload */
  15. REG_STH_XSYNC_TS = 0x0014, /* XSYNC_TS packet payload */
  16. REG_STH_GERR = 0x0018, /* GERR packet payload */
  17. };
  18. struct intel_th_channel {
  19. u64 Dn;
  20. u64 DnM;
  21. u64 DnTS;
  22. u64 DnMTS;
  23. u64 USER;
  24. u64 USER_TS;
  25. u32 FLAG;
  26. u32 FLAG_TS;
  27. u32 MERR;
  28. u32 __unused;
  29. } __packed;
  30. #endif /* __INTEL_TH_STH_H__ */