xref: /linux/net/bluetooth/hci_debugfs.h (revision 03ab8e6297acd1bc0eedaa050e2a1635c576fd11)
160c5f5fbSMarcel Holtmann /*
260c5f5fbSMarcel Holtmann    BlueZ - Bluetooth protocol stack for Linux
360c5f5fbSMarcel Holtmann    Copyright (C) 2014 Intel Corporation
460c5f5fbSMarcel Holtmann 
560c5f5fbSMarcel Holtmann    This program is free software; you can redistribute it and/or modify
660c5f5fbSMarcel Holtmann    it under the terms of the GNU General Public License version 2 as
760c5f5fbSMarcel Holtmann    published by the Free Software Foundation;
860c5f5fbSMarcel Holtmann 
960c5f5fbSMarcel Holtmann    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
1060c5f5fbSMarcel Holtmann    OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1160c5f5fbSMarcel Holtmann    FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS.
1260c5f5fbSMarcel Holtmann    IN NO EVENT SHALL THE COPYRIGHT HOLDER(S) AND AUTHOR(S) BE LIABLE FOR ANY
1360c5f5fbSMarcel Holtmann    CLAIM, OR ANY SPECIAL INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES
1460c5f5fbSMarcel Holtmann    WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
1560c5f5fbSMarcel Holtmann    ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
1660c5f5fbSMarcel Holtmann    OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1760c5f5fbSMarcel Holtmann 
1860c5f5fbSMarcel Holtmann    ALL LIABILITY, INCLUDING LIABILITY FOR INFRINGEMENT OF ANY PATENTS,
1960c5f5fbSMarcel Holtmann    COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS, RELATING TO USE OF THIS
2060c5f5fbSMarcel Holtmann    SOFTWARE IS DISCLAIMED.
2160c5f5fbSMarcel Holtmann */
2260c5f5fbSMarcel Holtmann 
23035a07d5SMarcel Holtmann #if IS_ENABLED(CONFIG_BT_DEBUGFS)
24035a07d5SMarcel Holtmann 
2560c5f5fbSMarcel Holtmann void hci_debugfs_create_common(struct hci_dev *hdev);
2660c5f5fbSMarcel Holtmann void hci_debugfs_create_bredr(struct hci_dev *hdev);
2760c5f5fbSMarcel Holtmann void hci_debugfs_create_le(struct hci_dev *hdev);
2823b9ceb7SMarcel Holtmann void hci_debugfs_create_conn(struct hci_conn *conn);
29*8331dc48SLuiz Augusto von Dentz void hci_debugfs_create_basic(struct hci_dev *hdev);
30035a07d5SMarcel Holtmann 
31035a07d5SMarcel Holtmann #else
32035a07d5SMarcel Holtmann 
hci_debugfs_create_common(struct hci_dev * hdev)33035a07d5SMarcel Holtmann static inline void hci_debugfs_create_common(struct hci_dev *hdev)
34035a07d5SMarcel Holtmann {
35035a07d5SMarcel Holtmann }
36035a07d5SMarcel Holtmann 
hci_debugfs_create_bredr(struct hci_dev * hdev)37035a07d5SMarcel Holtmann static inline void hci_debugfs_create_bredr(struct hci_dev *hdev)
38035a07d5SMarcel Holtmann {
39035a07d5SMarcel Holtmann }
40035a07d5SMarcel Holtmann 
hci_debugfs_create_le(struct hci_dev * hdev)41035a07d5SMarcel Holtmann static inline void hci_debugfs_create_le(struct hci_dev *hdev)
42035a07d5SMarcel Holtmann {
43035a07d5SMarcel Holtmann }
44035a07d5SMarcel Holtmann 
hci_debugfs_create_conn(struct hci_conn * conn)45035a07d5SMarcel Holtmann static inline void hci_debugfs_create_conn(struct hci_conn *conn)
46035a07d5SMarcel Holtmann {
47035a07d5SMarcel Holtmann }
48035a07d5SMarcel Holtmann 
hci_debugfs_create_basic(struct hci_dev * hdev)49*8331dc48SLuiz Augusto von Dentz static inline void hci_debugfs_create_basic(struct hci_dev *hdev)
50*8331dc48SLuiz Augusto von Dentz {
51*8331dc48SLuiz Augusto von Dentz }
52*8331dc48SLuiz Augusto von Dentz 
53035a07d5SMarcel Holtmann #endif
54