diff options
author | Lukas Wunner <lukas@wunner.de> | 2018-01-10 10:32:10 -0500 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2018-01-10 13:00:13 -0500 |
commit | b7c2abac14e1fdf6136a8b54c6151ffe300b961b (patch) | |
tree | c05edba0c2b8cf76911fa2310af1ead4690a24c6 | |
parent | 4dc273306c16b04f696e8ab0e8bb4f6e238fe61b (diff) |
Bluetooth: hci_bcm: Document struct bcm_device
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
-rw-r--r-- | drivers/bluetooth/hci_bcm.c | 27 |
1 files changed, 25 insertions, 2 deletions
diff --git a/drivers/bluetooth/hci_bcm.c b/drivers/bluetooth/hci_bcm.c index c893c597fead..3c1282a9fcd4 100644 --- a/drivers/bluetooth/hci_bcm.c +++ b/drivers/bluetooth/hci_bcm.c | |||
@@ -52,7 +52,30 @@ | |||
52 | 52 | ||
53 | #define BCM_AUTOSUSPEND_DELAY 5000 /* default autosleep delay */ | 53 | #define BCM_AUTOSUSPEND_DELAY 5000 /* default autosleep delay */ |
54 | 54 | ||
55 | /* device driver resources */ | 55 | /** |
56 | * struct bcm_device - device driver resources | ||
57 | * @serdev_hu: HCI UART controller struct | ||
58 | * @list: bcm_device_list node | ||
59 | * @dev: physical UART slave | ||
60 | * @name: device name logged by bt_dev_*() functions | ||
61 | * @device_wakeup: BT_WAKE pin, | ||
62 | * assert = Bluetooth device must wake up or remain awake, | ||
63 | * deassert = Bluetooth device may sleep when sleep criteria are met | ||
64 | * @shutdown: BT_REG_ON pin, | ||
65 | * power up or power down Bluetooth device internal regulators | ||
66 | * @clk: clock used by Bluetooth device | ||
67 | * @clk_enabled: whether @clk is prepared and enabled | ||
68 | * @init_speed: default baudrate of Bluetooth device; | ||
69 | * the host UART is initially set to this baudrate so that | ||
70 | * it can configure the Bluetooth device for @oper_speed | ||
71 | * @oper_speed: preferred baudrate of Bluetooth device; | ||
72 | * set to 0 if @init_speed is already the preferred baudrate | ||
73 | * @irq: interrupt triggered by HOST_WAKE_BT pin | ||
74 | * @irq_active_low: whether @irq is active low | ||
75 | * @hu: pointer to HCI UART controller struct, | ||
76 | * used to disable flow control during runtime suspend and system sleep | ||
77 | * @is_suspended: whether flow control is currently disabled | ||
78 | */ | ||
56 | struct bcm_device { | 79 | struct bcm_device { |
57 | /* Must be the first member, hci_serdev.c expects this. */ | 80 | /* Must be the first member, hci_serdev.c expects this. */ |
58 | struct hci_uart serdev_hu; | 81 | struct hci_uart serdev_hu; |
@@ -74,7 +97,7 @@ struct bcm_device { | |||
74 | 97 | ||
75 | #ifdef CONFIG_PM | 98 | #ifdef CONFIG_PM |
76 | struct hci_uart *hu; | 99 | struct hci_uart *hu; |
77 | bool is_suspended; /* suspend/resume flag */ | 100 | bool is_suspended; |
78 | #endif | 101 | #endif |
79 | }; | 102 | }; |
80 | 103 | ||