arch/m68k/sun3x/config.c
Source file repositories/reference/linux-study-clean/arch/m68k/sun3x/config.c
File Facts
- System
- Linux kernel
- Corpus path
arch/m68k/sun3x/config.c- Extension
.c- Size
- 1435 bytes
- Lines
- 77
- 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/mm.hlinux/seq_file.hlinux/console.hlinux/init.hasm/machdep.hasm/irq.hasm/sun3xprom.hasm/sun3ints.hasm/setup.hasm/oplib.hasm/config.htime.h../sun3/sun3.h
Detected Declarations
function sun3_ledsfunction config_sun3x
Annotated Snippet
// SPDX-License-Identifier: GPL-2.0
/*
* Setup kernel for a Sun3x machine
*
* (C) 1999 Thomas Bogendoerfer (tsbogend@alpha.franken.de)
*
* based on code from Oliver Jowett <oliver@jowett.manawatu.gen.nz>
*/
#include <linux/types.h>
#include <linux/mm.h>
#include <linux/seq_file.h>
#include <linux/console.h>
#include <linux/init.h>
#include <asm/machdep.h>
#include <asm/irq.h>
#include <asm/sun3xprom.h>
#include <asm/sun3ints.h>
#include <asm/setup.h>
#include <asm/oplib.h>
#include <asm/config.h>
#include "time.h"
#include "../sun3/sun3.h"
volatile char *clock_va;
void sun3_leds(unsigned char byte)
{
}
static void sun3x_get_hardware_list(struct seq_file *m)
{
seq_printf(m, "PROM Revision:\t%s\n", romvec->pv_monid);
}
/*
* Setup the sun3x configuration info
*/
void __init config_sun3x(void)
{
sun3x_prom_init();
mach_sched_init = sun3x_sched_init;
mach_init_IRQ = sun3_init_IRQ;
mach_reset = sun3x_reboot;
mach_hwclk = sun3x_hwclk;
mach_get_model = sun3_get_model;
mach_get_hardware_list = sun3x_get_hardware_list;
sun3_intreg = (unsigned char *)SUN3X_INTREG;
/* only the serial console is known to work anyway... */
#if 0
switch (*(unsigned char *)SUN3X_EEPROM_CONS) {
case 0x10:
serial_console = 1;
conswitchp = NULL;
break;
case 0x11:
serial_console = 2;
conswitchp = NULL;
break;
default:
serial_console = 0;
break;
}
#endif
}
Annotation
- Immediate include surface: `linux/types.h`, `linux/mm.h`, `linux/seq_file.h`, `linux/console.h`, `linux/init.h`, `asm/machdep.h`, `asm/irq.h`, `asm/sun3xprom.h`.
- Detected declarations: `function sun3_leds`, `function config_sun3x`.
- 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.