drivers/tty/serial/8250/8250_pci.c
Source file repositories/reference/linux-study-clean/drivers/tty/serial/8250/8250_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/tty/serial/8250/8250_pci.c- Extension
.c- Size
- 163081 bytes
- Lines
- 6325
- 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/module.hlinux/pci.hlinux/string.hlinux/kernel.hlinux/math.hlinux/slab.hlinux/delay.hlinux/tty.hlinux/serial_reg.hlinux/serial_core.hlinux/8250_pci.hlinux/bitops.hlinux/bitfield.hasm/byteorder.hasm/io.h8250.h8250_pcilib.h
Detected Declarations
struct pci_serial_quirkstruct f815xxa_datastruct serial_privateenum pci_board_num_tfunction moan_devicefunction setup_portfunction addidata_apci7800_setupfunction afavlab_setupfunction UARTsfunction pci_hp_diva_setupfunction pci_inteli960ni_initfunction pci_plx9050_initfunction pci_plx9050_exitfunction pci_ni8420_exitfunction pci_ni8430_exitfunction sbs_setupfunction sbs_initfunction sbs_exitfunction pci_siig10x_initfunction pci_siig20x_initfunction pci_siig_initfunction pci_siig_setupfunction pci_timedia_probefunction pci_timedia_initfunction pci_timedia_setupfunction titan_400l_800l_setupfunction pci_xircom_initfunction pci_ni8420_initfunction pci_ni8430_initfunction pci_ni8430_setupfunction pci_netmos_9900_setupfunction pci_netmos_9900_numportsfunction pci_netmos_initfunction pci_ite887x_initfunction pci_ite887x_exitfunction pci_oxsemi_tornado_pfunction pci_oxsemi_tornado_initfunction inclusivefunction registerfunction prescalerfunction pci_oxsemi_tornado_setupfunction pci_quatech_rqoprfunction pci_quatech_wqoprfunction pci_quatech_rqmcrfunction pci_quatech_wqmcrfunction pci_quatech_has_qmcrfunction pci_quatech_testfunction pci_quatech_clock
Annotated Snippet
static struct pci_driver serial_pci_driver = {
.name = "serial",
.probe = pciserial_init_one,
.remove = pciserial_remove_one,
.driver = {
.pm = &pciserial_pm_ops,
},
.id_table = serial_pci_tbl,
.err_handler = &serial8250_err_handler,
};
module_pci_driver(serial_pci_driver);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("Generic 8250/16x50 PCI serial probe module");
MODULE_DEVICE_TABLE(pci, serial_pci_tbl);
MODULE_IMPORT_NS("SERIAL_8250_PCI");
Annotation
- Immediate include surface: `linux/module.h`, `linux/pci.h`, `linux/string.h`, `linux/kernel.h`, `linux/math.h`, `linux/slab.h`, `linux/delay.h`, `linux/tty.h`.
- Detected declarations: `struct pci_serial_quirk`, `struct f815xxa_data`, `struct serial_private`, `enum pci_board_num_t`, `function moan_device`, `function setup_port`, `function addidata_apci7800_setup`, `function afavlab_setup`, `function UARTs`, `function pci_hp_diva_setup`.
- 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.