drivers/tty/serial/imx.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/imx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/imx.c- Extension
.c- Size
- 80119 bytes
- Lines
- 2881
- 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/circ_buf.hlinux/module.hlinux/ioport.hlinux/init.hlinux/console.hlinux/sysrq.hlinux/platform_device.hlinux/tty.hlinux/tty_flip.hlinux/serial_core.hlinux/serial.hlinux/clk.hlinux/delay.hlinux/ktime.hlinux/pinctrl/consumer.hlinux/rational.hlinux/slab.hlinux/of.hlinux/io.hlinux/iopoll.hlinux/dma-mapping.hlinux/irq.hlinux/dma/imx-dma.hserial_mctrl_gpio.h
Detected Declarations
struct imx_uart_datastruct imx_portstruct imx_port_ucrsenum imx_uart_typeenum imx_tx_statefunction imx_uart_writelfunction imx_uart_readlfunction imx_uart_uts_regfunction imx_uart_is_imx1function imx_uart_ucrs_savefunction imx_uart_ucrs_restorefunction imx_uart_rts_activefunction imx_uart_rts_inactivefunction start_hrtimer_msfunction imx_uart_soft_resetfunction imx_uart_disable_loopback_rs485function imx_uart_start_rxfunction imx_uart_stop_txfunction imx_uart_stop_rx_with_loopback_ctrlfunction imx_uart_stop_rxfunction imx_uart_enable_msfunction imx_uart_transmit_bufferfunction imx_uart_dma_tx_callbackfunction imx_uart_dma_txfunction imx_uart_start_txfunction imx_uart_stop_txfunction __imx_uart_rtsintfunction imx_uart_rtsintfunction imx_uart_txintfunction floodfunction __imx_uart_rxintfunction imx_uart_rxintfunction imx_uart_get_hwmctrlfunction imx_uart_mctrl_checkfunction imx_uart_intfunction imx_uart_tx_emptyfunction imx_uart_get_mctrlfunction imx_uart_set_mctrlfunction imx_uart_break_ctlfunction imx_uart_timeoutfunction interruptsfunction imx_uart_start_rx_dmafunction imx_uart_clear_rx_errorsfunction imx_uart_setup_ufcrfunction imx_uart_dma_exitfunction imx_uart_dma_initfunction imx_uart_enable_dmafunction imx_uart_disable_dma
Annotated Snippet
module_init(imx_uart_init);
module_exit(imx_uart_exit);
MODULE_AUTHOR("Sascha Hauer");
MODULE_DESCRIPTION("IMX generic serial port driver");
MODULE_LICENSE("GPL");
MODULE_ALIAS("platform:imx-uart");
Annotation
- Immediate include surface: `linux/circ_buf.h`, `linux/module.h`, `linux/ioport.h`, `linux/init.h`, `linux/console.h`, `linux/sysrq.h`, `linux/platform_device.h`, `linux/tty.h`.
- Detected declarations: `struct imx_uart_data`, `struct imx_port`, `struct imx_port_ucrs`, `enum imx_uart_type`, `enum imx_tx_state`, `function imx_uart_writel`, `function imx_uart_readl`, `function imx_uart_uts_reg`, `function imx_uart_is_imx1`, `function imx_uart_ucrs_save`.
- 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.