drivers/net/can/sja1000/peak_pci.c
Source file repositories/reference/linux-study-clean/drivers/net/can/sja1000/peak_pci.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/net/can/sja1000/peak_pci.c- Extension
.c- Size
- 21016 bytes
- Lines
- 782
- Domain
- Driver Families
- Bucket
- drivers/net
- 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.
- 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/interrupt.hlinux/netdevice.hlinux/delay.hlinux/pci.hlinux/io.hlinux/i2c.hlinux/i2c-algo-bit.hlinux/can.hlinux/can/dev.hsja1000.h
Detected Declarations
struct peak_pciec_cardstruct peak_pci_chanstruct peak_pciec_chanstruct peak_pciec_cardfunction pita_set_scl_highzfunction pita_set_sda_highzfunction peak_pciec_init_pita_gpiofunction pita_setsdafunction pita_setsclfunction pita_getsdafunction pita_getsclfunction peak_pciec_write_pca9553function peak_pciec_led_workfunction peak_pciec_set_ledsfunction peak_pciec_start_led_workfunction peak_pciec_stop_led_workfunction peak_pciec_init_ledsfunction peak_pciec_leds_exitfunction peak_pciec_write_regfunction peak_pciec_probefunction peak_pciec_removefunction peak_pciec_probefunction peak_pciec_removefunction peak_pci_write_regfunction peak_pci_post_irqfunction peak_pci_probefunction register_sja1000devfunction peak_pci_remove
Annotated Snippet
static struct pci_driver peak_pci_driver = {
.name = DRV_NAME,
.id_table = peak_pci_tbl,
.probe = peak_pci_probe,
.remove = peak_pci_remove,
};
module_pci_driver(peak_pci_driver);
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/module.h`, `linux/interrupt.h`, `linux/netdevice.h`, `linux/delay.h`, `linux/pci.h`, `linux/io.h`, `linux/i2c.h`.
- Detected declarations: `struct peak_pciec_card`, `struct peak_pci_chan`, `struct peak_pciec_chan`, `struct peak_pciec_card`, `function pita_set_scl_highz`, `function pita_set_sda_highz`, `function peak_pciec_init_pita_gpio`, `function pita_setsda`, `function pita_setscl`, `function pita_getsda`.
- Atlas domain: Driver Families / drivers/net.
- Implementation status: pattern 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.