drivers/pcmcia/bcm63xx_pcmcia.c
Source file repositories/reference/linux-study-clean/drivers/pcmcia/bcm63xx_pcmcia.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/pcmcia/bcm63xx_pcmcia.c- Extension
.c- Size
- 13565 bytes
- Lines
- 537
- Domain
- Driver Families
- Bucket
- drivers/pcmcia
- 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/kernel.hlinux/module.hlinux/ioport.hlinux/timer.hlinux/platform_device.hlinux/slab.hlinux/delay.hlinux/pci.hlinux/gpio.hbcm63xx_regs.hbcm63xx_io.hbcm63xx_pcmcia.h
Detected Declarations
function pcmcia_readlfunction pcmcia_writelfunction shouldfunction bcm63xx_pcmcia_suspendfunction set_socketfunction __get_socket_statusfunction bcm63xx_pcmcia_get_statusfunction bcm63xx_pcmcia_pollfunction bcm63xx_pcmcia_set_io_mapfunction bcm63xx_pcmcia_set_mem_mapfunction bcm63xx_drv_pcmcia_probefunction bcm63xx_drv_pcmcia_removefunction bcm63xx_cb_probefunction bcm63xx_cb_exitfunction bcm63xx_pcmcia_initfunction bcm63xx_pcmcia_exitmodule init bcm63xx_pcmcia_init
Annotated Snippet
static struct pci_driver bcm63xx_cardbus_driver = {
.name = "bcm63xx_cardbus",
.id_table = bcm63xx_cb_table,
.probe = bcm63xx_cb_probe,
.remove = bcm63xx_cb_exit,
};
#endif
/*
* if cardbus support is enabled, register our platform device after
* our fake cardbus bridge has been registered
*/
static int __init bcm63xx_pcmcia_init(void)
{
#ifdef CONFIG_CARDBUS
return pci_register_driver(&bcm63xx_cardbus_driver);
#else
return platform_driver_register(&bcm63xx_pcmcia_driver);
#endif
}
static void __exit bcm63xx_pcmcia_exit(void)
{
#ifdef CONFIG_CARDBUS
return pci_unregister_driver(&bcm63xx_cardbus_driver);
#else
platform_driver_unregister(&bcm63xx_pcmcia_driver);
#endif
}
module_init(bcm63xx_pcmcia_init);
module_exit(bcm63xx_pcmcia_exit);
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Maxime Bizon <mbizon@freebox.fr>");
MODULE_DESCRIPTION("Linux PCMCIA Card Services: bcm63xx Socket Controller");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/ioport.h`, `linux/timer.h`, `linux/platform_device.h`, `linux/slab.h`, `linux/delay.h`, `linux/pci.h`.
- Detected declarations: `function pcmcia_readl`, `function pcmcia_writel`, `function should`, `function bcm63xx_pcmcia_suspend`, `function set_socket`, `function __get_socket_status`, `function bcm63xx_pcmcia_get_status`, `function bcm63xx_pcmcia_poll`, `function bcm63xx_pcmcia_set_io_map`, `function bcm63xx_pcmcia_set_mem_map`.
- Atlas domain: Driver Families / drivers/pcmcia.
- 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.