drivers/tty/serial/8250/8250_pci1xxxx.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/8250/8250_pci1xxxx.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/8250/8250_pci1xxxx.c- Extension
.c- Size
- 24672 bytes
- Lines
- 888
- Domain
- Driver Families
- Bucket
- drivers/tty
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- 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/array_size.hlinux/bitfield.hlinux/bits.hlinux/circ_buf.hlinux/device.hlinux/errno.hlinux/gfp_types.hlinux/io.hlinux/iopoll.hlinux/minmax.hlinux/module.hlinux/mutex.hlinux/overflow.hlinux/pci.hlinux/pm.hlinux/serial_core.hlinux/serial_reg.hlinux/serial_8250.hlinux/spinlock.hlinux/string.hlinux/time.hlinux/tty.hlinux/tty_flip.hlinux/types.hlinux/units.hasm/byteorder.h8250.h8250_pcilib.h
Detected Declarations
struct pci1xxxx_8250function pci1xxxx_set_sys_lockfunction pci1xxxx_acquire_sys_lockfunction pci1xxxx_release_sys_lockfunction pci1xxxx_get_num_portsfunction pci1xxxx_get_divisorfunction pci1xxxx_set_divisorfunction pci1xxxx_set_mctrlfunction pci1xxxx_rs485_configfunction pci1xxxx_read_burst_statusfunction pci1xxxx_process_read_datafunction pci1xxxx_rx_burstfunction pci1xxxx_process_write_datafunction pci1xxxx_tx_burstfunction pci1xxxx_handle_irqfunction pci1xxxx_port_suspendfunction pci1xxxx_port_resumefunction pci1xxxx_suspendfunction pci1xxxx_resumefunction pci1xxxx_setupfunction pci1xxxx_get_max_portfunction pci1xxxx_logical_to_physical_port_translatefunction pci1xxxx_get_device_revisionfunction pci1xxxx_serial_probefunction pci1xxxx_serial_remove
Annotated Snippet
static struct pci_driver pci1xxxx_pci_driver = {
.name = "pci1xxxx serial",
.probe = pci1xxxx_serial_probe,
.remove = pci1xxxx_serial_remove,
.driver = {
.pm = pm_sleep_ptr(&pci1xxxx_pm_ops),
},
.id_table = pci1xxxx_pci_tbl,
};
module_pci_driver(pci1xxxx_pci_driver);
static_assert((ARRAY_SIZE(logical_to_physical_port_idx) == PCI_SUBDEVICE_ID_EFAR_PCI1XXXX_1p3 + 1));
MODULE_IMPORT_NS("SERIAL_8250_PCI");
MODULE_DESCRIPTION("Microchip Technology Inc. PCIe to UART module");
MODULE_AUTHOR("Kumaravel Thiagarajan <kumaravel.thiagarajan@microchip.com>");
MODULE_AUTHOR("Tharun Kumar P <tharunkumar.pasumarthi@microchip.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/bitfield.h`, `linux/bits.h`, `linux/circ_buf.h`, `linux/device.h`, `linux/errno.h`, `linux/gfp_types.h`, `linux/io.h`.
- Detected declarations: `struct pci1xxxx_8250`, `function pci1xxxx_set_sys_lock`, `function pci1xxxx_acquire_sys_lock`, `function pci1xxxx_release_sys_lock`, `function pci1xxxx_get_num_ports`, `function pci1xxxx_get_divisor`, `function pci1xxxx_set_divisor`, `function pci1xxxx_set_mctrl`, `function pci1xxxx_rs485_config`, `function pci1xxxx_read_burst_status`.
- Atlas domain: Driver Families / drivers/tty.
- Implementation status: pattern 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.