import PULS_20160108
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / arch / arm / mach-mt8127 / include / mach / mt_bt.h
1 /* linux/include/asm-arm/arch-mt6516/mt6516_bt.h
2 *
3 * Bluetooth Machine Related Functions & Configurations
4 *
5 * Copyright (C) 2008,2009 MediaTek <www.mediatek.com>
6 * Authors: JinKwan Huang <jk.huang@mediatek.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 #ifndef __ARCH_ARM_MACH_MT6573_INCLUDE_MACHINE_MT6573_BT_H
24 #define __ARCH_ARM_MACH_MT6573_INCLUDE_MACHINE_MT6573_BT_H
25
26 #include <linux/types.h>
27 #include <linux/rfkill.h>
28
29 #define MT_BT_OK (0)
30 #define MT_BT_FAIL (-1)
31
32 typedef void (*btpm_handler_t)(void*); /* external irq handler */
33
34 extern void mt_bt_power_on(void);
35 extern void mt_bt_power_off(void);
36 extern int mt_bt_suspend(pm_message_t state);
37 extern int mt_bt_resume(pm_message_t state);
38
39 extern void mt_bt_eirq_handler(void* par);
40 extern void mt_bt_pm_init(void* hdev);
41 extern void mt_bt_pm_deinit(void* hdev);
42
43 extern void mt_bt_enable_irq(void);
44 extern void mt_bt_disable_irq(void);
45
46 #endif
47