drivers/tty/serial/altera_uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/altera_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/altera_uart.c- Extension
.c- Size
- 17466 bytes
- Lines
- 653
- 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.
- 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/kernel.hlinux/init.hlinux/timer.hlinux/interrupt.hlinux/module.hlinux/console.hlinux/tty.hlinux/tty_flip.hlinux/serial.hlinux/serial_core.hlinux/platform_device.hlinux/of.hlinux/io.hlinux/altera_uart.h
Detected Declarations
struct altera_uartfunction altera_uart_readlfunction altera_uart_writelfunction altera_uart_tx_emptyfunction altera_uart_get_mctrlfunction altera_uart_update_ctrl_regfunction altera_uart_set_mctrlfunction altera_uart_start_txfunction altera_uart_stop_txfunction altera_uart_stop_rxfunction altera_uart_break_ctlfunction altera_uart_set_termiosfunction altera_uart_rx_charsfunction altera_uart_tx_charsfunction altera_uart_interruptfunction altera_uart_timerfunction altera_uart_config_portfunction altera_uart_startupfunction altera_uart_shutdownfunction altera_uart_request_portfunction altera_uart_release_portfunction altera_uart_poll_get_charfunction altera_uart_poll_put_charfunction altera_uart_console_putcfunction altera_uart_console_writefunction altera_uart_console_setupfunction altera_uart_console_initfunction altera_uart_earlycon_writefunction altera_uart_earlycon_setupfunction altera_uart_probefunction altera_uart_removefunction altera_uart_initfunction altera_uart_exitmodule init altera_uart_init
Annotated Snippet
module_init(altera_uart_init);
module_exit(altera_uart_exit);
MODULE_DESCRIPTION("Altera UART driver");
MODULE_AUTHOR("Thomas Chou <thomas@wytron.com.tw>");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:" KBUILD_MODNAME);
MODULE_ALIAS_CHARDEV_MAJOR(SERIAL_ALTERA_MAJOR);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/timer.h`, `linux/interrupt.h`, `linux/module.h`, `linux/console.h`, `linux/tty.h`, `linux/tty_flip.h`.
- Detected declarations: `struct altera_uart`, `function altera_uart_readl`, `function altera_uart_writel`, `function altera_uart_tx_empty`, `function altera_uart_get_mctrl`, `function altera_uart_update_ctrl_reg`, `function altera_uart_set_mctrl`, `function altera_uart_start_tx`, `function altera_uart_stop_tx`, `function altera_uart_stop_rx`.
- Atlas domain: Driver Families / drivers/tty.
- Implementation status: integration implementation candidate.
- 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.