1*473c88f9SBruce Richardson /* SPDX-License-Identifier: BSD-3-Clause 2*473c88f9SBruce Richardson * Copyright(c) 2010-2018 Intel Corporation 3*473c88f9SBruce Richardson */ 4*473c88f9SBruce Richardson 5*473c88f9SBruce Richardson #ifndef _OPAE_DEBUG_H_ 6*473c88f9SBruce Richardson #define _OPAE_DEBUG_H_ 7*473c88f9SBruce Richardson 8*473c88f9SBruce Richardson #ifdef OPAE_HW_DEBUG 9*473c88f9SBruce Richardson #define opae_log(fmt, args...) printf(fmt, ## args) 10*473c88f9SBruce Richardson #else 11*473c88f9SBruce Richardson #define opae_log(fme, args...) do {} while (0) 12*473c88f9SBruce Richardson #endif 13*473c88f9SBruce Richardson 14*473c88f9SBruce Richardson void opae_manager_dump(struct opae_manager *mgr); 15*473c88f9SBruce Richardson void opae_bridge_dump(struct opae_bridge *br); 16*473c88f9SBruce Richardson void opae_accelerator_dump(struct opae_accelerator *acc); 17*473c88f9SBruce Richardson void opae_adapter_dump(struct opae_adapter *adapter, int verbose); 18*473c88f9SBruce Richardson 19*473c88f9SBruce Richardson #endif /* _OPAE_DEBUG_H_ */ 20