xref: /OK3568_Linux_fs/kernel/net/bluetooth/hci_debugfs.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /*
2*4882a593Smuzhiyun    BlueZ - Bluetooth protocol stack for Linux
3*4882a593Smuzhiyun    Copyright (C) 2014 Intel Corporation
4*4882a593Smuzhiyun 
5*4882a593Smuzhiyun    This program is free software; you can redistribute it and/or modify
6*4882a593Smuzhiyun    it under the terms of the GNU General Public License version 2 as
7*4882a593Smuzhiyun    published by the Free Software Foundation;
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
10*4882a593Smuzhiyun    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
11*4882a593Smuzhiyun    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
12*4882a593Smuzhiyun    IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
13*4882a593Smuzhiyun    CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
14*4882a593Smuzhiyun    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
15*4882a593Smuzhiyun    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
16*4882a593Smuzhiyun    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
17*4882a593Smuzhiyun 
18*4882a593Smuzhiyun    ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
19*4882a593Smuzhiyun    COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
20*4882a593Smuzhiyun    SOFTWARE IS DISCLAIMED.
21*4882a593Smuzhiyun */
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #if IS_ENABLED(CONFIG_BT_DEBUGFS)
24*4882a593Smuzhiyun 
25*4882a593Smuzhiyun void hci_debugfs_create_common(struct hci_dev *hdev);
26*4882a593Smuzhiyun void hci_debugfs_create_bredr(struct hci_dev *hdev);
27*4882a593Smuzhiyun void hci_debugfs_create_le(struct hci_dev *hdev);
28*4882a593Smuzhiyun void hci_debugfs_create_conn(struct hci_conn *conn);
29*4882a593Smuzhiyun 
30*4882a593Smuzhiyun #else
31*4882a593Smuzhiyun 
hci_debugfs_create_common(struct hci_dev * hdev)32*4882a593Smuzhiyun static inline void hci_debugfs_create_common(struct hci_dev *hdev)
33*4882a593Smuzhiyun {
34*4882a593Smuzhiyun }
35*4882a593Smuzhiyun 
hci_debugfs_create_bredr(struct hci_dev * hdev)36*4882a593Smuzhiyun static inline void hci_debugfs_create_bredr(struct hci_dev *hdev)
37*4882a593Smuzhiyun {
38*4882a593Smuzhiyun }
39*4882a593Smuzhiyun 
hci_debugfs_create_le(struct hci_dev * hdev)40*4882a593Smuzhiyun static inline void hci_debugfs_create_le(struct hci_dev *hdev)
41*4882a593Smuzhiyun {
42*4882a593Smuzhiyun }
43*4882a593Smuzhiyun 
hci_debugfs_create_conn(struct hci_conn * conn)44*4882a593Smuzhiyun static inline void hci_debugfs_create_conn(struct hci_conn *conn)
45*4882a593Smuzhiyun {
46*4882a593Smuzhiyun }
47*4882a593Smuzhiyun 
48*4882a593Smuzhiyun #endif
49