drivers/tty/serial/ucc_uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/ucc_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/ucc_uart.c- Extension
.c- Size
- 41837 bytes
- Lines
- 1532
- 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/platform_device.hlinux/serial.hlinux/serial_core.hlinux/slab.hlinux/tty.hlinux/tty_flip.hlinux/io.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/dma-mapping.hsoc/fsl/qe/ucc_slow.hlinux/firmware.hsoc/fsl/cpm.hasm/reg.h
Detected Declarations
struct ucc_uart_pramstruct uart_qe_portfunction physicalfunction physicalfunction readyfunction linesfunction qe_uart_stop_txfunction qe_uart_tx_pumpfunction qe_uart_start_txfunction qe_uart_stop_rxfunction qe_uart_break_ctlfunction qe_uart_int_rxfunction qe_uart_intfunction qe_uart_initbdfunction qe_uart_request_portfunction qe_uart_startupfunction qe_uart_shutdownfunction qe_uart_set_termiosfunction qe_uart_request_portfunction qe_uart_config_portfunction qe_uart_request_portfunction qe_uart_verify_portfunction soc_infofunction requst_firmware_nowaitfunction soft_uart_initfunction soft_uart_initfunction ucc_uart_probefunction ucc_uart_removefunction ucc_uart_initfunction ucc_uart_exitmodule init ucc_uart_init
Annotated Snippet
module_init(ucc_uart_init);
module_exit(ucc_uart_exit);
MODULE_DESCRIPTION("Freescale QUICC Engine (QE) UART");
MODULE_AUTHOR("Timur Tabi <timur@freescale.com>");
MODULE_LICENSE("GPL v2");
MODULE_ALIAS_CHARDEV_MAJOR(SERIAL_QE_MAJOR);
Annotation
- Immediate include surface: `linux/module.h`, `linux/platform_device.h`, `linux/serial.h`, `linux/serial_core.h`, `linux/slab.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/io.h`.
- Detected declarations: `struct ucc_uart_pram`, `struct uart_qe_port`, `function physical`, `function physical`, `function ready`, `function lines`, `function qe_uart_stop_tx`, `function qe_uart_tx_pump`, `function qe_uart_start_tx`, `function qe_uart_stop_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.