drivers/tty/serial/ar933x_uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/ar933x_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/ar933x_uart.c- Extension
.c- Size
- 23131 bytes
- Lines
- 941
- 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/module.hlinux/ioport.hlinux/init.hlinux/console.hlinux/sysrq.hlinux/delay.hlinux/gpio/consumer.hlinux/platform_device.hlinux/of.hlinux/of_platform.hlinux/tty.hlinux/tty_flip.hlinux/serial_core.hlinux/serial.hlinux/slab.hlinux/io.hlinux/irq.hlinux/clk.hasm/div64.hasm/mach-ath79/ar933x_uart.hserial_mctrl_gpio.h
Detected Declarations
struct ar933x_uart_portfunction ar933x_uart_readfunction ar933x_uart_writefunction ar933x_uart_rmwfunction ar933x_uart_rmw_setfunction ar933x_uart_rmw_clearfunction ar933x_uart_start_tx_interruptfunction ar933x_uart_stop_tx_interruptfunction ar933x_uart_start_rx_interruptfunction ar933x_uart_stop_rx_interruptfunction ar933x_uart_putcfunction ar933x_uart_tx_emptyfunction ar933x_uart_get_mctrlfunction ar933x_uart_set_mctrlfunction ar933x_uart_start_txfunction ar933x_uart_wait_tx_completefunction ar933x_uart_rx_flushfunction ar933x_uart_stop_txfunction ar933x_uart_stop_rxfunction ar933x_uart_break_ctlfunction ar933x_uart_get_baudfunction ar933x_uart_get_scale_stepfunction ar933x_uart_set_termiosfunction ar933x_uart_rx_charsfunction ar933x_uart_tx_charsfunction ar933x_uart_interruptfunction ar933x_uart_startupfunction ar933x_uart_shutdownfunction ar933x_uart_release_portfunction ar933x_uart_config_portfunction ar933x_uart_verify_portfunction ar933x_poll_get_charfunction ar933x_poll_put_charfunction ar933x_config_rs485function ar933x_uart_wait_xmitrfunction ar933x_uart_console_putcharfunction ar933x_uart_console_writefunction ar933x_uart_console_setupfunction ar933x_uart_probefunction ar933x_uart_removefunction ar933x_uart_initfunction ar933x_uart_exitmodule init ar933x_uart_init
Annotated Snippet
module_init(ar933x_uart_init);
module_exit(ar933x_uart_exit);
MODULE_DESCRIPTION("Atheros AR933X UART driver");
MODULE_AUTHOR("Gabor Juhos <juhosg@openwrt.org>");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS("platform:" DRIVER_NAME);
Annotation
- Immediate include surface: `linux/module.h`, `linux/ioport.h`, `linux/init.h`, `linux/console.h`, `linux/sysrq.h`, `linux/delay.h`, `linux/gpio/consumer.h`, `linux/platform_device.h`.
- Detected declarations: `struct ar933x_uart_port`, `function ar933x_uart_read`, `function ar933x_uart_write`, `function ar933x_uart_rmw`, `function ar933x_uart_rmw_set`, `function ar933x_uart_rmw_clear`, `function ar933x_uart_start_tx_interrupt`, `function ar933x_uart_stop_tx_interrupt`, `function ar933x_uart_start_rx_interrupt`, `function ar933x_uart_stop_rx_interrupt`.
- 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.