drivers/tty/serial/amba-pl010.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/amba-pl010.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/amba-pl010.c- Extension
.c- Size
- 18636 bytes
- Lines
- 805
- 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/module.hlinux/ioport.hlinux/init.hlinux/console.hlinux/sysrq.hlinux/device.hlinux/tty.hlinux/tty_flip.hlinux/serial_core.hlinux/serial.hlinux/amba/bus.hlinux/amba/serial.hlinux/clk.hlinux/slab.hlinux/io.h
Detected Declarations
struct uart_amba_portfunction pl010_stop_txfunction pl010_start_txfunction pl010_stop_rxfunction pl010_disable_msfunction pl010_enable_msfunction pl010_rx_charsfunction pl010_tx_charsfunction pl010_modem_statusfunction pl010_intfunction pl010_tx_emptyfunction pl010_get_mctrlfunction pl010_set_mctrlfunction pl010_break_ctlfunction pl010_startupfunction pl010_shutdownfunction pl010_set_termiosfunction pl010_set_ldiscfunction regionfunction regionfunction pl010_config_portfunction serial_structfunction pl010_console_putcharfunction pl010_console_writefunction pl010_console_get_optionsfunction pl010_console_setupfunction pl010_probefunction pl010_removefunction pl010_suspendfunction pl010_resumefunction pl010_initfunction pl010_exitmodule init pl010_init
Annotated Snippet
module_init(pl010_init);
module_exit(pl010_exit);
MODULE_AUTHOR("ARM Ltd/Deep Blue Solutions Ltd");
MODULE_DESCRIPTION("ARM AMBA serial port driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/ioport.h`, `linux/init.h`, `linux/console.h`, `linux/sysrq.h`, `linux/device.h`, `linux/tty.h`, `linux/tty_flip.h`.
- Detected declarations: `struct uart_amba_port`, `function pl010_stop_tx`, `function pl010_start_tx`, `function pl010_stop_rx`, `function pl010_disable_ms`, `function pl010_enable_ms`, `function pl010_rx_chars`, `function pl010_tx_chars`, `function pl010_modem_status`, `function pl010_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.