linux/drivers/gpu/drm/amd/display/modules/hdcp/hdcp_log.h

/*
 * Copyright 2019 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#ifndef MOD_HDCP_LOG_H_
#define MOD_HDCP_LOG_H_

#define HDCP_LOG_ERR(hdcp, ...)
#define HDCP_LOG_VER(hdcp, ...)
#define HDCP_LOG_FSM(hdcp, ...)
#define HDCP_LOG_TOP(hdcp, ...)
#define HDCP_LOG_DDC(hdcp, ...)

/* default logs */
#define HDCP_ERROR_TRACE(hdcp, status)
#define HDCP_HDCP1_ENABLED_TRACE(hdcp, displayIndex)
#define HDCP_HDCP2_ENABLED_TRACE(hdcp, displayIndex)
#define HDCP_HDCP1_DISABLED_TRACE(hdcp, displayIndex)
#define HDCP_HDCP2_DISABLED_TRACE(hdcp, displayIndex)

/* state machine logs */
#define HDCP_REMOVE_DISPLAY_TRACE(hdcp, displayIndex)
#define HDCP_INPUT_PASS_TRACE(hdcp, str)
#define HDCP_INPUT_FAIL_TRACE(hdcp, str)
#define HDCP_NEXT_STATE_TRACE(hdcp, id, output)
#define HDCP_TIMEOUT_TRACE(hdcp)
#define HDCP_CPIRQ_TRACE(hdcp)
#define HDCP_EVENT_TRACE(hdcp, event)
/* TODO: find some way to tell if logging is off to save time */
#define HDCP_DDC_READ_TRACE(hdcp, msg_name, msg, msg_size)
#define HDCP_DDC_WRITE_TRACE(hdcp, msg_name, msg, msg_size)
#define HDCP_TOP_ADD_DISPLAY_TRACE(hdcp, i)
#define HDCP_TOP_REMOVE_DISPLAY_TRACE(hdcp, i)
#define HDCP_TOP_HDCP1_DESTROY_SESSION_TRACE(hdcp)
#define HDCP_TOP_HDCP2_DESTROY_SESSION_TRACE(hdcp)
#define HDCP_TOP_RESET_AUTH_TRACE(hdcp)
#define HDCP_TOP_RESET_CONN_TRACE(hdcp)
#define HDCP_TOP_INTERFACE_TRACE(hdcp)
#define HDCP_TOP_INTERFACE_TRACE_WITH_INDEX(hdcp, i)

#endif // MOD_HDCP_LOG_H_