drivers/media/rc/winbond-cir.c
Source file repositories/reference/linux-study-clean/drivers/media/rc/winbond-cir.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/media/rc/winbond-cir.c- Extension
.c- Size
- 33696 bytes
- Lines
- 1221
- 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
linux/module.hlinux/pnp.hlinux/interrupt.hlinux/timer.hlinux/leds.hlinux/spinlock.hlinux/pci_ids.hlinux/io.hlinux/bitrev.hlinux/slab.hlinux/wait.hlinux/sched.hmedia/rc-core.h
Detected Declarations
struct wbcir_dataenum wbcir_bankenum wbcir_protocolenum wbcir_rxstateenum wbcir_txstatefunction wbcir_set_bitsfunction wbcir_select_bankfunction wbcir_set_irqmaskfunction wbcir_led_brightness_getfunction wbcir_led_brightness_setfunction wbcir_to_rc6cellsfunction wbcir_carrier_reportfunction wbcir_idle_rxfunction wbcir_irq_rxfunction wbcir_irq_txfunction wbcir_irq_handlerfunction wbcir_set_carrier_reportfunction wbcir_txcarrierfunction wbcir_txmaskfunction wbcir_txfunction wbcir_shutdownfunction wbcir_set_wakeup_filterfunction wbcir_suspendfunction wbcir_init_hwfunction wbcir_resumefunction wbcir_probefunction wbcir_removefunction wbcir_initfunction wbcir_exitmodule init wbcir_init
Annotated Snippet
module_init(wbcir_init);
module_exit(wbcir_exit);
MODULE_AUTHOR("David Härdeman <david@hardeman.nu>");
MODULE_DESCRIPTION("Winbond SuperI/O Consumer IR Driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pnp.h`, `linux/interrupt.h`, `linux/timer.h`, `linux/leds.h`, `linux/spinlock.h`, `linux/pci_ids.h`, `linux/io.h`.
- Detected declarations: `struct wbcir_data`, `enum wbcir_bank`, `enum wbcir_protocol`, `enum wbcir_rxstate`, `enum wbcir_txstate`, `function wbcir_set_bits`, `function wbcir_select_bank`, `function wbcir_set_irqmask`, `function wbcir_led_brightness_get`, `function wbcir_led_brightness_set`.
- 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.