1 /* SPDX-License-Identifier: ISC */
2 /* Copyright (C) 2022 MediaTek Inc. */
14 struct mt7915_coredump
{
21 /* time-of-day stamp */
23 /* time-of-day stamp, nano-seconds */
27 /* firmware version */
28 char fw_ver
[ETHTOOL_FWVERS_LEN
];
51 /* task queue status */
66 /* firmware context */
73 /* link registers calltrace */
80 struct mt7915_coredump_mem
{
85 struct mt7915_mem_hdr
{
91 struct mt7915_mem_region
{
98 #ifdef CONFIG_DEV_COREDUMP
100 const struct mt7915_mem_region
*
101 mt7915_coredump_get_mem_layout(struct mt7915_dev
*dev
, u32
*num
);
102 struct mt7915_crash_data
*mt7915_coredump_new(struct mt7915_dev
*dev
);
103 int mt7915_coredump_submit(struct mt7915_dev
*dev
);
104 int mt7915_coredump_register(struct mt7915_dev
*dev
);
105 void mt7915_coredump_unregister(struct mt7915_dev
*dev
);
107 #else /* CONFIG_DEV_COREDUMP */
109 static inline const struct mt7915_mem_region
*
110 mt7915_coredump_get_mem_layout(struct mt7915_dev
*dev
, u32
*num
)
115 static inline int mt7915_coredump_submit(struct mt7915_dev
*dev
)
120 static inline struct mt7915_crash_data
*mt7915_coredump_new(struct mt7915_dev
*dev
)
125 static inline int mt7915_coredump_register(struct mt7915_dev
*dev
)
130 static inline void mt7915_coredump_unregister(struct mt7915_dev
*dev
)
134 #endif /* CONFIG_DEV_COREDUMP */
136 #endif /* _COREDUMP_H_ */