arch/alpha/kernel/pc873xx.c
Source file repositories/reference/linux-study-clean/arch/alpha/kernel/pc873xx.c
File Facts
- System
- Linux kernel
- Corpus path
arch/alpha/kernel/pc873xx.c- Extension
.c- Size
- 1740 bytes
- Lines
- 90
- Domain
- Architecture Layer
- Bucket
- arch/alpha
- 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.
Dependency Surface
linux/ioport.hasm/io.hpc873xx.h
Detected Declarations
function pc873xx_get_basefunction pc873xx_get_modelfunction pc873xx_readfunction pc873xx_writefunction pc873xx_probefunction pc873xx_enable_epp19function pc873xx_enable_ide
Annotated Snippet
if ((val & 0xf0) == 0x10) {
model = PC87332;
break;
} else if ((val & 0xf8) == 0x70) {
model = PC87306;
break;
} else if ((val & 0xf8) == 0x50) {
model = PC87334;
break;
} else if ((val & 0xf8) == 0x40) {
model = PC87303;
break;
}
release_region(base, 2);
}
return (base == 0) ? -1 : 1;
}
void __init pc873xx_enable_epp19(void)
{
unsigned char data;
printk(KERN_INFO "PC873xx enabling EPP v1.9\n");
data = pc873xx_read(base, REG_PCR);
pc873xx_write(base, REG_PCR, (data & 0xFC) | 0x02);
}
void __init pc873xx_enable_ide(void)
{
unsigned char data;
printk(KERN_INFO "PC873xx enabling IDE interrupt\n");
data = pc873xx_read(base, REG_FER);
pc873xx_write(base, REG_FER, data | 0x40);
}
Annotation
- Immediate include surface: `linux/ioport.h`, `asm/io.h`, `pc873xx.h`.
- Detected declarations: `function pc873xx_get_base`, `function pc873xx_get_model`, `function pc873xx_read`, `function pc873xx_write`, `function pc873xx_probe`, `function pc873xx_enable_epp19`, `function pc873xx_enable_ide`.
- Atlas domain: Architecture Layer / arch/alpha.
- 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.