drivers/media/common/siano/smscoreapi.c
Source file repositories/reference/linux-study-clean/drivers/media/common/siano/smscoreapi.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/common/siano/smscoreapi.c- Extension
.c- Size
- 80494 bytes
- Lines
- 2179
- Domain
- Driver Families
- Bucket
- drivers/media
- 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
smscoreapi.hlinux/kernel.hlinux/init.hlinux/module.hlinux/moduleparam.hlinux/dma-mapping.hlinux/delay.hlinux/io.hlinux/slab.hlinux/firmware.hlinux/wait.hasm/byteorder.hsms-cards.hsmsir.h
Detected Declarations
struct smscore_device_notifyee_tstruct smscore_idlist_tstruct smscore_client_tstruct smscore_registry_entry_tstruct set_gpio_msgstruct set_gpio_msgstruct set_gpio_msgfunction smscore_set_board_idfunction smscore_led_statefunction smscore_get_board_idfunction smscore_registry_getmodefunction smscore_registry_gettypefunction smscore_registry_setmodefunction smscore_registry_settypefunction list_add_lockedfunction smscore_register_hotplugfunction smscore_unregister_hotplugfunction smscore_notify_clientsfunction smscore_notify_callbacksfunction list_for_each_entryfunction smscore_register_devicefunction smscore_sendrequest_and_waitfunction smscore_init_irfunction smscore_configure_boardfunction smscore_start_devicefunction smscore_load_firmware_family2function smscore_load_firmware_from_filefunction smscore_unregister_devicefunction smscore_detect_modefunction smscore_init_devicefunction smscore_set_device_modefunction smscore_get_device_modefunction list_for_each_entryfunction smscore_onresponsefunction smscore_putbufferfunction smscore_validate_clientfunction smscore_register_clientfunction smscore_unregister_clientfunction smsclient_sendrequestfunction smscore_configure_gpiofunction smscore_set_gpiofunction get_gpio_pin_paramsfunction smscore_gpio_configurefunction smscore_gpio_set_levelfunction smscore_gpio_get_levelfunction smscore_module_initfunction smscore_module_exitmodule init smscore_module_init
Annotated Snippet
module_init(smscore_module_init);
module_exit(smscore_module_exit);
MODULE_DESCRIPTION("Siano MDTV Core module");
MODULE_AUTHOR("Siano Mobile Silicon, Inc. <uris@siano-ms.com>");
MODULE_LICENSE("GPL");
/* This should match what's defined at smscoreapi.h */
MODULE_FIRMWARE(SMS_FW_ATSC_DENVER);
MODULE_FIRMWARE(SMS_FW_CMMB_MING_APP);
MODULE_FIRMWARE(SMS_FW_CMMB_VEGA_12MHZ);
MODULE_FIRMWARE(SMS_FW_CMMB_VENICE_12MHZ);
MODULE_FIRMWARE(SMS_FW_DVBH_RIO);
MODULE_FIRMWARE(SMS_FW_DVB_NOVA_12MHZ_B0);
MODULE_FIRMWARE(SMS_FW_DVB_NOVA_12MHZ);
MODULE_FIRMWARE(SMS_FW_DVB_RIO);
MODULE_FIRMWARE(SMS_FW_FM_RADIO);
MODULE_FIRMWARE(SMS_FW_FM_RADIO_RIO);
MODULE_FIRMWARE(SMS_FW_DVBT_HCW_55XXX);
MODULE_FIRMWARE(SMS_FW_ISDBT_HCW_55XXX);
MODULE_FIRMWARE(SMS_FW_ISDBT_NOVA_12MHZ_B0);
MODULE_FIRMWARE(SMS_FW_ISDBT_NOVA_12MHZ);
MODULE_FIRMWARE(SMS_FW_ISDBT_PELE);
MODULE_FIRMWARE(SMS_FW_ISDBT_RIO);
MODULE_FIRMWARE(SMS_FW_DVBT_NOVA_A);
MODULE_FIRMWARE(SMS_FW_DVBT_NOVA_B);
MODULE_FIRMWARE(SMS_FW_DVBT_STELLAR);
MODULE_FIRMWARE(SMS_FW_TDMB_DENVER);
MODULE_FIRMWARE(SMS_FW_TDMB_NOVA_12MHZ_B0);
MODULE_FIRMWARE(SMS_FW_TDMB_NOVA_12MHZ);
Annotation
- Immediate include surface: `smscoreapi.h`, `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/moduleparam.h`, `linux/dma-mapping.h`, `linux/delay.h`, `linux/io.h`.
- Detected declarations: `struct smscore_device_notifyee_t`, `struct smscore_idlist_t`, `struct smscore_client_t`, `struct smscore_registry_entry_t`, `struct set_gpio_msg`, `struct set_gpio_msg`, `struct set_gpio_msg`, `function smscore_set_board_id`, `function smscore_led_state`, `function smscore_get_board_id`.
- Atlas domain: Driver Families / drivers/media.
- 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.