drivers/tty/serial/serial-tegra.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/serial-tegra.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/serial-tegra.c- Extension
.c- Size
- 44894 bytes
- Lines
- 1705
- 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/debugfs.hlinux/delay.hlinux/dmaengine.hlinux/dma-mapping.hlinux/dmapool.hlinux/err.hlinux/io.hlinux/irq.hlinux/module.hlinux/of.hlinux/pagemap.hlinux/platform_device.hlinux/reset.hlinux/serial.hlinux/serial_8250.hlinux/serial_core.hlinux/serial_reg.hlinux/slab.hlinux/string.hlinux/termios.hlinux/tty.hlinux/tty_flip.h
Detected Declarations
struct tegra_uart_chip_datastruct tegra_baud_tolerancestruct tegra_uart_portfunction tegra_uart_readfunction tegra_uart_writefunction tegra_uart_get_mctrlfunction set_rtsfunction set_dtrfunction set_loopbkfunction tegra_uart_set_mctrlfunction tegra_uart_break_ctlfunction tegra_uart_wait_cycle_timefunction tegra_uart_wait_sym_timefunction tegra_uart_wait_fifo_mode_enabledfunction tegra_uart_fifo_resetfunction tegra_get_tolerance_ratefunction tegra_check_rate_in_rangefunction tegra_set_baudratefunction tegra_uart_decode_rx_errorfunction tegra_uart_request_portfunction tegra_uart_release_portfunction tegra_uart_start_pio_txfunction tegra_uart_tx_dma_completefunction tegra_uart_start_tx_dmafunction tegra_uart_start_next_txfunction tegra_uart_start_txfunction tegra_uart_tx_emptyfunction tegra_uart_stop_txfunction tegra_uart_handle_tx_piofunction tegra_uart_handle_rx_piofunction tegra_uart_copy_rx_to_ttyfunction do_handle_rx_piofunction tegra_uart_rx_buffer_pushfunction tegra_uart_rx_dma_completefunction tegra_uart_terminate_rx_dmafunction tegra_uart_handle_rx_dmafunction tegra_uart_start_rx_dmafunction tegra_uart_handle_modem_signal_changefunction tegra_uart_isrfunction tegra_uart_stop_rxfunction tegra_uart_hw_deinitfunction tegra_uart_hw_initfunction tegra_uart_dma_channel_freefunction tegra_uart_dma_channel_allocatefunction tegra_uart_startupfunction tegra_uart_flush_bufferfunction tegra_uart_shutdownfunction tegra_uart_enable_ms
Annotated Snippet
module_init(tegra_uart_init);
module_exit(tegra_uart_exit);
MODULE_ALIAS("platform:serial-tegra");
MODULE_DESCRIPTION("High speed UART driver for tegra chipset");
MODULE_AUTHOR("Laxman Dewangan <ldewangan@nvidia.com>");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/debugfs.h`, `linux/delay.h`, `linux/dmaengine.h`, `linux/dma-mapping.h`, `linux/dmapool.h`, `linux/err.h`, `linux/io.h`.
- Detected declarations: `struct tegra_uart_chip_data`, `struct tegra_baud_tolerance`, `struct tegra_uart_port`, `function tegra_uart_read`, `function tegra_uart_write`, `function tegra_uart_get_mctrl`, `function set_rts`, `function set_dtr`, `function set_loopbk`, `function tegra_uart_set_mctrl`.
- 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.