arch/mips/sgi-ip27/ip27-console.c
Source file repositories/reference/linux-study-clean/arch/mips/sgi-ip27/ip27-console.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/sgi-ip27/ip27-console.c- Extension
.c- Size
- 933 bytes
- Lines
- 43
- Domain
- Architecture Layer
- Bucket
- arch/mips
- 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
asm/page.hasm/setup.hasm/sn/addrs.hasm/sn/agent.hasm/sn/klconfig.hasm/sn/ioc3.hlinux/serial.hlinux/serial_core.hip27-common.h
Detected Declarations
function Copyrightfunction prom_putchar
Annotated Snippet
#include <asm/page.h>
#include <asm/setup.h>
#include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h>
#include <linux/serial.h>
#include <linux/serial_core.h>
#include "ip27-common.h"
#define IOC3_CLK (22000000 / 3)
#define IOC3_FLAGS (0)
static inline struct ioc3_uartregs *console_uart(void)
{
struct ioc3 *ioc3;
nasid_t nasid;
nasid = (master_nasid == INVALID_NASID) ? get_nasid() : master_nasid;
ioc3 = (struct ioc3 *)KL_CONFIG_CH_CONS_INFO(nasid)->memory_base;
return &ioc3->sregs.uarta;
}
void prom_putchar(char c)
{
struct ioc3_uartregs *uart = console_uart();
while ((readb(&uart->iu_lsr) & 0x20) == 0)
;
writeb(c, &uart->iu_thr);
}
Annotation
- Immediate include surface: `asm/page.h`, `asm/setup.h`, `asm/sn/addrs.h`, `asm/sn/agent.h`, `asm/sn/klconfig.h`, `asm/sn/ioc3.h`, `linux/serial.h`, `linux/serial_core.h`.
- Detected declarations: `function Copyright`, `function prom_putchar`.
- Atlas domain: Architecture Layer / arch/mips.
- 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.