drivers/spi/spi-au1550.c
Source file repositories/reference/linux-study-clean/drivers/spi/spi-au1550.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/spi/spi-au1550.c- Extension
.c- Size
- 25520 bytes
- Lines
- 984
- Domain
- Driver Families
- Bucket
- drivers/spi
- 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.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/init.hlinux/interrupt.hlinux/slab.hlinux/errno.hlinux/module.hlinux/device.hlinux/platform_device.hlinux/resource.hlinux/spi/spi.hlinux/spi/spi_bitbang.hlinux/dma-mapping.hlinux/completion.hasm/mach-au1x00/au1000.hasm/mach-au1x00/au1xxx_psc.hasm/mach-au1x00/au1xxx_dbdma.hasm/mach-au1x00/au1550_spi.h
Detected Declarations
struct au1550_spifunction au1550_spi_baudcfgfunction au1550_spi_mask_ack_allfunction au1550_spi_reset_fifosfunction au1550_spi_bits_handlers_setfunction au1550_spi_setupxferfunction upfunction au1550_spi_dma_rxtmp_freefunction au1550_spi_dma_txrxbfunction bufferfunction au1550_spi_dma_irq_callbackfunction au1550_spi_pio_txrxbfunction au1550_spi_pio_irq_callbackfunction au1550_spi_txrx_bufsfunction au1550_spi_irqfunction au1550_spi_bits_handlers_setfunction au1550_spi_setup_psc_as_spifunction au1550_spi_probefunction au1550_spi_removefunction au1550_spi_initfunction au1550_spi_exitmodule init au1550_spi_init
Annotated Snippet
module_init(au1550_spi_init);
static void __exit au1550_spi_exit(void)
{
if (usedma && ddma_memid)
au1xxx_ddma_del_device(ddma_memid);
platform_driver_unregister(&au1550_spi_drv);
}
module_exit(au1550_spi_exit);
MODULE_DESCRIPTION("Au1550 PSC SPI Driver");
MODULE_AUTHOR("Jan Nikitenko <jan.nikitenko@gmail.com>");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/init.h`, `linux/interrupt.h`, `linux/slab.h`, `linux/errno.h`, `linux/module.h`, `linux/device.h`, `linux/platform_device.h`, `linux/resource.h`.
- Detected declarations: `struct au1550_spi`, `function au1550_spi_baudcfg`, `function au1550_spi_mask_ack_all`, `function au1550_spi_reset_fifos`, `function au1550_spi_bits_handlers_set`, `function au1550_spi_setupxfer`, `function up`, `function au1550_spi_dma_rxtmp_free`, `function au1550_spi_dma_txrxb`, `function buffer`.
- Atlas domain: Driver Families / drivers/spi.
- Implementation status: integration 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.