forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/usb/host/xhci-debugfs.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0
1
+/* SPDX-License-Identifier: GPL-2.0 */
22 /*
33 * xhci-debugfs.h - xHCI debugfs interface
44 *
....@@ -80,7 +80,6 @@
8080 char name[DEBUGFS_NAMELEN];
8181 struct debugfs_regset32 regset;
8282 size_t nregs;
83
- struct dentry *parent;
8483 struct list_head list;
8584 };
8685
....@@ -92,6 +91,9 @@
9291 struct xhci_ep_priv {
9392 char name[DEBUGFS_NAMELEN];
9493 struct dentry *root;
94
+ struct xhci_stream_info *stream_info;
95
+ struct xhci_ring *show_ring;
96
+ unsigned int stream_id;
9597 };
9698
9799 struct xhci_slot_priv {
....@@ -114,6 +116,9 @@
114116 void xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci,
115117 struct xhci_virt_device *virt_dev,
116118 int ep_index);
119
+void xhci_debugfs_create_stream_files(struct xhci_hcd *xhci,
120
+ struct xhci_virt_device *virt_dev,
121
+ int ep_index);
117122 #else
118123 static inline void xhci_debugfs_init(struct xhci_hcd *xhci) { }
119124 static inline void xhci_debugfs_exit(struct xhci_hcd *xhci) { }
....@@ -129,6 +134,10 @@
129134 xhci_debugfs_remove_endpoint(struct xhci_hcd *xhci,
130135 struct xhci_virt_device *virt_dev,
131136 int ep_index) { }
137
+static inline void
138
+xhci_debugfs_create_stream_files(struct xhci_hcd *xhci,
139
+ struct xhci_virt_device *virt_dev,
140
+ int ep_index) { }
132141 #endif /* CONFIG_DEBUG_FS */
133142
134143 #endif /* __LINUX_XHCI_DEBUGFS_H */