xref: /kernel/linux/linux-5.10/arch/s390/include/asm/pci_debug.h
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /kernel/linux/linux-5.10/arch/s390/include/asm/
18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _S390_ASM_PCI_DEBUG_H
38c2ecf20Sopenharmony_ci#define _S390_ASM_PCI_DEBUG_H
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_ci#include <asm/debug.h>
68c2ecf20Sopenharmony_ci
78c2ecf20Sopenharmony_ciextern debug_info_t *pci_debug_msg_id;
88c2ecf20Sopenharmony_ciextern debug_info_t *pci_debug_err_id;
98c2ecf20Sopenharmony_ci
108c2ecf20Sopenharmony_ci#define zpci_dbg(imp, fmt, args...)				\
118c2ecf20Sopenharmony_ci	debug_sprintf_event(pci_debug_msg_id, imp, fmt, ##args)
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#define zpci_err(text...)							\
148c2ecf20Sopenharmony_ci	do {									\
158c2ecf20Sopenharmony_ci		char debug_buffer[16];						\
168c2ecf20Sopenharmony_ci		snprintf(debug_buffer, 16, text);				\
178c2ecf20Sopenharmony_ci		debug_text_event(pci_debug_err_id, 0, debug_buffer);		\
188c2ecf20Sopenharmony_ci	} while (0)
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_cistatic inline void zpci_err_hex(void *addr, int len)
218c2ecf20Sopenharmony_ci{
228c2ecf20Sopenharmony_ci	debug_event(pci_debug_err_id, 0, addr, len);
238c2ecf20Sopenharmony_ci}
248c2ecf20Sopenharmony_ci
258c2ecf20Sopenharmony_ci#endif
26

Indexes created Thu Nov 07 10:32:03 CST 2024