/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2014 QLogic Corporation
* The contents of this file are subject to the terms of the
* QLogic End User License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the License at
* See the License for the specific language governing permissions
* and limitations under the License.
*/
#ifndef __BNXE_DEBUG_H__
#define __BNXE_DEBUG_H__
extern char * BnxeDevName(void *);
#ifdef DBG
/********************************************/
/* all DbgXXX() routines are used by the LM */
/********************************************/
/*
* Don't use the __FILE_STRIPPED macro as it will eat up too much read-only
* data and dtrace will fail to load on SPARC. Use __BASENAME__ passed to the
* compiler in the Makefile.
*/
#if 0
#endif
void DbgMessageFunc(void * pDev,
int level,
char * pFmt,
...);
BnxeDevName((void *)_c), \
_m, \
__BASENAME__, \
__LINE__, \
##__VA_ARGS__)
__BASENAME__, \
__BASENAME__, \
if (_cond) \
{ \
__BASENAME__, \
__LINE__); \
}
#endif /* DBG */
/*****************************************************************/
/* all BnxeDbgXXX() and BnxeLogXXX() routines are used by the UM */
/*****************************************************************/
BnxeDevName(_c), \
__BASENAME__, \
BnxeDevName(_c), \
__BASENAME__, \
if (_cond) \
{ \
BnxeDevName(_c), \
__BASENAME__, \
__LINE__); \
}
/* for CE_PANIC use one of the BnxeDbgBreak macros above */
#ifdef DEBUG
#else
#define BnxeLogDbg
#endif
#endif /* __BNXE_DEBUG_H__ */