X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=include%2Fnet%2Fbluetooth%2Fsco.h;h=57c8a40760872e49deb598e1ffe758ebee5afd88;hb=60cbc8c9108be5542b8b7b9e16231fdee062f6d9;hp=7f2869aa32058e7c9a4ec271f543b87548bd5676;hpb=655402d41742cc8e490f4357745408d361bdd2d4;p=kernel%2Flinux-3.0.git diff --git a/include/net/bluetooth/sco.h b/include/net/bluetooth/sco.h index 7f2869a..57c8a40 100644 --- a/include/net/bluetooth/sco.h +++ b/include/net/bluetooth/sco.h @@ -22,27 +22,16 @@ SOFTWARE IS DISCLAIMED. */ -#ifdef CONFIG_BT_MGMT -#include "sco_mgmt.h" -#elif defined(CONFIG_BT_TIZEN) -#include "tizen/sco.h" -#else #ifndef __SCO_H #define __SCO_H /* SCO defaults */ #define SCO_DEFAULT_MTU 500 -#define SCO_DEFAULT_FLUSH_TO 0xFFFF - -#define SCO_CONN_TIMEOUT (HZ * 40) -#define SCO_DISCONN_TIMEOUT (HZ * 2) -#define SCO_CONN_IDLE_TIMEOUT (HZ * 60) /* SCO socket address */ struct sockaddr_sco { sa_family_t sco_family; bdaddr_t sco_bdaddr; - __u16 sco_pkt_type; }; /* SCO socket options */ @@ -57,31 +46,10 @@ struct sco_conninfo { __u8 dev_class[3]; }; -/* ---- SCO connections ---- */ -struct sco_conn { - struct hci_conn *hcon; - - bdaddr_t *dst; - bdaddr_t *src; - - spinlock_t lock; - struct sock *sk; - - unsigned int mtu; -}; - -#define sco_conn_lock(c) spin_lock(&c->lock); -#define sco_conn_unlock(c) spin_unlock(&c->lock); - -/* ----- SCO socket info ----- */ -#define sco_pi(sk) ((struct sco_pinfo *) sk) - -struct sco_pinfo { - struct bt_sock bt; - __u16 pkt_type; - - struct sco_conn *conn; -}; - +#ifdef CONFIG_TIZEN_WIP +void sco_connect_set_gw_nbc(struct hci_dev *hdev); +void sco_connect_set_gw_wbc(struct hci_dev *hdev); +void sco_connect_set_nbc(struct hci_dev *hdev); +void sco_connect_set_wbc(struct hci_dev *hdev); +#endif #endif /* __SCO_H */ -#endif /* CONFIG_BT_MGMT */