linux/drivers/gpu/drm/omapdrm/dss/hdmi4_cec.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * HDMI CEC
 *
 * Based on the CEC code from hdmi_ti_4xxx_ip.c from Android.
 *
 * Copyright (C) 2010-2011 Texas Instruments Incorporated - https://www.ti.com/
 * Authors: Yong Zhi
 *	Mythri pk <[email protected]>
 *
 * Heavily modified to use the linux CEC framework:
 *
 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
 */

#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/slab.h>

#include "dss.h"
#include "hdmi.h"
#include "hdmi4_core.h"
#include "hdmi4_cec.h"

/* HDMI CEC */
#define HDMI_CEC_DEV_ID
#define HDMI_CEC_SPEC

/* Not really a debug register, more a low-level control register */
#define HDMI_CEC_DBG_3
#define HDMI_CEC_TX_INIT
#define HDMI_CEC_TX_DEST
#define HDMI_CEC_SETUP
#define HDMI_CEC_TX_COMMAND
#define HDMI_CEC_TX_OPERAND
#define HDMI_CEC_TRANSMIT_DATA
#define HDMI_CEC_CA_7_0
#define HDMI_CEC_CA_15_8
#define HDMI_CEC_INT_STATUS_0
#define HDMI_CEC_INT_STATUS_1
#define HDMI_CEC_INT_ENABLE_0
#define HDMI_CEC_INT_ENABLE_1
#define HDMI_CEC_RX_CONTROL
#define HDMI_CEC_RX_COUNT
#define HDMI_CEC_RX_CMD_HEADER
#define HDMI_CEC_RX_COMMAND
#define HDMI_CEC_RX_OPERAND

#define HDMI_CEC_TX_FIFO_INT_MASK
#define HDMI_CEC_RETRANSMIT_CNT_INT_MASK

#define HDMI_CORE_CEC_RETRY

static void hdmi_cec_received_msg(struct hdmi_core_data *core)
{}

void hdmi4_cec_irq(struct hdmi_core_data *core)
{}

static bool hdmi_cec_clear_tx_fifo(struct cec_adapter *adap)
{}

static bool hdmi_cec_clear_rx_fifo(struct cec_adapter *adap)
{}

static int hdmi_cec_adap_enable(struct cec_adapter *adap, bool enable)
{}

static int hdmi_cec_adap_log_addr(struct cec_adapter *adap, u8 log_addr)
{}

static int hdmi_cec_adap_transmit(struct cec_adapter *adap, u8 attempts,
				   u32 signal_free_time, struct cec_msg *msg)
{}

static const struct cec_adap_ops hdmi_cec_adap_ops =;

void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
{}

int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
		  struct hdmi_wp_data *wp)
{}

void hdmi4_cec_uninit(struct hdmi_core_data *core)
{}