drivers/misc/pch_phub.c
Source file repositories/reference/linux-study-clean/drivers/misc/pch_phub.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/pch_phub.c- Extension
.c- Size
- 27674 bytes
- Lines
- 880
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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.
- 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/kernel.hlinux/types.hlinux/fs.hlinux/hex.hlinux/uaccess.hlinux/string.hlinux/pci.hlinux/io.hlinux/delay.hlinux/mutex.hlinux/if_ether.hlinux/ctype.hlinux/dmi.hlinux/of.h
Detected Declarations
struct pch_phub_regfunction pch_phub_read_modify_write_regfunction pch_phub_save_reg_conffunction pch_phub_restore_reg_conffunction pch_phub_read_serial_romfunction pch_phub_write_serial_romfunction pch_phub_read_serial_rom_valfunction pch_phub_write_serial_rom_valfunction pch_phub_gbe_serial_rom_conffunction pch_phub_gbe_serial_rom_conf_mpfunction pch_phub_read_gbe_mac_addrfunction pch_phub_write_gbe_mac_addrfunction pch_phub_bin_readfunction pch_phub_bin_writefunction show_pch_macfunction store_pch_macfunction pch_phub_probefunction pch_phub_removefunction pch_phub_suspendfunction pch_phub_resume
Annotated Snippet
static struct pci_driver pch_phub_driver = {
.name = "pch_phub",
.id_table = pch_phub_pcidev_id,
.probe = pch_phub_probe,
.remove = pch_phub_remove,
.driver.pm = &pch_phub_pm_ops,
};
module_pci_driver(pch_phub_driver);
MODULE_DESCRIPTION("Intel EG20T PCH/LAPIS Semiconductor IOH(ML7213/ML7223) PHUB");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/types.h`, `linux/fs.h`, `linux/hex.h`, `linux/uaccess.h`, `linux/string.h`, `linux/pci.h`.
- Detected declarations: `struct pch_phub_reg`, `function pch_phub_read_modify_write_reg`, `function pch_phub_save_reg_conf`, `function pch_phub_restore_reg_conf`, `function pch_phub_read_serial_rom`, `function pch_phub_write_serial_rom`, `function pch_phub_read_serial_rom_val`, `function pch_phub_write_serial_rom_val`, `function pch_phub_gbe_serial_rom_conf`, `function pch_phub_gbe_serial_rom_conf_mp`.
- Atlas domain: Driver Families / drivers/misc.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.