diff options
author | Bing Zhao <bzhao@marvell.com> | 2009-06-02 17:29:37 -0400 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-08-22 17:25:32 -0400 |
commit | fb784f0508d5aa39a23e72879a8dfb517c6f6e7f (patch) | |
tree | f8e105589bc592467e8bb306aadade361b4f5412 /drivers/bluetooth/btmrvl_drv.h | |
parent | 789221ecc870117b77e354d488d5d29f15410de8 (diff) |
Bluetooth: Add debugfs support to btmrvl driver
/debug/btmrvl/config/
/debug/btmrvl/status/
See Documentation/btmrvl.txt for details.
This patch incorporates a lot of comments given by
Nicolas Pitre <nico@marvell.com>. Many thanks to Nicolas Pitre.
Signed-off-by: Rahul Tank <rahult@marvell.com>
Signed-off-by: Bing Zhao <bzhao@marvell.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'drivers/bluetooth/btmrvl_drv.h')
-rw-r--r-- | drivers/bluetooth/btmrvl_drv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/bluetooth/btmrvl_drv.h b/drivers/bluetooth/btmrvl_drv.h index 9ad71f48110d..7a12f6883bf0 100644 --- a/drivers/bluetooth/btmrvl_drv.h +++ b/drivers/bluetooth/btmrvl_drv.h | |||
@@ -79,6 +79,9 @@ struct btmrvl_private { | |||
79 | u8 *payload, u16 nb); | 79 | u8 *payload, u16 nb); |
80 | int (*hw_wakeup_firmware) (struct btmrvl_private *priv); | 80 | int (*hw_wakeup_firmware) (struct btmrvl_private *priv); |
81 | spinlock_t driver_lock; /* spinlock used by driver */ | 81 | spinlock_t driver_lock; /* spinlock used by driver */ |
82 | #ifdef CONFIG_DEBUG_FS | ||
83 | void *debugfs_data; | ||
84 | #endif | ||
82 | }; | 85 | }; |
83 | 86 | ||
84 | #define MRVL_VENDOR_PKT 0xFE | 87 | #define MRVL_VENDOR_PKT 0xFE |
@@ -135,4 +138,9 @@ int btmrvl_process_event(struct btmrvl_private *priv, struct sk_buff *skb); | |||
135 | int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd); | 138 | int btmrvl_send_module_cfg_cmd(struct btmrvl_private *priv, int subcmd); |
136 | int btmrvl_prepare_command(struct btmrvl_private *priv); | 139 | int btmrvl_prepare_command(struct btmrvl_private *priv); |
137 | 140 | ||
141 | #ifdef CONFIG_DEBUG_FS | ||
142 | void btmrvl_debugfs_init(struct hci_dev *hdev); | ||
143 | void btmrvl_debugfs_remove(struct hci_dev *hdev); | ||
144 | #endif | ||
145 | |||
138 | #endif /* _BTMRVL_DRV_H_ */ | 146 | #endif /* _BTMRVL_DRV_H_ */ |