drivers/tty/serial/clps711x.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/clps711x.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/clps711x.c- Extension
.c- Size
- 13618 bytes
- Lines
- 562
- 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/module.hlinux/device.hlinux/console.hlinux/serial_core.hlinux/serial.hlinux/clk.hlinux/io.hlinux/tty.hlinux/tty_flip.hlinux/ioport.hlinux/of.hlinux/platform_device.hlinux/regmap.hlinux/mfd/syscon.hlinux/mfd/syscon/clps711x.hserial_mctrl_gpio.h
Detected Declarations
struct clps711x_portfunction uart_clps711x_stop_txfunction uart_clps711x_start_txfunction uart_clps711x_int_rxfunction uart_clps711x_int_txfunction uart_clps711x_tx_emptyfunction uart_clps711x_get_mctrlfunction uart_clps711x_set_mctrlfunction uart_clps711x_break_ctlfunction uart_clps711x_set_ldiscfunction uart_clps711x_startupfunction uart_clps711x_shutdownfunction uart_clps711x_set_termiosfunction uart_clps711x_config_portfunction uart_clps711x_nop_voidfunction uart_clps711x_console_putcharfunction uart_clps711x_console_writefunction uart_clps711x_console_setupfunction uart_clps711x_probefunction uart_clps711x_removefunction uart_clps711x_initfunction uart_clps711x_exitmodule init uart_clps711x_init
Annotated Snippet
module_init(uart_clps711x_init);
static void __exit uart_clps711x_exit(void)
{
platform_driver_unregister(&clps711x_uart_platform);
uart_unregister_driver(&clps711x_uart);
}
module_exit(uart_clps711x_exit);
MODULE_AUTHOR("Deep Blue Solutions Ltd");
MODULE_DESCRIPTION("CLPS711X serial driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/device.h`, `linux/console.h`, `linux/serial_core.h`, `linux/serial.h`, `linux/clk.h`, `linux/io.h`, `linux/tty.h`.
- Detected declarations: `struct clps711x_port`, `function uart_clps711x_stop_tx`, `function uart_clps711x_start_tx`, `function uart_clps711x_int_rx`, `function uart_clps711x_int_tx`, `function uart_clps711x_tx_empty`, `function uart_clps711x_get_mctrl`, `function uart_clps711x_set_mctrl`, `function uart_clps711x_break_ctl`, `function uart_clps711x_set_ldisc`.
- 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.