1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 #define TRACE_SYSTEM fsi_master_aspeed
6 #if !defined(_TRACE_FSI_MASTER_ASPEED_H) || defined(TRACE_HEADER_MULTI_READ)
7 #define _TRACE_FSI_MASTER_ASPEED_H
9 #include <linux/tracepoint.h>
11 TRACE_EVENT(fsi_master_aspeed_opb_read
,
12 TP_PROTO(uint32_t addr
, size_t size
, uint32_t result
, uint32_t status
, uint32_t irq_status
),
13 TP_ARGS(addr
, size
, result
, status
, irq_status
),
15 __field(uint32_t, addr
)
17 __field(uint32_t, result
)
18 __field(uint32_t, status
)
19 __field(uint32_t, irq_status
)
24 __entry
->result
= result
;
25 __entry
->status
= status
;
26 __entry
->irq_status
= irq_status
;
28 TP_printk("addr %08x size %zu: result %08x sts: %08x irq_sts: %08x",
29 __entry
->addr
, __entry
->size
, __entry
->result
,
30 __entry
->status
, __entry
->irq_status
34 TRACE_EVENT(fsi_master_aspeed_opb_write
,
35 TP_PROTO(uint32_t addr
, uint32_t val
, size_t size
, uint32_t status
, uint32_t irq_status
),
36 TP_ARGS(addr
, val
, size
, status
, irq_status
),
38 __field(uint32_t, addr
)
39 __field(uint32_t, val
)
41 __field(uint32_t, status
)
42 __field(uint32_t, irq_status
)
48 __entry
->status
= status
;
49 __entry
->irq_status
= irq_status
;
51 TP_printk("addr %08x val %08x size %zu status: %08x irq_sts: %08x",
52 __entry
->addr
, __entry
->val
, __entry
->size
,
53 __entry
->status
, __entry
->irq_status
57 TRACE_EVENT(fsi_master_aspeed_opb_error
,
58 TP_PROTO(uint32_t mresp0
, uint32_t mstap0
, uint32_t mesrb0
),
59 TP_ARGS(mresp0
, mstap0
, mesrb0
),
61 __field(uint32_t, mresp0
)
62 __field(uint32_t, mstap0
)
63 __field(uint32_t, mesrb0
)
66 __entry
->mresp0
= mresp0
;
67 __entry
->mstap0
= mstap0
;
68 __entry
->mesrb0
= mesrb0
;
70 TP_printk("mresp0 %08x mstap0 %08x mesrb0 %08x",
71 __entry
->mresp0
, __entry
->mstap0
, __entry
->mesrb0
77 #include <trace/define_trace.h>