drivers/tty/serial/omap-serial.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/omap-serial.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/omap-serial.c- Extension
.c- Size
- 47849 bytes
- Lines
- 1838
- 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/init.hlinux/console.hlinux/serial.hlinux/serial_reg.hlinux/delay.hlinux/slab.hlinux/tty.hlinux/tty_flip.hlinux/platform_device.hlinux/io.hlinux/clk.hlinux/serial_core.hlinux/irq.hlinux/pm_runtime.hlinux/pm_wakeirq.hlinux/of.hlinux/of_irq.hlinux/gpio/consumer.hlinux/platform_data/serial-omap.h
Detected Declarations
struct uart_omap_dmastruct uart_omap_portfunction serial_infunction serial_outfunction serial_omap_clear_fifosfunction serial_omap_get_context_loss_countfunction serial_omap_enable_wakeupfunction calculate_baud_abs_difffunction serial_omap_baud_is_mode16function serial_omap_get_divisorfunction serial_omap_enable_msfunction serial_omap_stop_txfunction serial_omap_stop_rxfunction serial_omap_put_charfunction transmit_charsfunction serial_omap_enable_ier_thrifunction serial_omap_start_txfunction serial_omap_throttlefunction serial_omap_unthrottlefunction check_modem_statusfunction serial_omap_rlsifunction serial_omap_rdifunction serial_omap_irqfunction serial_omap_tx_emptyfunction serial_omap_get_mctrlfunction serial_omap_set_mctrlfunction serial_omap_break_ctlfunction serial_omap_startupfunction serial_omap_shutdownfunction serial_omap_uart_qos_workfunction serial_omap_set_termiosfunction serial_omap_pmfunction serial_omap_release_portfunction serial_omap_request_portfunction serial_omap_config_portfunction serial_omap_verify_portfunction serial_omap_typefunction wait_for_xmitrfunction serial_omap_poll_put_charfunction serial_omap_poll_get_charfunction omap_serial_early_infunction omap_serial_early_outfunction omap_serial_early_putcfunction early_omap_serial_writefunction early_omap_serial_setupfunction serial_omap_console_putcharfunction serial_omap_console_writefunction serial_omap_console_setup
Annotated Snippet
module_init(serial_omap_init);
module_exit(serial_omap_exit);
MODULE_DESCRIPTION("OMAP High Speed UART driver");
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Texas Instruments Inc");
Annotation
- Immediate include surface: `linux/module.h`, `linux/init.h`, `linux/console.h`, `linux/serial.h`, `linux/serial_reg.h`, `linux/delay.h`, `linux/slab.h`, `linux/tty.h`.
- Detected declarations: `struct uart_omap_dma`, `struct uart_omap_port`, `function serial_in`, `function serial_out`, `function serial_omap_clear_fifos`, `function serial_omap_get_context_loss_count`, `function serial_omap_enable_wakeup`, `function calculate_baud_abs_diff`, `function serial_omap_baud_is_mode16`, `function serial_omap_get_divisor`.
- 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.