?? bluetooth.h
字號(hào):
/* * bluetooth.h -- Linux kernel integration code for bluetooth stack * * Copyright (C) 2000, 2001 Axis Communications AB * * Author: Mattias Agren <mattias.agren@axis.com> * * 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, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * * Exceptionally, Axis Communications AB grants discretionary and * conditional permissions for additional use of the text contained * in the company's release of the AXIS OpenBT Stack under the * provisions set forth hereunder. * * Provided that, if you use the AXIS OpenBT Stack with other files, * that do not implement functionality as specified in the Bluetooth * System specification, to produce an executable, this does not by * itself cause the resulting executable to be covered by the GNU * General Public License. Your use of that executable is in no way * restricted on account of using the AXIS OpenBT Stack code with it. * * This exception does not however invalidate any other reasons why * the executable file might be covered by the provisions of the GNU * General Public License. * * $Id: bluetooth.h,v 1.46 2001/09/18 10:48:22 pkj Exp $x * */#ifndef BLUETOOTH_H#define BLUETOOTH_H#ifdef __KERNEL__#include <linux/config.h>#include <linux/bluetooth/btcommon.h>#else#include "btcommon.h"#endif/* glue functions */s32 bt_write_lower_driver(u8 *data, s32 len);#ifdef CONFIG_BLUETOOTH_SUPPORT_BCSPs32 bt_write_lower_driver_real(u8 *data, s32 len);#endifs32 bt_receive_top(u32 con_id, u8 *data, s32 len);void parse_event(u8 *event);s32 check_event(u8 event);/***********************************//* Init, shutdown and registration *//***********************************/#if !defined(MODULE) && !defined(__KERNEL__)s32 bt_init(void);#endifs32 bt_register_rfcomm(rfcomm_con *rfcomm, u8 dlci);s32 bt_unregister_rfcomm(s32 line);s32 bt_register_sdp(u8 line, u8 sdpID);s32 bt_unregister_sdp(s32 line);s32 bt_register_tty(struct tty_struct *tty);s32 bt_unregister_tty(struct tty_struct *tty, s32 line);s32 bt_registered(struct tty_struct *tty);void bt_shutdown(void);void bt_hangupline(s32 line);void bt_feedstack(void);void bt_wait_tx(s32 trim_delay);void bt_connect_ind(u32 con_id);void bt_disconnect_ind(u32 con_id);void bt_disconnect_cfm(u32 con_id, s32 status);/******************//* Misc functions *//******************/s32 bt_initiated(void);s32 bt_use_bcsp(s32 new_use_bcsp);s32 bt_dfu_mode(s32 new_dfu_mode);void bt_connect_cfm(u32 con_id, s32 status);s32 bt_sprint_status(u8 *buf);void bt_send_sdp_data_received(u8 line, u8 *data, int len);void bt_reset_phys_hw(void);/* Handles wakeup of failed blocking function calls */#ifdef __KERNEL__#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,4,0)void start_wq_timer(struct timer_list *wq_timer, u32 timeout, wait_queue_head_t *wq);#elsevoid start_wq_timer(struct timer_list *wq_timer, u32 timeout, struct wait_queue **wq);#endif /* LINUX_VERSION_CODE */void release_wq_timer(struct timer_list *wq_timer);#endif /* __KERNEL__ */#endif/****************** END OF FILE bluetooth.h *********************************/
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -