arch/powerpc/include/asm/ps3stor.h
Source file repositories/reference/linux-study-clean/arch/powerpc/include/asm/ps3stor.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/include/asm/ps3stor.h- Extension
.h- Size
- 1408 bytes
- Lines
- 60
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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
linux/interrupt.hasm/ps3.h
Detected Declarations
struct ps3_storage_regionstruct ps3_storage_device
Annotated Snippet
struct ps3_storage_region {
unsigned int id;
u64 start;
u64 size;
};
struct ps3_storage_device {
struct ps3_system_bus_device sbd;
struct ps3_dma_region dma_region;
unsigned int irq;
u64 blk_size;
u64 tag;
u64 lv1_status;
struct completion done;
unsigned long bounce_size;
void *bounce_buf;
u64 bounce_lpar;
dma_addr_t bounce_dma;
unsigned int num_regions;
unsigned long accessible_regions;
unsigned int region_idx; /* first accessible region */
struct ps3_storage_region regions[]; /* Must be last */
};
static inline struct ps3_storage_device *to_ps3_storage_device(struct device *dev)
{
return container_of(dev, struct ps3_storage_device, sbd.core);
}
extern int ps3stor_setup(struct ps3_storage_device *dev,
irq_handler_t handler);
extern void ps3stor_teardown(struct ps3_storage_device *dev);
extern u64 ps3stor_read_write_sectors(struct ps3_storage_device *dev, u64 lpar,
u64 start_sector, u64 sectors,
int write);
extern u64 ps3stor_send_command(struct ps3_storage_device *dev, u64 cmd,
u64 arg1, u64 arg2, u64 arg3, u64 arg4);
#endif /* _ASM_POWERPC_PS3STOR_H_ */
Annotation
- Immediate include surface: `linux/interrupt.h`, `asm/ps3.h`.
- Detected declarations: `struct ps3_storage_region`, `struct ps3_storage_device`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.