linux/drivers/scsi/mpt3sas/mpt3sas_debug.h

/*
 * Logging Support for MPT (Message Passing Technology) based controllers
 *
 * This code is based on drivers/scsi/mpt3sas/mpt3sas_debug.c
 * Copyright (C) 2012-2014  LSI Corporation
 * Copyright (C) 2013-2014 Avago Technologies
 *  (mailto: [email protected])
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * NO WARRANTY
 * THE PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR
 * CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED INCLUDING, WITHOUT
 * LIMITATION, ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT,
 * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Each Recipient is
 * solely responsible for determining the appropriateness of using and
 * distributing the Program and assumes all risks associated with its
 * exercise of rights under this Agreement, including but not limited to
 * the risks and costs of program errors, damage to or loss of data,
 * programs or equipment, and unavailability or interruption of operations.

 * DISCLAIMER OF LIABILITY
 * NEITHER RECIPIENT NOR ANY CONTRIBUTORS SHALL HAVE ANY LIABILITY FOR ANY
 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 * DAMAGES (INCLUDING WITHOUT LIMITATION LOST PROFITS), HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
 * TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
 * USE OR DISTRIBUTION OF THE PROGRAM OR THE EXERCISE OF ANY RIGHTS GRANTED
 * HEREUNDER, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES

 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301,
 * USA.
 */

#ifndef MPT3SAS_DEBUG_H_INCLUDED
#define MPT3SAS_DEBUG_H_INCLUDED

#define MPT_DEBUG
#define MPT_DEBUG_MSG_FRAME
#define MPT_DEBUG_SG
#define MPT_DEBUG_EVENTS
#define MPT_DEBUG_EVENT_WORK_TASK
#define MPT_DEBUG_INIT
#define MPT_DEBUG_EXIT
#define MPT_DEBUG_FAIL
#define MPT_DEBUG_TM
#define MPT_DEBUG_REPLY
#define MPT_DEBUG_HANDSHAKE
#define MPT_DEBUG_CONFIG
#define MPT_DEBUG_DL
#define MPT_DEBUG_RESET
#define MPT_DEBUG_SCSI
#define MPT_DEBUG_IOCTL
#define MPT_DEBUG_SAS
#define MPT_DEBUG_TRANSPORT
#define MPT_DEBUG_TASK_SET_FULL

#define MPT_DEBUG_TRIGGER_DIAG


#define MPT_CHECK_LOGGING(IOC, CMD, BITS)

/*
 * debug macros
 */

#define dprintk(IOC, CMD)

#define dsgprintk(IOC, CMD)

#define devtprintk(IOC, CMD)

#define dewtprintk(IOC, CMD)

#define dinitprintk(IOC, CMD)

#define dexitprintk(IOC, CMD)

#define dfailprintk(IOC, CMD)

#define dtmprintk(IOC, CMD)

#define dreplyprintk(IOC, CMD)

#define dhsprintk(IOC, CMD)

#define dcprintk(IOC, CMD)

#define ddlprintk(IOC, CMD)

#define drsprintk(IOC, CMD)

#define dsprintk(IOC, CMD)

#define dctlprintk(IOC, CMD)

#define dsasprintk(IOC, CMD)

#define dsastransport(IOC, CMD)

#define dmfprintk(IOC, CMD)

#define dtsfprintk(IOC, CMD)

#define dtransportprintk(IOC, CMD)

#define dTriggerDiagPrintk(IOC, CMD)



/* inline functions for dumping debug data*/

/**
 * _debug_dump_mf - print message frame contents
 * @mpi_request: pointer to message frame
 * @sz: number of dwords
 */
static inline void
_debug_dump_mf(void *mpi_request, int sz)
{}
/**
 * _debug_dump_reply - print message frame contents
 * @mpi_request: pointer to message frame
 * @sz: number of dwords
 */
static inline void
_debug_dump_reply(void *mpi_request, int sz)
{}
/**
 * _debug_dump_config - print config page contents
 * @mpi_request: pointer to message frame
 * @sz: number of dwords
 */
static inline void
_debug_dump_config(void *mpi_request, int sz)
{}

#endif /* MPT3SAS_DEBUG_H_INCLUDED */