drivers/tty/serial/uartlite.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/uartlite.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/uartlite.c- Extension
.c- Size
- 22728 bytes
- Lines
- 950
- 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/platform_device.hlinux/module.hlinux/bitfield.hlinux/console.hlinux/serial.hlinux/serial_core.hlinux/tty.hlinux/tty_flip.hlinux/delay.hlinux/interrupt.hlinux/init.hlinux/io.hlinux/iopoll.hlinux/of.hlinux/clk.hlinux/pm_runtime.h
Detected Declarations
struct uartlite_datastruct uartlite_reg_opsfunction uartlite_inbe32function uartlite_outbe32function uartlite_inle32function uartlite_outle32function uart_in32function uart_out32function ulite_receivefunction ulite_transmitfunction ulite_isrfunction ulite_tx_emptyfunction ulite_get_mctrlfunction ulite_set_mctrlfunction ulite_stop_rxfunction ulite_break_ctlfunction ulite_shutdownfunction ulite_set_termiosfunction ulite_release_portfunction ulite_request_portfunction ulite_config_portfunction ulite_verify_portfunction ulite_pmfunction ulite_get_poll_charfunction ulite_put_poll_charfunction ulite_console_wait_txfunction ulite_console_putcharfunction ulite_console_writefunction ulite_console_setupfunction early_uartlite_putcfunction early_uartlite_writefunction early_uartlite_setupfunction functionsfunction ulite_releasefunction ulite_suspendfunction ulite_resumefunction ulite_runtime_suspendfunction ulite_runtime_resumefunction ulite_probefunction ulite_removefunction ulite_initfunction ulite_exitmodule init ulite_init
Annotated Snippet
module_init(ulite_init);
module_exit(ulite_exit);
MODULE_AUTHOR("Peter Korsgaard <jacmet@sunsite.dk>");
MODULE_DESCRIPTION("Xilinx uartlite serial driver");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/platform_device.h`, `linux/module.h`, `linux/bitfield.h`, `linux/console.h`, `linux/serial.h`, `linux/serial_core.h`, `linux/tty.h`, `linux/tty_flip.h`.
- Detected declarations: `struct uartlite_data`, `struct uartlite_reg_ops`, `function uartlite_inbe32`, `function uartlite_outbe32`, `function uartlite_inle32`, `function uartlite_outle32`, `function uart_in32`, `function uart_out32`, `function ulite_receive`, `function ulite_transmit`.
- 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.