Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * HDMI header definition for OMAP4 HDMI CEC IP
0004  *
0005  * Copyright 2016-2017 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
0006  */
0007 
0008 #ifndef _HDMI4_CEC_H_
0009 #define _HDMI4_CEC_H_
0010 
0011 struct hdmi_core_data;
0012 struct hdmi_wp_data;
0013 struct platform_device;
0014 
0015 /* HDMI CEC funcs */
0016 #ifdef CONFIG_OMAP4_DSS_HDMI_CEC
0017 void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa);
0018 void hdmi4_cec_irq(struct hdmi_core_data *core);
0019 int hdmi4_cec_init(struct platform_device *pdev, struct hdmi_core_data *core,
0020           struct hdmi_wp_data *wp);
0021 void hdmi4_cec_uninit(struct hdmi_core_data *core);
0022 #else
0023 static inline void hdmi4_cec_set_phys_addr(struct hdmi_core_data *core, u16 pa)
0024 {
0025 }
0026 
0027 static inline void hdmi4_cec_irq(struct hdmi_core_data *core)
0028 {
0029 }
0030 
0031 static inline int hdmi4_cec_init(struct platform_device *pdev,
0032                 struct hdmi_core_data *core,
0033                 struct hdmi_wp_data *wp)
0034 {
0035     return 0;
0036 }
0037 
0038 static inline void hdmi4_cec_uninit(struct hdmi_core_data *core)
0039 {
0040 }
0041 #endif
0042 
0043 #endif