drivers/tty/serial/lpc32xx_hs.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/lpc32xx_hs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/lpc32xx_hs.c- Extension
.c- Size
- 18762 bytes
- Lines
- 735
- 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/module.hlinux/ioport.hlinux/init.hlinux/console.hlinux/sysrq.hlinux/tty.hlinux/tty_flip.hlinux/serial_core.hlinux/serial.hlinux/platform_device.hlinux/delay.hlinux/nmi.hlinux/io.hlinux/irq.hlinux/of.hlinux/sizes.hlinux/soc/nxp/lpc32xx-misc.h
Detected Declarations
struct lpc32xx_hsuart_portfunction wait_for_xmit_emptyfunction wait_for_xmit_readyfunction lpc32xx_hsuart_console_putcharfunction lpc32xx_hsuart_console_writefunction lpc32xx_hsuart_console_setupfunction lpc32xx_hsuart_console_initfunction __serial_get_clock_divfunction __serial_uart_flushfunction __serial_lpc32xx_rxfunction serial_lpc32xx_tx_readyfunction __serial_lpc32xx_txfunction serial_lpc32xx_interruptfunction serial_lpc32xx_tx_emptyfunction serial_lpc32xx_set_mctrlfunction serial_lpc32xx_stop_txfunction serial_lpc32xx_start_txfunction serial_lpc32xx_stop_rxfunction serial_lpc32xx_break_ctlfunction serial_lpc32xx_startupfunction serial_lpc32xx_shutdownfunction serial_lpc32xx_set_termiosfunction serial_lpc32xx_release_portfunction serial_lpc32xx_request_portfunction serial_lpc32xx_config_portfunction serial_lpc32xx_verify_portfunction serial_hs_lpc32xx_probefunction serial_hs_lpc32xx_removefunction serial_hs_lpc32xx_suspendfunction serial_hs_lpc32xx_resumefunction lpc32xx_hsuart_initfunction lpc32xx_hsuart_exitmodule init lpc32xx_hsuart_init
Annotated Snippet
module_init(lpc32xx_hsuart_init);
module_exit(lpc32xx_hsuart_exit);
MODULE_AUTHOR("Kevin Wells <kevin.wells@nxp.com>");
MODULE_AUTHOR("Roland Stigge <stigge@antcom.de>");
MODULE_DESCRIPTION("NXP LPC32XX High Speed UART driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/ioport.h`, `linux/init.h`, `linux/console.h`, `linux/sysrq.h`, `linux/tty.h`, `linux/tty_flip.h`, `linux/serial_core.h`.
- Detected declarations: `struct lpc32xx_hsuart_port`, `function wait_for_xmit_empty`, `function wait_for_xmit_ready`, `function lpc32xx_hsuart_console_putchar`, `function lpc32xx_hsuart_console_write`, `function lpc32xx_hsuart_console_setup`, `function lpc32xx_hsuart_console_init`, `function __serial_get_clock_div`, `function __serial_uart_flush`, `function __serial_lpc32xx_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.