162306a36Sopenharmony_ci/*
262306a36Sopenharmony_ci   BlueZ - Bluetooth protocol stack for Linux
362306a36Sopenharmony_ci   Copyright (C) 2000-2001 Qualcomm Incorporated
462306a36Sopenharmony_ci
562306a36Sopenharmony_ci   Written 2000,2001 by Maxim Krasnyansky <maxk@qualcomm.com>
662306a36Sopenharmony_ci
762306a36Sopenharmony_ci   This program is free software; you can redistribute it and/or modify
862306a36Sopenharmony_ci   it under the terms of the GNU General Public License version 2 as
962306a36Sopenharmony_ci   published by the Free Software Foundation;
1062306a36Sopenharmony_ci
1162306a36Sopenharmony_ci   THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1262306a36Sopenharmony_ci   OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1362306a36Sopenharmony_ci   FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
1462306a36Sopenharmony_ci   IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
1562306a36Sopenharmony_ci   CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
1662306a36Sopenharmony_ci   WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1762306a36Sopenharmony_ci   ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1862306a36Sopenharmony_ci   OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci   ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
2162306a36Sopenharmony_ci   COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
2262306a36Sopenharmony_ci   SOFTWARE IS DISCLAIMED.
2362306a36Sopenharmony_ci*/
2462306a36Sopenharmony_ci
2562306a36Sopenharmony_ci#ifndef __SCO_H
2662306a36Sopenharmony_ci#define __SCO_H
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci/* SCO defaults */
2962306a36Sopenharmony_ci#define SCO_DEFAULT_MTU		500
3062306a36Sopenharmony_ci
3162306a36Sopenharmony_ci/* SCO socket address */
3262306a36Sopenharmony_cistruct sockaddr_sco {
3362306a36Sopenharmony_ci	sa_family_t	sco_family;
3462306a36Sopenharmony_ci	bdaddr_t	sco_bdaddr;
3562306a36Sopenharmony_ci};
3662306a36Sopenharmony_ci
3762306a36Sopenharmony_ci/* SCO socket options */
3862306a36Sopenharmony_ci#define SCO_OPTIONS	0x01
3962306a36Sopenharmony_cistruct sco_options {
4062306a36Sopenharmony_ci	__u16 mtu;
4162306a36Sopenharmony_ci};
4262306a36Sopenharmony_ci
4362306a36Sopenharmony_ci#define SCO_CONNINFO	0x02
4462306a36Sopenharmony_cistruct sco_conninfo {
4562306a36Sopenharmony_ci	__u16 hci_handle;
4662306a36Sopenharmony_ci	__u8  dev_class[3];
4762306a36Sopenharmony_ci};
4862306a36Sopenharmony_ci
4962306a36Sopenharmony_ci#endif /* __SCO_H */
50