summaryrefslogtreecommitdiff
path: root/drivers/video/wmt/com-cec.h
diff options
context:
space:
mode:
authorSrikant Patnaik2015-01-11 12:28:04 +0530
committerSrikant Patnaik2015-01-11 12:28:04 +0530
commit871480933a1c28f8a9fed4c4d34d06c439a7a422 (patch)
tree8718f573808810c2a1e8cb8fb6ac469093ca2784 /drivers/video/wmt/com-cec.h
parent9d40ac5867b9aefe0722bc1f110b965ff294d30d (diff)
downloadFOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.gz
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.tar.bz2
FOSSEE-netbook-kernel-source-871480933a1c28f8a9fed4c4d34d06c439a7a422.zip
Moved, renamed, and deleted files
The original directory structure was scattered and unorganized. Changes are basically to make it look like kernel structure.
Diffstat (limited to 'drivers/video/wmt/com-cec.h')
-rwxr-xr-xdrivers/video/wmt/com-cec.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/drivers/video/wmt/com-cec.h b/drivers/video/wmt/com-cec.h
new file mode 100755
index 00000000..8020aec5
--- /dev/null
+++ b/drivers/video/wmt/com-cec.h
@@ -0,0 +1,65 @@
+/*++
+ * 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
+
+struct wmt_cec_msg {
+ char msglen;
+ char msgdata[MAX_MSG_BYTE];
+};
+#define wmt_cec_msg_t struct wmt_cec_msg
+
+struct wmt_phy_addr {
+ unsigned int phy_addr;
+};
+#define wmt_phy_addr_t struct wmt_phy_addr
+
+#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