diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2006-07-06 06:38:46 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2006-09-28 21:01:25 -0400 |
commit | b219e3ac66183fc9771b94af931fb5fd41d586ec (patch) | |
tree | 671a6a553c6744fce2eb35c6508249cbc616c326 /include/net/bluetooth | |
parent | 4d0eb0049ce94101f7f169f89216ba58475219e2 (diff) |
[Bluetooth] Integrate low-level connections into the driver model
This patch integrates the low-level connections (ACL and SCO) into the
driver model. Every connection is presented as device with the parent
set to its host controller device.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'include/net/bluetooth')
-rw-r--r-- | include/net/bluetooth/hci_core.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/net/bluetooth/hci_core.h b/include/net/bluetooth/hci_core.h index d84855fe7336..263e42b68e8d 100644 --- a/include/net/bluetooth/hci_core.h +++ b/include/net/bluetooth/hci_core.h | |||
@@ -165,6 +165,10 @@ struct hci_conn { | |||
165 | struct timer_list disc_timer; | 165 | struct timer_list disc_timer; |
166 | struct timer_list idle_timer; | 166 | struct timer_list idle_timer; |
167 | 167 | ||
168 | struct work_struct work; | ||
169 | |||
170 | struct device dev; | ||
171 | |||
168 | struct hci_dev *hdev; | 172 | struct hci_dev *hdev; |
169 | void *l2cap_data; | 173 | void *l2cap_data; |
170 | void *sco_data; | 174 | void *sco_data; |
@@ -412,6 +416,8 @@ static inline int hci_recv_frame(struct sk_buff *skb) | |||
412 | 416 | ||
413 | int hci_register_sysfs(struct hci_dev *hdev); | 417 | int hci_register_sysfs(struct hci_dev *hdev); |
414 | void hci_unregister_sysfs(struct hci_dev *hdev); | 418 | void hci_unregister_sysfs(struct hci_dev *hdev); |
419 | void hci_conn_add_sysfs(struct hci_conn *conn); | ||
420 | void hci_conn_del_sysfs(struct hci_conn *conn); | ||
415 | 421 | ||
416 | #define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->parent = (pdev)) | 422 | #define SET_HCIDEV_DEV(hdev, pdev) ((hdev)->parent = (pdev)) |
417 | 423 | ||