• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * include/linux/amlogic/media/vout/hdmi_tx/hdmi_tx_notify.h
3  *
4  * Copyright (C) 2017 Amlogic, Inc. All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program is distributed in the hope that it will be useful, but WITHOUT
12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
14  * more details.
15  *
16  */
17 
18 #ifndef __HDMI_NOTIFY_H__
19 #define __HDMI_NOTIFY_H__
20 
21 #include <linux/notifier.h>
22 
23 #define HDMITX_PLUG			1
24 #define HDMITX_UNPLUG			2
25 #define HDMITX_PHY_ADDR_VALID		3
26 
27 #ifdef CONFIG_AMLOGIC_HDMITX
28 void hdmitx_event_notify(unsigned long state, void *arg);
29 int hdmitx_event_notifier_regist(struct notifier_block *nb);
30 int hdmitx_event_notifier_unregist(struct notifier_block *nb);
31 #endif
32 #endif
33