drivers/tty/serial/cpm_uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/cpm_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/cpm_uart.c- Extension
.c- Size
- 39423 bytes
- Lines
- 1605
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/tty.hlinux/tty_flip.hlinux/ioport.hlinux/init.hlinux/serial.hlinux/console.hlinux/sysrq.hlinux/device.hlinux/memblock.hlinux/dma-mapping.hlinux/of_address.hlinux/of_irq.hlinux/of_platform.hlinux/gpio/consumer.hlinux/clk.hsysdev/fsl_soc.hasm/io.hasm/irq.hasm/delay.hasm/udbg.hlinux/serial_core.hlinux/kernel.hcpm_uart.h
Detected Declarations
function cpm_line_cr_cmdfunction cpm_uart_tx_emptyfunction cpm_uart_set_mctrlfunction cpm_uart_get_mctrlfunction cpm_uart_stop_txfunction cpm_uart_start_txfunction cpm_uart_stop_rxfunction cpm_uart_break_ctlfunction cpm_uart_int_txfunction cpm_uart_int_rxfunction cpm_uart_intfunction cpm_uart_startupfunction cpm_uart_wait_until_sendfunction cpm_uart_shutdownfunction cpm_uart_set_termiosfunction serial_structfunction cpm_uart_tx_pumpfunction cpm_uart_initbdfunction cpm_uart_init_sccfunction cpm_uart_init_smcfunction cpm_uart_allocbuffunction cpm_uart_freebuffunction cpm_uart_request_portfunction cpm_uart_release_portfunction cpm_uart_config_portfunction cpm_uart_early_writefunction poll_wait_keyfunction cpm_get_poll_charfunction cpm_put_poll_charfunction udbg_cpm_putcfunction udbg_cpm_getc_pollfunction udbg_cpm_getcfunction cpm_uart_unmap_pramfunction cpm_uart_init_portfunction of_device_is_compatiblefunction cpm_uart_console_writefunction cpm_uart_console_setupfunction for_each_node_by_typefunction cpm_uart_console_initfunction cpm_uart_probefunction cpm_uart_removefunction cpm_uart_initfunction cpm_uart_exitmodule init cpm_uart_init
Annotated Snippet
module_init(cpm_uart_init);
module_exit(cpm_uart_exit);
MODULE_AUTHOR("Kumar Gala/Antoniou Pantelis");
MODULE_DESCRIPTION("CPM SCC/SMC port driver $Revision: 0.01 $");
MODULE_LICENSE("GPL");
MODULE_ALIAS_CHARDEV(SERIAL_CPM_MAJOR, SERIAL_CPM_MINOR);
Annotation
- Immediate include surface: `linux/module.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/ioport.h`, `linux/init.h`, `linux/serial.h`, `linux/console.h`, `linux/sysrq.h`.
- Detected declarations: `function cpm_line_cr_cmd`, `function cpm_uart_tx_empty`, `function cpm_uart_set_mctrl`, `function cpm_uart_get_mctrl`, `function cpm_uart_stop_tx`, `function cpm_uart_start_tx`, `function cpm_uart_stop_rx`, `function cpm_uart_break_ctl`, `function cpm_uart_int_tx`, `function cpm_uart_int_rx`.
- Atlas domain: Driver Families / drivers/tty.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- 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.