drivers/usb/typec/mux/intel_pmc_mux.c
Source file repositories/reference/linux-study-clean/drivers/usb/typec/mux/intel_pmc_mux.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/typec/mux/intel_pmc_mux.c- Extension
.c- Size
- 22531 bytes
- Lines
- 852
- Domain
- Driver Families
- Bucket
- drivers/usb
- 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.
- 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/acpi.hlinux/module.hlinux/platform_data/x86/intel_scu_ipc.hlinux/platform_device.hlinux/property.hlinux/usb/pd.hlinux/usb/role.hlinux/usb/typec_mux.hlinux/usb/typec_dp.hlinux/usb/typec_tbt.hlinux/debugfs.hlinux/usb.h
Detected Declarations
struct altmode_reqstruct pmc_usbstruct pmc_usb_portstruct pmc_usbfunction update_port_statusfunction sbu_orientationfunction hsl_orientationfunction is_pmc_mux_tbtfunction pmc_usb_send_commandfunction pmc_usb_commandfunction pmc_usb_mux_dp_hpdfunction pmc_usb_mux_dpfunction pmc_usb_mux_tbtfunction pmc_usb_mux_usb4function pmc_usb_mux_safe_statefunction pmc_usb_disconnectfunction pmc_usb_connectfunction pmc_usb_mux_setfunction pmc_usb_set_orientationfunction pmc_usb_set_rolefunction pmc_usb_register_portfunction pmc_usb_probe_iomfunction port_iom_status_showfunction pmc_mux_port_debugfs_initfunction pmc_usb_probefunction pmc_usb_removefunction pmc_usb_initfunction pmc_usb_exitmodule init pmc_usb_init
Annotated Snippet
module_init(pmc_usb_init);
static void __exit pmc_usb_exit(void)
{
platform_driver_unregister(&pmc_usb_driver);
debugfs_remove(pmc_mux_debugfs_root);
}
module_exit(pmc_usb_exit);
MODULE_AUTHOR("Heikki Krogerus <heikki.krogerus@linux.intel.com>");
MODULE_LICENSE("GPL v2");
MODULE_DESCRIPTION("Intel PMC USB mux control");
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/module.h`, `linux/platform_data/x86/intel_scu_ipc.h`, `linux/platform_device.h`, `linux/property.h`, `linux/usb/pd.h`, `linux/usb/role.h`, `linux/usb/typec_mux.h`.
- Detected declarations: `struct altmode_req`, `struct pmc_usb`, `struct pmc_usb_port`, `struct pmc_usb`, `function update_port_status`, `function sbu_orientation`, `function hsl_orientation`, `function is_pmc_mux_tbt`, `function pmc_usb_send_command`, `function pmc_usb_command`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration implementation candidate.
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.