drivers/soc/fsl/qe/qe.c
Source file repositories/reference/linux-study-clean/drivers/soc/fsl/qe/qe.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/soc/fsl/qe/qe.c- Extension
.c- Size
- 17086 bytes
- Lines
- 686
- Domain
- Driver Families
- Bucket
- drivers/soc
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/bitmap.hlinux/errno.hlinux/sched.hlinux/kernel.hlinux/param.hlinux/string.hlinux/spinlock.hlinux/mm.hlinux/interrupt.hlinux/module.hlinux/delay.hlinux/ioport.hlinux/iopoll.hlinux/crc32.hlinux/mod_devicetable.hlinux/of.hlinux/platform_device.hsoc/fsl/qe/immap_qe.hsoc/fsl/qe/qe.h
Detected Declarations
function get_qe_basefunction qe_resetfunction qe_issue_cmdfunction qe_get_brg_clkfunction qe_general4_erratafunction qe_setbrgfunction qe_clock_sourcefunction qe_snums_initfunction qe_get_snumfunction qe_put_snumfunction qe_sdma_initfunction qe_upload_firmwarefunction qe_upload_firmwarefunction qe_get_num_of_riscfunction qe_get_num_of_snumsfunction qe_initfunction qe_resumefunction qe_probemodule init qe_initexport cmxgcr_lockexport qe_immrexport qe_issue_cmdexport qe_get_brg_clkexport qe_setbrgexport qe_clock_sourceexport qe_get_snumexport qe_put_snumexport qe_upload_firmwareexport qe_get_firmware_infoexport qe_get_num_of_riscexport qe_get_num_of_snums
Annotated Snippet
subsys_initcall(qe_init);
#if defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx)
static int qe_resume(struct platform_device *ofdev)
{
if (!qe_alive_during_sleep())
qe_reset();
return 0;
}
static int qe_probe(struct platform_device *ofdev)
{
return 0;
}
static const struct of_device_id qe_ids[] = {
{ .compatible = "fsl,qe", },
{ },
};
static struct platform_driver qe_driver = {
.driver = {
.name = "fsl-qe",
.of_match_table = qe_ids,
},
.probe = qe_probe,
.resume = qe_resume,
};
builtin_platform_driver(qe_driver);
#endif /* defined(CONFIG_SUSPEND) && defined(CONFIG_PPC_85xx) */
Annotation
- Immediate include surface: `linux/bitmap.h`, `linux/errno.h`, `linux/sched.h`, `linux/kernel.h`, `linux/param.h`, `linux/string.h`, `linux/spinlock.h`, `linux/mm.h`.
- Detected declarations: `function get_qe_base`, `function qe_reset`, `function qe_issue_cmd`, `function qe_get_brg_clk`, `function qe_general4_errata`, `function qe_setbrg`, `function qe_clock_source`, `function qe_snums_init`, `function qe_get_snum`, `function qe_put_snum`.
- Atlas domain: Driver Families / drivers/soc.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.