drivers/slimbus/qcom-ngd-ctrl.c
Source file repositories/reference/linux-study-clean/drivers/slimbus/qcom-ngd-ctrl.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/slimbus/qcom-ngd-ctrl.c- Extension
.c- Size
- 44584 bytes
- Lines
- 1790
- Domain
- Driver Families
- Bucket
- drivers/slimbus
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration 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.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- 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/irq.hlinux/kernel.hlinux/init.hlinux/slab.hlinux/interrupt.hlinux/platform_device.hlinux/dma-mapping.hlinux/dmaengine.hlinux/slimbus.hlinux/delay.hlinux/pm_runtime.hlinux/mutex.hlinux/notifier.hlinux/remoteproc/qcom_rproc.hlinux/of.hlinux/io.hlinux/soc/qcom/qmi.hlinux/soc/qcom/pdr.hnet/sock.hslimbus.h
Detected Declarations
struct ngd_reg_offset_datastruct qcom_slim_ngd_qmistruct qcom_slim_ngd_ctrlstruct qcom_slim_ngdstruct qcom_slim_ngd_dma_descstruct qcom_slim_ngdstruct qcom_slim_ngd_ctrlstruct slimbus_select_inst_req_msg_v01struct slimbus_select_inst_resp_msg_v01struct slimbus_power_req_msg_v01struct slimbus_power_resp_msg_v01enum qcom_slim_ngd_stateenum slimbus_mode_enum_type_v01enum slimbus_pm_enum_type_v01enum slimbus_resp_enum_type_v01function qcom_slim_qmi_send_select_inst_reqfunction qcom_slim_qmi_power_resp_cbfunction qcom_slim_qmi_send_power_requestfunction qcom_slim_qmi_initfunction qcom_slim_qmi_exitfunction qcom_slim_qmi_power_requestfunction qcom_slim_ngd_tx_msg_dma_cbfunction qcom_slim_ngd_tx_msg_postfunction qcom_slim_ngd_rxfunction qcom_slim_ngd_rx_msgq_cbfunction qcom_slim_ngd_post_rx_msgqfunction qcom_slim_ngd_init_rx_msgqfunction qcom_slim_ngd_init_tx_msgqfunction qcom_slim_ngd_init_dmafunction qcom_slim_ngd_interruptfunction qcom_slim_ngd_xfer_msgfunction qcom_slim_ngd_xfer_msg_syncfunction qcom_slim_calc_coeffunction valuefunction qcom_slim_ngd_enable_streamfunction qcom_slim_ngd_get_laddrfunction qcom_slim_ngd_exit_dmafunction qcom_slim_ngd_setupfunction qcom_slim_ngd_power_upfunction qcom_slim_ngd_notify_slavesfunction for_each_child_of_nodefunction qcom_slim_ngd_master_workerfunction qcom_slim_ngd_update_device_statusfunction qcom_slim_ngd_runtime_resumefunction qcom_slim_ngd_enablefunction qcom_slim_ngd_qmi_new_serverfunction qcom_slim_ngd_qmi_del_serverfunction qcom_slim_ngd_qmi_svc_event_init
Annotated Snippet
module_init(qcom_slim_ngd_init);
module_exit(qcom_slim_ngd_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Qualcomm SLIMBus NGD controller");
Annotation
- Immediate include surface: `linux/irq.h`, `linux/kernel.h`, `linux/init.h`, `linux/slab.h`, `linux/interrupt.h`, `linux/platform_device.h`, `linux/dma-mapping.h`, `linux/dmaengine.h`.
- Detected declarations: `struct ngd_reg_offset_data`, `struct qcom_slim_ngd_qmi`, `struct qcom_slim_ngd_ctrl`, `struct qcom_slim_ngd`, `struct qcom_slim_ngd_dma_desc`, `struct qcom_slim_ngd`, `struct qcom_slim_ngd_ctrl`, `struct slimbus_select_inst_req_msg_v01`, `struct slimbus_select_inst_resp_msg_v01`, `struct slimbus_power_req_msg_v01`.
- Atlas domain: Driver Families / drivers/slimbus.
- Implementation status: integration 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.