drivers/usb/renesas_usbhs/mod.c
Source file repositories/reference/linux-study-clean/drivers/usb/renesas_usbhs/mod.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/renesas_usbhs/mod.c- Extension
.c- Size
- 8319 bytes
- Lines
- 376
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/interrupt.hcommon.hmod.h
Detected Declarations
function Copyrightfunction usbhsm_autonomy_irq_vbusfunction usbhs_mod_autonomy_modefunction usbhs_mod_non_autonomy_modefunction usbhs_mod_registerfunction usbhs_mod_is_hostfunction usbhs_mod_changefunction usbhs_mod_probefunction usbhs_mod_removefunction usbhs_status_get_device_statefunction usbhs_status_get_ctrl_stagefunction usbhs_status_get_each_irqfunction usbhs_interruptfunction usbhs_irq_callback_update
Annotated Snippet
if (mod->irq_empty && mod->irq_bempsts) {
usbhs_write(priv, BEMPENB, mod->irq_bempsts);
intenb0 |= BEMPE;
}
if (mod->irq_ready && mod->irq_brdysts) {
usbhs_write(priv, BRDYENB, mod->irq_brdysts);
intenb0 |= BRDYE;
}
if (usbhs_mod_is_host(priv)) {
/*
* INTSTS1
*/
if (mod->irq_attch)
intenb1 |= ATTCHE;
if (mod->irq_dtch)
intenb1 |= DTCHE;
if (mod->irq_sign)
intenb1 |= SIGNE;
if (mod->irq_sack)
intenb1 |= SACKE;
}
}
if (intenb0)
usbhs_write(priv, INTENB0, intenb0);
if (usbhs_mod_is_host(priv) && intenb1)
usbhs_write(priv, INTENB1, intenb1);
}
Annotation
- Immediate include surface: `linux/interrupt.h`, `common.h`, `mod.h`.
- Detected declarations: `function Copyright`, `function usbhsm_autonomy_irq_vbus`, `function usbhs_mod_autonomy_mode`, `function usbhs_mod_non_autonomy_mode`, `function usbhs_mod_register`, `function usbhs_mod_is_host`, `function usbhs_mod_change`, `function usbhs_mod_probe`, `function usbhs_mod_remove`, `function usbhs_status_get_device_state`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: source 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.