Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
4c9eb495
Commit
4c9eb495
authored
Oct 13, 2002
by
Maksim Krasnyanskiy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support for suspend/resume interface for the HCI devices.
parent
63d902f7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
0 deletions
+23
-0
include/net/bluetooth/hci.h
include/net/bluetooth/hci.h
+2
-0
include/net/bluetooth/hci_core.h
include/net/bluetooth/hci_core.h
+2
-0
net/bluetooth/hci_core.c
net/bluetooth/hci_core.c
+16
-0
net/bluetooth/syms.c
net/bluetooth/syms.c
+3
-0
No files found.
include/net/bluetooth/hci.h
View file @
4c9eb495
...
...
@@ -39,6 +39,8 @@
#define HCI_DEV_UNREG 2
#define HCI_DEV_UP 3
#define HCI_DEV_DOWN 4
#define HCI_DEV_SUSPEND 5
#define HCI_DEV_RESUME 6
/* HCI device types */
#define HCI_VHCI 0
...
...
include/net/bluetooth/hci_core.h
View file @
4c9eb495
...
...
@@ -302,6 +302,8 @@ struct hci_dev *hci_dev_get(int index);
struct
hci_dev
*
hci_get_route
(
bdaddr_t
*
src
,
bdaddr_t
*
dst
);
int
hci_register_dev
(
struct
hci_dev
*
hdev
);
int
hci_unregister_dev
(
struct
hci_dev
*
hdev
);
int
hci_suspend_dev
(
struct
hci_dev
*
hdev
);
int
hci_resume_dev
(
struct
hci_dev
*
hdev
);
int
hci_dev_open
(
__u16
dev
);
int
hci_dev_close
(
__u16
dev
);
int
hci_dev_reset
(
__u16
dev
);
...
...
net/bluetooth/hci_core.c
View file @
4c9eb495
...
...
@@ -863,6 +863,22 @@ int hci_unregister_dev(struct hci_dev *hdev)
return
0
;
}
/* Suspend HCI device */
int
hci_suspend_dev
(
struct
hci_dev
*
hdev
)
{
hci_notify
(
hdev
,
HCI_DEV_SUSPEND
);
hci_run_hotplug
(
hdev
->
name
,
"suspend"
);
return
0
;
}
/* Resume HCI device */
int
hci_resume_dev
(
struct
hci_dev
*
hdev
)
{
hci_notify
(
hdev
,
HCI_DEV_RESUME
);
hci_run_hotplug
(
hdev
->
name
,
"resume"
);
return
0
;
}
/* Receive frame from HCI drivers */
int
hci_recv_frame
(
struct
sk_buff
*
skb
)
{
...
...
net/bluetooth/syms.c
View file @
4c9eb495
...
...
@@ -44,6 +44,9 @@
/* HCI Core */
EXPORT_SYMBOL
(
hci_register_dev
);
EXPORT_SYMBOL
(
hci_unregister_dev
);
EXPORT_SYMBOL
(
hci_suspend_dev
);
EXPORT_SYMBOL
(
hci_resume_dev
);
EXPORT_SYMBOL
(
hci_register_proto
);
EXPORT_SYMBOL
(
hci_unregister_proto
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment