drivers/tty/serial/lantiq.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/lantiq.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/lantiq.c- Extension
.c- Size
- 22679 bytes
- Lines
- 950
- 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/bitfield.hlinux/clk.hlinux/console.hlinux/device.hlinux/init.hlinux/io.hlinux/ioport.hlinux/lantiq.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/serial.hlinux/serial_core.hlinux/slab.hlinux/sysrq.hlinux/tty.hlinux/tty_flip.h
Detected Declarations
struct ltq_soc_datastruct ltq_uart_portfunction asc_update_bitsfunction lqasc_stop_txfunction lqasc_tx_readyfunction lqasc_start_txfunction lqasc_stop_rxfunction lqasc_rx_charsfunction lqasc_tx_intfunction lqasc_err_intfunction lqasc_rx_intfunction lqasc_irqfunction lqasc_tx_emptyfunction lqasc_get_mctrlfunction lqasc_set_mctrlfunction lqasc_shutdownfunction lqasc_set_termiosfunction lqasc_typefunction lqasc_release_portfunction lqasc_request_portfunction lqasc_config_portfunction lqasc_verify_portfunction lqasc_console_putcharfunction lqasc_serial_port_writefunction lqasc_console_writefunction lqasc_console_setupfunction lqasc_console_initfunction lqasc_serial_early_console_writefunction lqasc_serial_early_console_setupfunction fetch_irq_lantiqfunction request_irq_lantiqfunction free_irq_lantiqfunction fetch_irq_intelfunction request_irq_intelfunction free_irq_intelfunction lqasc_probefunction lqasc_removefunction init_lqascfunction exit_lqascmodule init init_lqasc
Annotated Snippet
module_init(init_lqasc);
module_exit(exit_lqasc);
MODULE_DESCRIPTION("Serial driver for Lantiq & Intel gateway SoCs");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/bitfield.h`, `linux/clk.h`, `linux/console.h`, `linux/device.h`, `linux/init.h`, `linux/io.h`, `linux/ioport.h`, `linux/lantiq.h`.
- Detected declarations: `struct ltq_soc_data`, `struct ltq_uart_port`, `function asc_update_bits`, `function lqasc_stop_tx`, `function lqasc_tx_ready`, `function lqasc_start_tx`, `function lqasc_stop_rx`, `function lqasc_rx_chars`, `function lqasc_tx_int`, `function lqasc_err_int`.
- 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.