arch/sh/drivers/pci/pci-sh4.h
Source file repositories/reference/linux-study-clean/arch/sh/drivers/pci/pci-sh4.h
File Facts
- System
- Linux kernel
- Corpus path
arch/sh/drivers/pci/pci-sh4.h- Extension
.h- Size
- 9591 bytes
- Lines
- 183
- Domain
- Architecture Layer
- Bucket
- arch/sh
- Inferred role
- Architecture Layer: implementation source
- Status
- source 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
pci-sh7780.hpci-sh7751.hasm/io.h
Detected Declarations
struct sh4_pci_address_spacestruct sh4_pci_address_mapfunction pci_write_regfunction pci_read_reg
Annotated Snippet
struct sh4_pci_address_space {
unsigned long base;
unsigned long size;
};
struct sh4_pci_address_map {
struct sh4_pci_address_space window0;
struct sh4_pci_address_space window1;
};
static inline void pci_write_reg(struct pci_channel *chan,
unsigned long val, unsigned long reg)
{
__raw_writel(val, chan->reg_base + reg);
}
static inline unsigned long pci_read_reg(struct pci_channel *chan,
unsigned long reg)
{
return __raw_readl(chan->reg_base + reg);
}
#endif /* __PCI_SH4_H */
Annotation
- Immediate include surface: `pci-sh7780.h`, `pci-sh7751.h`, `asm/io.h`.
- Detected declarations: `struct sh4_pci_address_space`, `struct sh4_pci_address_map`, `function pci_write_reg`, `function pci_read_reg`.
- Atlas domain: Architecture Layer / arch/sh.
- Implementation status: source 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.