drivers/tty/serial/sh-sci.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/sh-sci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/sh-sci.c- Extension
.c- Size
- 108193 bytes
- Lines
- 4137
- Domain
- Driver Families
- Bucket
- drivers/tty
- 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/bitops.hlinux/clk.hlinux/console.hlinux/cpufreq.hlinux/ctype.hlinux/delay.hlinux/dma-mapping.hlinux/dmaengine.hlinux/err.hlinux/errno.hlinux/init.hlinux/interrupt.hlinux/io.hlinux/ioport.hlinux/ktime.hlinux/major.hlinux/minmax.hlinux/mm.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/pm_runtime.hlinux/reset.hlinux/scatterlist.hlinux/serial.hlinux/serial_core.hlinux/serial_sci.hlinux/sh_dma.hlinux/slab.hlinux/string.hlinux/sysrq.hlinux/timer.h
Detected Declarations
struct sci_suspend_regsfunction sci_suspend_regs_sizefunction sci_serial_infunction sci_serial_outfunction sci_port_enablefunction sci_port_disablefunction port_rx_irq_maskfunction sci_start_txfunction sci_stop_txfunction sci_start_rxfunction sci_stop_rxfunction sci_clear_SCxSRfunction definedfunction sci_poll_put_charfunction sci_init_pinsfunction sci_txfillfunction sci_txroomfunction sci_rxfillfunction sci_transmit_charsfunction sci_receive_charsfunction sci_handle_errorsfunction sci_is_rsci_typefunction sci_handle_fifo_overrunfunction sci_handle_breaksfunction scif_set_rtrgfunction scif_rtrg_enabledfunction rx_fifo_timer_fnfunction rx_fifo_trigger_showfunction rx_fifo_trigger_storefunction rx_fifo_timeout_showfunction rx_fifo_timeout_storefunction sci_dma_tx_completefunction sci_dma_rx_pushfunction sci_dma_rx_find_activefunction sci_dma_rx_chan_invalidatefunction sci_dma_rx_releasefunction start_hrtimer_usfunction sci_dma_rx_reenable_irqfunction sci_dma_rx_completefunction sci_dma_tx_releasefunction sci_dma_rx_submitfunction sci_dma_tx_work_fnfunction sci_dma_rx_timer_fnfunction sci_request_dmafunction sci_free_dmafunction sci_flush_bufferfunction sci_dma_check_tx_occurredfunction sci_request_dma
Annotated Snippet
module_init(sci_init);
module_exit(sci_exit);
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:sh-sci");
MODULE_AUTHOR("Paul Mundt");
MODULE_DESCRIPTION("SuperH (H)SCI(F) serial driver");
Annotation
- Immediate include surface: `linux/bitops.h`, `linux/clk.h`, `linux/console.h`, `linux/cpufreq.h`, `linux/ctype.h`, `linux/delay.h`, `linux/dma-mapping.h`, `linux/dmaengine.h`.
- Detected declarations: `struct sci_suspend_regs`, `function sci_suspend_regs_size`, `function sci_serial_in`, `function sci_serial_out`, `function sci_port_enable`, `function sci_port_disable`, `function port_rx_irq_mask`, `function sci_start_tx`, `function sci_stop_tx`, `function sci_start_rx`.
- Atlas domain: Driver Families / drivers/tty.
- 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.