drivers/bluetooth/hci_bcm4377.c
Source file repositories/reference/linux-study-clean/drivers/bluetooth/hci_bcm4377.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/bluetooth/hci_bcm4377.c- Extension
.c- Size
- 75059 bytes
- Lines
- 2563
- Domain
- Driver Families
- Bucket
- drivers/bluetooth
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/async.hlinux/bitfield.hlinux/completion.hlinux/dma-mapping.hlinux/dmi.hlinux/firmware.hlinux/module.hlinux/msi.hlinux/of.hlinux/pci.hlinux/printk.hlinux/unaligned.hnet/bluetooth/bluetooth.hnet/bluetooth/hci_core.h
Detected Declarations
struct bcm4377_xfer_ring_entrystruct bcm4377_completion_ring_entrystruct bcm4377_create_completion_ring_msgstruct bcm4377_destroy_completion_ring_msgstruct bcm4377_create_transfer_ring_msgstruct bcm4377_destroy_transfer_ring_msgstruct bcm4377_contextstruct bcm4378_hci_send_calibration_cmdstruct bcm4378_hci_send_ptb_cmdstruct bcm4377_ring_statestruct bcm4377_transfer_ringstruct bcm4377_completion_ringstruct bcm4377_datastruct bcm4377_hwstruct bcm4377_dataenum bcm4377_chipenum bcm4377_otp_params_typeenum bcm4377_transfer_ring_idenum bcm4377_completion_ring_idenum bcm4377_doorbellenum bcm4377_control_message_typefunction bcm4377_ring_doorbellfunction bcm4377_extract_msgidfunction bcm4377_handle_eventfunction bcm4377_handle_ackfunction bcm4377_handle_completionfunction bcm4377_poll_completion_ringfunction bcm4377_irqfunction bcm4377_enqueuefunction bcm4377_create_completion_ringfunction bcm4377_destroy_completion_ringfunction bcm4377_create_transfer_ringfunction bcm4377_destroy_transfer_ringfunction __bcm4378_send_calibration_chunkfunction __bcm4378_send_calibrationfunction bcm4378_send_calibrationfunction bcm4387_send_calibrationfunction bcm4388_send_calibrationfunction bcm4377_send_ptbfunction bcm4378_send_ptb_chunkfunction bcm4378_send_ptbfunction bcm4377_hci_openfunction bcm4377_hci_closefunction bcm4377_is_valid_bdaddrfunction bcm4377_check_bdaddrfunction bcm4377_hci_setupfunction bcm4377_hci_send_framefunction bcm4377_hci_set_bdaddr
Annotated Snippet
static struct pci_driver bcm4377_pci_driver = {
.name = "hci_bcm4377",
.id_table = bcm4377_devid_table,
.probe = bcm4377_probe,
.driver.pm = &bcm4377_ops,
};
module_pci_driver(bcm4377_pci_driver);
MODULE_AUTHOR("Sven Peter <sven@svenpeter.dev>");
MODULE_DESCRIPTION("Bluetooth support for Broadcom 4377/4378/4387/4388 devices");
MODULE_LICENSE("Dual MIT/GPL");
MODULE_FIRMWARE("brcm/brcmbt4377*.bin");
MODULE_FIRMWARE("brcm/brcmbt4377*.ptb");
MODULE_FIRMWARE("brcm/brcmbt4378*.bin");
MODULE_FIRMWARE("brcm/brcmbt4378*.ptb");
MODULE_FIRMWARE("brcm/brcmbt4387*.bin");
MODULE_FIRMWARE("brcm/brcmbt4387*.ptb");
MODULE_FIRMWARE("brcm/brcmbt4388*.bin");
MODULE_FIRMWARE("brcm/brcmbt4388*.ptb");
Annotation
- Immediate include surface: `linux/async.h`, `linux/bitfield.h`, `linux/completion.h`, `linux/dma-mapping.h`, `linux/dmi.h`, `linux/firmware.h`, `linux/module.h`, `linux/msi.h`.
- Detected declarations: `struct bcm4377_xfer_ring_entry`, `struct bcm4377_completion_ring_entry`, `struct bcm4377_create_completion_ring_msg`, `struct bcm4377_destroy_completion_ring_msg`, `struct bcm4377_create_transfer_ring_msg`, `struct bcm4377_destroy_transfer_ring_msg`, `struct bcm4377_context`, `struct bcm4378_hci_send_calibration_cmd`, `struct bcm4378_hci_send_ptb_cmd`, `struct bcm4377_ring_state`.
- Atlas domain: Driver Families / drivers/bluetooth.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.