drivers/firmware/stratix10-svc.c
Source file repositories/reference/linux-study-clean/drivers/firmware/stratix10-svc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/firmware/stratix10-svc.c- Extension
.c- Size
- 62572 bytes
- Lines
- 2107
- Domain
- Driver Families
- Bucket
- drivers/firmware
- 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.
- 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/atomic.hlinux/completion.hlinux/delay.hlinux/genalloc.hlinux/hashtable.hlinux/idr.hlinux/io.hlinux/kfifo.hlinux/kthread.hlinux/module.hlinux/mutex.hlinux/of.hlinux/of_platform.hlinux/platform_device.hlinux/slab.hlinux/spinlock.hlinux/firmware/intel/stratix10-smc.hlinux/firmware/intel/stratix10-svc-client.hlinux/types.h
Detected Declarations
struct stratix10_svc_chanstruct stratix10_svcstruct stratix10_svc_sh_memorystruct stratix10_svc_data_memstruct stratix10_svc_datastruct stratix10_svc_async_handlerstruct stratix10_async_chanstruct stratix10_async_ctrlstruct stratix10_svc_controllerstruct stratix10_svc_chanfunction svc_pa_to_vafunction svc_thread_cmd_data_claimfunction svc_thread_cmd_config_statusfunction svc_thread_recv_status_okfunction svc_normal_to_secure_threadfunction svc_normal_to_secure_shm_threadfunction svc_get_sh_memoryfunction svc_create_memory_poolfunction svc_smccc_smcfunction svc_smccc_hvcfunction get_invoke_funcfunction stratix10_svc_request_channel_bynamefunction stratix10_svc_add_async_clientfunction stratix10_svc_remove_async_clientfunction stratix10_svc_async_sendfunction scoped_guardfunction stratix10_svc_async_prepare_responsefunction stratix10_svc_async_pollfunction stratix10_svc_async_donefunction stratix10_smc_1_2function stratix10_svc_async_initfunction stratix10_svc_async_exitfunction scoped_guardfunction stratix10_svc_free_channelfunction stratix10_svc_sendfunction list_for_each_entryfunction stratix10_svc_donefunction stratix10_svc_allocate_memoryfunction stratix10_svc_free_memoryfunction list_for_each_entryfunction stratix10_svc_drv_probefunction stratix10_svc_drv_removefunction stratix10_svc_initfunction stratix10_svc_exitmodule init stratix10_svc_initexport stratix10_svc_request_channel_bynameexport stratix10_svc_add_async_clientexport stratix10_svc_remove_async_client
Annotated Snippet
subsys_initcall(stratix10_svc_init);
module_exit(stratix10_svc_exit);
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Intel Stratix10 Service Layer Driver");
MODULE_AUTHOR("Richard Gong <richard.gong@intel.com>");
MODULE_ALIAS("platform:stratix10-svc");
Annotation
- Immediate include surface: `linux/atomic.h`, `linux/completion.h`, `linux/delay.h`, `linux/genalloc.h`, `linux/hashtable.h`, `linux/idr.h`, `linux/io.h`, `linux/kfifo.h`.
- Detected declarations: `struct stratix10_svc_chan`, `struct stratix10_svc`, `struct stratix10_svc_sh_memory`, `struct stratix10_svc_data_mem`, `struct stratix10_svc_data`, `struct stratix10_svc_async_handler`, `struct stratix10_async_chan`, `struct stratix10_async_ctrl`, `struct stratix10_svc_controller`, `struct stratix10_svc_chan`.
- Atlas domain: Driver Families / drivers/firmware.
- 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.