drivers/tty/serial/owl-uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/owl-uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/owl-uart.c- Extension
.c- Size
- 18307 bytes
- Lines
- 766
- 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.
- 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/clk.hlinux/console.hlinux/delay.hlinux/io.hlinux/iopoll.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/serial.hlinux/serial_core.hlinux/tty.hlinux/tty_flip.h
Detected Declarations
struct owl_uart_infostruct owl_uart_portfunction owl_uart_writefunction owl_uart_readfunction owl_uart_set_mctrlfunction owl_uart_get_mctrlfunction owl_uart_tx_emptyfunction owl_uart_stop_rxfunction owl_uart_stop_txfunction owl_uart_start_txfunction owl_uart_send_charsfunction owl_uart_receive_charsfunction owl_uart_irqfunction owl_uart_shutdownfunction owl_uart_startupfunction owl_uart_change_baudratefunction owl_uart_set_termiosfunction owl_uart_release_portfunction owl_uart_request_portfunction owl_uart_verify_portfunction owl_uart_config_portfunction owl_uart_poll_get_charfunction owl_uart_poll_put_charfunction owl_console_putcharfunction owl_uart_port_writefunction owl_uart_console_writefunction owl_uart_console_setupfunction owl_uart_console_initfunction owl_uart_early_console_writefunction owl_uart_early_console_setupfunction owl_uart_probefunction owl_uart_removefunction owl_uart_initfunction owl_uart_exitmodule init owl_uart_init
Annotated Snippet
module_init(owl_uart_init);
module_exit(owl_uart_exit);
MODULE_DESCRIPTION("Actions Semi Owl family serial console");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/console.h`, `linux/delay.h`, `linux/io.h`, `linux/iopoll.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`.
- Detected declarations: `struct owl_uart_info`, `struct owl_uart_port`, `function owl_uart_write`, `function owl_uart_read`, `function owl_uart_set_mctrl`, `function owl_uart_get_mctrl`, `function owl_uart_tx_empty`, `function owl_uart_stop_rx`, `function owl_uart_stop_tx`, `function owl_uart_start_tx`.
- 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.