1 /* linux/include/asm-arm/arch-mt6516/mt6516_bt.h
3 * Bluetooth Machine Related Functions & Configurations
5 * Copyright (C) 2008,2009 MediaTek <www.mediatek.com>
6 * Authors: JinKwan Huang <jk.huang@mediatek.com>
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.
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.
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
23 #ifndef __ARCH_ARM_MACH_MT6573_INCLUDE_MACHINE_MT6573_BT_H
24 #define __ARCH_ARM_MACH_MT6573_INCLUDE_MACHINE_MT6573_BT_H
26 #include <linux/types.h>
27 #include <linux/rfkill.h>
30 #define MT_BT_FAIL (-1)
32 typedef void (*btpm_handler_t
)(void*); /* external irq handler */
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
);
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
);
43 extern void mt_bt_enable_irq(void);
44 extern void mt_bt_disable_irq(void);