Path: blob/next/external/cache/sources/hcitools/lib/bluetooth/sco.h
18125 views
/*1*2* BlueZ - Bluetooth protocol stack for Linux3*4* Copyright (C) 2002-2003 Maxim Krasnyansky <[email protected]>5* Copyright (C) 2002-2010 Marcel Holtmann <[email protected]>6*7*8* This program is free software; you can redistribute it and/or modify9* it under the terms of the GNU General Public License as published by10* the Free Software Foundation; either version 2 of the License, or11* (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 of15* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the16* GNU General Public License for more details.17*18* You should have received a copy of the GNU General Public License19* along with this program; if not, write to the Free Software20* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA21*22*/2324#ifndef __SCO_H25#define __SCO_H2627#ifdef __cplusplus28extern "C" {29#endif3031/* SCO defaults */32#define SCO_DEFAULT_MTU 50033#define SCO_DEFAULT_FLUSH_TO 0xFFFF3435#define SCO_CONN_TIMEOUT (HZ * 40)36#define SCO_DISCONN_TIMEOUT (HZ * 2)37#define SCO_CONN_IDLE_TIMEOUT (HZ * 60)3839/* SCO socket address */40struct sockaddr_sco {41sa_family_t sco_family;42bdaddr_t sco_bdaddr;43};4445/* set/get sockopt defines */46#define SCO_OPTIONS 0x0147struct sco_options {48uint16_t mtu;49};5051#define SCO_CONNINFO 0x0252struct sco_conninfo {53uint16_t hci_handle;54uint8_t dev_class[3];55};5657#ifdef __cplusplus58}59#endif6061#endif /* __SCO_H */626364