arch/mips/bcm63xx/early_printk.c
Source file repositories/reference/linux-study-clean/arch/mips/bcm63xx/early_printk.c
File Facts
- System
- Linux kernel
- Corpus path
arch/mips/bcm63xx/early_printk.c- Extension
.c- Size
- 638 bytes
- Lines
- 31
- 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.
Dependency Surface
bcm63xx_io.hlinux/serial_bcm63xx.hasm/setup.h
Detected Declarations
function Copyrightfunction prom_putchar
Annotated Snippet
#include <bcm63xx_io.h>
#include <linux/serial_bcm63xx.h>
#include <asm/setup.h>
static void wait_xfered(void)
{
unsigned int val;
/* wait for any previous char to be transmitted */
do {
val = bcm_uart0_readl(UART_IR_REG);
if (val & UART_IR_STAT(UART_IR_TXEMPTY))
break;
} while (1);
}
void prom_putchar(char c)
{
wait_xfered();
bcm_uart0_writel(c, UART_FIFO_REG);
wait_xfered();
}
Annotation
- Immediate include surface: `bcm63xx_io.h`, `linux/serial_bcm63xx.h`, `asm/setup.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.