linux/drivers/media/cec/platform/tegra/tegra_cec.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Tegra CEC implementation
 *
 * The original 3.10 CEC driver using a custom API:
 *
 * Copyright (c) 2012-2015, NVIDIA CORPORATION.  All rights reserved.
 *
 * Conversion to the CEC framework and to the mainline kernel:
 *
 * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
 */

#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/pm.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/clk/tegra.h>

#include <media/cec-notifier.h>

#include "tegra_cec.h"

#define TEGRA_CEC_NAME

struct tegra_cec {};

static inline u32 cec_read(struct tegra_cec *cec, u32 reg)
{}

static inline void cec_write(struct tegra_cec *cec, u32 reg, u32 val)
{}

static void tegra_cec_error_recovery(struct tegra_cec *cec)
{}

static irqreturn_t tegra_cec_irq_thread_handler(int irq, void *data)
{}

static irqreturn_t tegra_cec_irq_handler(int irq, void *data)
{}

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

static int tegra_cec_adap_log_addr(struct cec_adapter *adap, u8 logical_addr)
{}

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

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

static const struct cec_adap_ops tegra_cec_ops =;

static int tegra_cec_probe(struct platform_device *pdev)
{}

static void tegra_cec_remove(struct platform_device *pdev)
{}

#ifdef CONFIG_PM
static int tegra_cec_suspend(struct platform_device *pdev, pm_message_t state)
{}

static int tegra_cec_resume(struct platform_device *pdev)
{}
#endif

static const struct of_device_id tegra_cec_of_match[] =;

static struct platform_driver tegra_cec_driver =;

module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_AUTHOR();
MODULE_LICENSE();