drivers/bluetooth/btrtl.h
Source file repositories/reference/linux-study-clean/drivers/bluetooth/btrtl.h
File Facts
- System
- Linux kernel
- Corpus path
drivers/bluetooth/btrtl.h- Extension
.h- Size
- 4064 bytes
- Lines
- 199
- Domain
- Driver Families
- Bucket
- drivers/bluetooth
- Inferred role
- Driver Families: implementation source
- Status
- source 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 or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
- No C-style include directives detected by the generator.
Detected Declarations
struct btrtl_device_infostruct rtl_chip_type_evtstruct rtl_download_cmdstruct rtl_download_responsestruct rtl_rom_version_evtstruct rtl_epatch_headerstruct rtl_vendor_config_entrystruct rtl_vendor_configstruct rtl_epatch_header_v2struct rtl_sectionstruct rtl_section_hdrstruct rtl_common_subsecstruct rtl_sec_hdrstruct rtl_subsectionstruct rtl_iovecstruct rtl_vendor_cmdstruct rtl_dump_infostruct btrealtek_datafunction btrtl_freefunction btrtl_set_quirksfunction btrtl_shutdown_realtekfunction btrtl_get_uart_settingsfunction btrtl_set_driver_name
Annotated Snippet
struct rtl_chip_type_evt {
__u8 status;
__u8 type;
} __packed;
struct rtl_download_cmd {
__u8 index;
__u8 data[RTL_FRAG_LEN];
} __packed;
struct rtl_download_response {
__u8 status;
__u8 index;
} __packed;
struct rtl_rom_version_evt {
__u8 status;
__u8 version;
} __packed;
struct rtl_epatch_header {
__u8 signature[8];
__le32 fw_version;
__le16 num_patches;
} __packed;
struct rtl_vendor_config_entry {
__le16 offset;
__u8 len;
__u8 data[];
} __packed;
struct rtl_vendor_config {
__le32 signature;
__le16 total_len;
__u8 entry[];
} __packed;
struct rtl_epatch_header_v2 {
__u8 signature[8];
__u8 fw_version[8];
__le32 num_sections;
} __packed;
struct rtl_section {
__le32 opcode;
__le32 len;
u8 data[];
} __packed;
struct rtl_section_hdr {
__le16 num;
__le16 reserved;
} __packed;
struct rtl_common_subsec {
__u8 eco;
__u8 prio;
__u8 cb[2];
__le32 len;
__u8 data[];
};
struct rtl_sec_hdr {
__u8 eco;
__u8 prio;
__u8 key_id;
__u8 reserved;
__le32 len;
__u8 data[];
} __packed;
struct rtl_subsection {
struct list_head list;
u32 opcode;
u32 len;
u8 prio;
u8 *data;
};
struct rtl_iovec {
u8 *data;
u32 len;
};
struct rtl_vendor_cmd {
__u8 param[5];
} __packed;
enum {
Annotation
- Detected declarations: `struct btrtl_device_info`, `struct rtl_chip_type_evt`, `struct rtl_download_cmd`, `struct rtl_download_response`, `struct rtl_rom_version_evt`, `struct rtl_epatch_header`, `struct rtl_vendor_config_entry`, `struct rtl_vendor_config`, `struct rtl_epatch_header_v2`, `struct rtl_section`.
- Atlas domain: Driver Families / drivers/bluetooth.
- Implementation status: source implementation candidate.
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.