drivers/tty/serial/qcom_geni_serial.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/qcom_geni_serial.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/qcom_geni_serial.c- Extension
.c- Size
- 57916 bytes
- Lines
- 2117
- 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/clk.hlinux/console.hlinux/io.hlinux/iopoll.hlinux/irq.hlinux/module.hlinux/of.hlinux/pm_domain.hlinux/pm_opp.hlinux/platform_device.hlinux/pm_runtime.hlinux/pm_wakeirq.hlinux/soc/qcom/geni-se.hlinux/serial.hlinux/serial_core.hlinux/slab.hlinux/tty.hlinux/tty_flip.hdt-bindings/interconnect/qcom,icc.h
Detected Declarations
struct qcom_geni_device_datastruct qcom_geni_private_datastruct qcom_geni_serial_portfunction qcom_geni_set_rs485_modefunction qcom_geni_serial_request_portfunction qcom_geni_serial_config_portfunction qcom_geni_serial_get_mctrlfunction qcom_geni_serial_set_mctrlfunction qcom_geni_serial_main_activefunction qcom_geni_serial_secondary_activefunction qcom_geni_serial_poll_bitfieldfunction qcom_geni_serial_poll_bitfunction qcom_geni_serial_setup_txfunction qcom_geni_serial_poll_tx_donefunction qcom_geni_serial_abort_rxfunction qcom_geni_serial_get_charfunction qcom_geni_serial_poll_put_charfunction qcom_geni_serial_poll_initfunction qcom_geni_serial_drain_fifofunction qcom_geni_serial_wr_charfunction __qcom_geni_serial_console_writefunction qcom_geni_serial_console_writefunction handle_rx_consolefunction handle_rx_consolefunction qcom_geni_serial_tx_emptyfunction qcom_geni_serial_stop_tx_dmafunction qcom_geni_serial_start_tx_dmafunction qcom_geni_serial_start_tx_fifofunction qcom_geni_serial_stop_tx_fifofunction __qcom_geni_serial_cancel_tx_cmdfunction qcom_geni_serial_cancel_tx_cmdfunction qcom_geni_serial_handle_rx_fifofunction qcom_geni_serial_stop_rx_fifofunction qcom_geni_serial_start_rx_fifofunction qcom_geni_serial_stop_rx_dmafunction qcom_geni_serial_start_rx_dmafunction qcom_geni_serial_handle_rx_dmafunction qcom_geni_serial_start_rxfunction qcom_geni_serial_stop_rxfunction qcom_geni_serial_stop_txfunction qcom_geni_serial_send_chunk_fifofunction qcom_geni_serial_handle_tx_fifofunction qcom_geni_serial_handle_tx_dmafunction qcom_geni_serial_isrfunction setup_fifosfunction qcom_geni_serial_shutdownfunction qcom_geni_serial_flush_bufferfunction qcom_geni_serial_port_setup
Annotated Snippet
module_init(qcom_geni_serial_init);
static void __exit qcom_geni_serial_exit(void)
{
platform_driver_unregister(&qcom_geni_serial_platform_driver);
console_unregister(&qcom_geni_console_driver);
uart_unregister_driver(&qcom_geni_uart_driver);
}
module_exit(qcom_geni_serial_exit);
MODULE_DESCRIPTION("Serial driver for GENI based QUP cores");
MODULE_LICENSE("GPL v2");
Annotation
- Immediate include surface: `linux/clk.h`, `linux/console.h`, `linux/io.h`, `linux/iopoll.h`, `linux/irq.h`, `linux/module.h`, `linux/of.h`, `linux/pm_domain.h`.
- Detected declarations: `struct qcom_geni_device_data`, `struct qcom_geni_private_data`, `struct qcom_geni_serial_port`, `function qcom_geni_set_rs485_mode`, `function qcom_geni_serial_request_port`, `function qcom_geni_serial_config_port`, `function qcom_geni_serial_get_mctrl`, `function qcom_geni_serial_set_mctrl`, `function qcom_geni_serial_main_active`, `function qcom_geni_serial_secondary_active`.
- 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.