drivers/tty/serial/st-asc.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/st-asc.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/st-asc.c- Extension
.c- Size
- 23819 bytes
- Lines
- 977
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/serial.hlinux/console.hlinux/sysrq.hlinux/pinctrl/consumer.hlinux/platform_device.hlinux/io.hlinux/irq.hlinux/tty.hlinux/tty_flip.hlinux/delay.hlinux/spinlock.hlinux/of.hlinux/of_platform.hlinux/serial_core.hlinux/clk.hlinux/gpio/consumer.h
Detected Declarations
struct asc_portfunction asc_infunction asc_outfunction asc_disable_tx_interruptsfunction asc_enable_tx_interruptsfunction asc_disable_rx_interruptsfunction asc_enable_rx_interruptsfunction asc_txfifo_is_emptyfunction asc_txfifo_is_half_emptyfunction asc_hw_txroomfunction asc_transmit_charsfunction asc_receive_charsfunction asc_interruptfunction asc_tx_emptyfunction asc_set_mctrlfunction asc_get_mctrlfunction asc_start_txfunction asc_stop_txfunction asc_stop_rxfunction asc_break_ctlfunction asc_shutdownfunction asc_pmfunction asc_set_termiosfunction asc_release_portfunction asc_config_portfunction asc_verify_portfunction contextfunction asc_put_poll_charfunction asc_init_portfunction asc_serial_probefunction asc_serial_removefunction asc_serial_suspendfunction asc_serial_resumefunction asc_console_putcharfunction asc_console_writefunction asc_console_setupfunction asc_initfunction asc_exitmodule init asc_init
Annotated Snippet
module_init(asc_init);
module_exit(asc_exit);
MODULE_ALIAS("platform:" DRIVER_NAME);
MODULE_AUTHOR("STMicroelectronics (R&D) Limited");
MODULE_DESCRIPTION("STMicroelectronics ASC serial port driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/serial.h`, `linux/console.h`, `linux/sysrq.h`, `linux/pinctrl/consumer.h`, `linux/platform_device.h`, `linux/io.h`, `linux/irq.h`.
- Detected declarations: `struct asc_port`, `function asc_in`, `function asc_out`, `function asc_disable_tx_interrupts`, `function asc_enable_tx_interrupts`, `function asc_disable_rx_interrupts`, `function asc_enable_rx_interrupts`, `function asc_txfifo_is_empty`, `function asc_txfifo_is_half_empty`, `function asc_hw_txroom`.
- 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.