drivers/tty/serial/mpc52xx_uart.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/mpc52xx_uart.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/mpc52xx_uart.c- Extension
.c- Size
- 50955 bytes
- Lines
- 1919
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/module.hlinux/tty.hlinux/tty_flip.hlinux/serial.hlinux/sysrq.hlinux/console.hlinux/delay.hlinux/io.hlinux/of.hlinux/of_address.hlinux/of_irq.hlinux/platform_device.hlinux/clk.hasm/mpc52xx.hasm/mpc52xx_psc.hlinux/serial_core.h
Detected Declarations
struct psc_opsstruct psc_fifocfunction mpc52xx_set_divisorfunction mpc52xx_psc_get_statusfunction mpc52xx_psc_get_ipcrfunction mpc52xx_psc_commandfunction mpc52xx_psc_set_modefunction mpc52xx_psc_set_rtsfunction mpc52xx_psc_enable_msfunction mpc52xx_psc_set_sicrfunction mpc52xx_psc_set_imrfunction mpc52xx_psc_get_mr1function mpc52xx_psc_fifo_initfunction mpc52xx_psc_raw_rx_rdyfunction mpc52xx_psc_raw_tx_rdyfunction mpc52xx_psc_rx_rdyfunction mpc52xx_psc_tx_rdyfunction mpc52xx_psc_tx_emptyfunction mpc52xx_psc_start_txfunction mpc52xx_psc_stop_txfunction mpc52xx_psc_stop_rxfunction mpc52xx_psc_rx_clr_irqfunction mpc52xx_psc_read_charfunction mpc52xx_psc_cw_disable_intsfunction mpc52xx_psc_cw_restore_intsfunction mpc5200_psc_set_baudratefunction mpc5200b_psc_set_baudratefunction mpc52xx_psc_get_irqfunction mpc52xx_psc_handle_irqfunction mpc512x_psc_fifo_initfunction mpc512x_psc_raw_rx_rdyfunction mpc512x_psc_raw_tx_rdyfunction mpc512x_psc_rx_rdyfunction mpc512x_psc_tx_rdyfunction mpc512x_psc_tx_emptyfunction mpc512x_psc_stop_rxfunction mpc512x_psc_start_txfunction mpc512x_psc_stop_txfunction mpc512x_psc_rx_clr_irqfunction mpc512x_psc_tx_clr_irqfunction mpc512x_psc_write_charfunction mpc512x_psc_read_charfunction mpc512x_psc_cw_disable_intsfunction mpc512x_psc_cw_restore_intsfunction mpc512x_psc_set_baudratefunction mpc512x_psc_fifoc_initfunction mpc512x_psc_fifoc_uninitfunction mpc512x_psc_handle_irq
Annotated Snippet
module_init(mpc52xx_uart_init);
module_exit(mpc52xx_uart_exit);
MODULE_AUTHOR("Sylvain Munaut <tnt@246tNt.com>");
MODULE_DESCRIPTION("Freescale MPC52xx PSC UART");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/device.h`, `linux/module.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/serial.h`, `linux/sysrq.h`, `linux/console.h`, `linux/delay.h`.
- Detected declarations: `struct psc_ops`, `struct psc_fifoc`, `function mpc52xx_set_divisor`, `function mpc52xx_psc_get_status`, `function mpc52xx_psc_get_ipcr`, `function mpc52xx_psc_command`, `function mpc52xx_psc_set_mode`, `function mpc52xx_psc_set_rts`, `function mpc52xx_psc_enable_ms`, `function mpc52xx_psc_set_sicr`.
- 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.