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
|
/*++
* linux/drivers/video/wmt/com-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
--*/
#ifndef COM_CEC_H
#define COM_CEC_H
#if defined(__cplusplus)
extern "C" {
#endif
/* define for notify AP */
#define USER_PID 1
#define WP_PID 2
#define USER_PIX_MAX 2
#define NETLINK_CEC_TEST (MAX_LINKS - 2)
#define DEVICE_RX_DATA 0
#define DEVICE_PLUG_IN 2
#define DEVICE_PLUG_OUT 3
#define DEVICE_STREAM 4
#define MAX_MSG_BYTE 16
#define MSG_ABORT 0xff
typedef struct wmt_cec_msg {
char msglen;
char msgdata[MAX_MSG_BYTE];
} wmt_cec_msg_t;
typedef struct wmt_phy_addr {
unsigned int phy_addr;
} wmt_phy_addr_t;
#define WMT_CEC_IOC_MAGIC 'c'
#define WMT_CEC_IOC_MAXNR 3
#define CECIO_TX_DATA _IOW(WMT_CEC_IOC_MAGIC, 0, wmt_cec_msg_t)
#define CECIO_TX_LOGADDR _IO(WMT_CEC_IOC_MAGIC, 1)
#define CECIO_RX_PHYADDR _IOR(WMT_CEC_IOC_MAGIC, 2, wmt_phy_addr_t)
#if defined(__cplusplus)
}
#endif
#endif
|