arch/m68k/mac/baboon.c
Source file repositories/reference/linux-study-clean/arch/m68k/mac/baboon.c
File Facts
- System
- Linux kernel
- Corpus path
arch/m68k/mac/baboon.c- Extension
.c- Size
- 1904 bytes
- Lines
- 91
- Domain
- Architecture Layer
- Bucket
- arch/m68k
- 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/types.hlinux/kernel.hlinux/irq.hasm/macintosh.hasm/macints.hasm/mac_baboon.hmac.h
Detected Declarations
function baboon_initfunction baboon_irqfunction baboon_register_interruptsfunction baboon_irq_enablefunction baboon_irq_disable
Annotated Snippet
if (events & irq_bit) {
events &= ~irq_bit;
generic_handle_irq(irq_num);
}
++irq_num;
irq_bit <<= 1;
} while (events);
}
/*
* Register the Baboon interrupt dispatcher on nubus slot $C.
*/
void __init baboon_register_interrupts(void)
{
irq_set_chained_handler(IRQ_NUBUS_C, baboon_irq);
}
/*
* The means for masking individual Baboon interrupts remains a mystery.
* However, since we only use the IDE IRQ, we can just enable/disable all
* Baboon interrupts. If/when we handle more than one Baboon IRQ, we must
* either figure out how to mask them individually or else implement the
* same workaround that's used for NuBus slots (see nubus_disabled and
* via_nubus_irq_shutdown).
*/
void baboon_irq_enable(int irq)
{
mac_irq_enable(irq_get_irq_data(IRQ_NUBUS_C));
}
void baboon_irq_disable(int irq)
{
mac_irq_disable(irq_get_irq_data(IRQ_NUBUS_C));
}
Annotation
- Immediate include surface: `linux/types.h`, `linux/kernel.h`, `linux/irq.h`, `asm/macintosh.h`, `asm/macints.h`, `asm/mac_baboon.h`, `mac.h`.
- Detected declarations: `function baboon_init`, `function baboon_irq`, `function baboon_register_interrupts`, `function baboon_irq_enable`, `function baboon_irq_disable`.
- Atlas domain: Architecture Layer / arch/m68k.
- 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.