]> Git Repo - linux.git/blob - drivers/gpu/drm/omapdrm/dss/hdmi4_cec.h
Linux 6.14-rc3
[linux.git] / drivers / gpu / drm / omapdrm / dss / hdmi4_cec.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * HDMI header definition for OMAP4 HDMI CEC IP
4  *
5  * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
6  */
7
8 #ifndef _HDMI4_CEC_H_
9 #define _HDMI4_CEC_H_
10
11 struct hdmi_core_data;
12 struct hdmi_wp_data;
13 struct platform_device;
14
15 /* HDMI CEC funcs */
16 #ifdef CONFIG_OMAP4_DSS_HDMI_CEC
17 void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
18 void hdmi4_cec_irq(struct hdmi_core_data *core);
19 int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
20                   struct hdmi_wp_data *wp);
21 void hdmi4_cec_uninit(struct hdmi_core_data *core);
22 #else
23 static inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
24 {
25 }
26
27 static inline void hdmi4_cec_irq(struct hdmi_core_data *core)
28 {
29 }
30
31 static inline int hdmi4_cec_init(struct platform_device *pdev,
32                                 struct hdmi_core_data *core,
33                                 struct hdmi_wp_data *wp)
34 {
35         return 0;
36 }
37
38 static inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
39 {
40 }
41 #endif
42
43 #endif
This page took 0.033292 seconds and 4 git commands to generate.