arch/powerpc/platforms/pasemi/gpio_mdio.c
Source file repositories/reference/linux-study-clean/arch/powerpc/platforms/pasemi/gpio_mdio.c
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/platforms/pasemi/gpio_mdio.c- Extension
.c- Size
- 6287 bytes
- Lines
- 326
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- Inferred role
- Architecture Layer: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- CPU and platform-specific kernel glue: boot entry, traps, syscall entry, interrupts, page tables, context switch, and low-level barriers.
- 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/io.hlinux/module.hlinux/types.hlinux/slab.hlinux/sched.hlinux/errno.hlinux/ioport.hlinux/interrupt.hlinux/phy.hlinux/of_address.hlinux/of_mdio.hlinux/platform_device.h
Detected Declarations
struct gpio_privfunction mdio_lofunction mdio_hifunction mdc_lofunction mdc_hifunction mdio_activefunction mdio_tristatefunction mdio_readfunction clock_outfunction bitbang_prefunction gpio_mdio_readfunction gpio_mdio_writefunction gpio_mdio_resetfunction gpio_mdio_probefunction gpio_mdio_removefunction gpio_mdio_initfunction gpio_mdio_exitmodule init gpio_mdio_init
Annotated Snippet
module_init(gpio_mdio_init);
static void __exit gpio_mdio_exit(void)
{
platform_driver_unregister(&gpio_mdio_driver);
if (gpio_regs)
iounmap(gpio_regs);
}
module_exit(gpio_mdio_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Olof Johansson <olof@lixom.net>");
MODULE_DESCRIPTION("Driver for MDIO over GPIO on PA Semi PWRficient-based boards");
Annotation
- Immediate include surface: `linux/io.h`, `linux/module.h`, `linux/types.h`, `linux/slab.h`, `linux/sched.h`, `linux/errno.h`, `linux/ioport.h`, `linux/interrupt.h`.
- Detected declarations: `struct gpio_priv`, `function mdio_lo`, `function mdio_hi`, `function mdc_lo`, `function mdc_hi`, `function mdio_active`, `function mdio_tristate`, `function mdio_read`, `function clock_out`, `function bitbang_pre`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.