linux/sound/pci/asihpi/hpidebug.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*****************************************************************************

    AudioScience HPI driver
    Copyright (C) 1997-2011  AudioScience Inc. <[email protected]>


Debug macros.

*****************************************************************************/

#ifndef _HPIDEBUG_H
#define _HPIDEBUG_H

#include "hpi_internal.h"

/* Define debugging levels.  */
enum {};

#define HPI_DEBUG_LEVEL_DEFAULT

/* an OS can define an extra flag string that is appended to
   the start of each message, eg see linux kernel hpios.h */

#ifdef SOURCEFILE_NAME
#undef FILE_LINE
#define FILE_LINE
#endif

#define HPI_DEBUG_ASSERT(expression)

#define HPI_DEBUG_LOG(level, ...)

void hpi_debug_init(void);
int hpi_debug_level_set(int level);
int hpi_debug_level_get(void);
/* needed by Linux driver for dynamic debug level changes */
extern int hpi_debug_level;

void hpi_debug_message(struct hpi_message *phm, char *sz_fileline);

void hpi_debug_data(u16 *pdata, u32 len);

#define HPI_DEBUG_DATA(pdata, len)

#define HPI_DEBUG_MESSAGE(level, phm)

#define HPI_DEBUG_RESPONSE(phr)

#ifndef compile_time_assert
#define compile_time_assert
#endif

#endif				/* _HPIDEBUG_H_  */