summaryrefslogtreecommitdiff
path: root/drivers/video/wmt/cec.h
blob: d11d27b3c755b87c828bb3e5a861e07b4ceeed78 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/*++
 * linux/drivers/video/wmt/cec.h
 * WonderMedia HDMI CEC driver
 *
 * Copyright c 2013  WonderMedia  Technologies, Inc.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *
 * WonderMedia Technologies, Inc.
 * 4F, 533, Chung-Cheng Road, Hsin-Tien, Taipei 231, R.O.C
--*/

#include "vpp-osif.h"
#include "./hw/wmt-vpp-hw.h"
#include "vpp.h"
#include "com-cec.h"

#ifdef WMT_FTBLK_CEC

#ifndef CEC_H
#define CEC_H

#ifdef __cplusplus
extern "C" {
#endif

#ifdef CEC_C
#define EXTERN
#else
#define EXTERN extern
#endif

EXTERN void wmt_cec_tx_data(char *buf, int size);
EXTERN void wmt_cec_clr_int(int sts);
EXTERN int wmt_cec_get_int(void);

EXTERN void wmt_cec_enable_loopback(int enable);
EXTERN void wmt_cec_tx_data(char *buf, int size);
EXTERN int wmt_cec_rx_data(char *buf);
EXTERN void wmt_cec_hotplug_notify(int plug_status);
EXTERN void wmt_cec_do_hotplug_notify(int no, int plug_status);

EXTERN void wmt_cec_init_hw(void);
EXTERN void wmt_cec_set_logical_addr(int no, char addr, int enable);
EXTERN void wmt_cec_rx_enable(int enable);
EXTERN void wmt_cec_do_suspend(void);
EXTERN void wmt_cec_do_resume(void);

#undef EXTERN
#ifdef __cplusplus
}
#endif
#endif /* CEC_H */
#endif /* WMT_FTBLK_CEC */