arch/powerpc/boot/planetcore.h
Source file repositories/reference/linux-study-clean/arch/powerpc/boot/planetcore.h
File Facts
- System
- Linux kernel
- Corpus path
arch/powerpc/boot/planetcore.h- Extension
.h- Size
- 1554 bytes
- Lines
- 48
- Domain
- Architecture Layer
- Bucket
- arch/powerpc
- 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
types.h
Detected Declarations
- No top-level syscall, struct, function, initcall, or export declaration detected by the generator.
Annotated Snippet
#ifndef _PPC_BOOT_PLANETCORE_H_
#define _PPC_BOOT_PLANETCORE_H_
#include "types.h"
#define PLANETCORE_KEY_BOARD_TYPE "BO"
#define PLANETCORE_KEY_BOARD_REV "BR"
#define PLANETCORE_KEY_MB_RAM "D1"
#define PLANETCORE_KEY_MAC_ADDR "EA"
#define PLANETCORE_KEY_FLASH_SPEED "FS"
#define PLANETCORE_KEY_IP_ADDR "IP"
#define PLANETCORE_KEY_KB_NVRAM "NV"
#define PLANETCORE_KEY_PROCESSOR "PR"
#define PLANETCORE_KEY_PROC_VARIANT "PV"
#define PLANETCORE_KEY_SERIAL_BAUD "SB"
#define PLANETCORE_KEY_SERIAL_PORT "SP"
#define PLANETCORE_KEY_SWITCH "SW"
#define PLANETCORE_KEY_TEMP_OFFSET "TC"
#define PLANETCORE_KEY_TARGET_IP "TIP"
#define PLANETCORE_KEY_CRYSTAL_HZ "XT"
/* Prepare the table for processing, by turning all newlines
* into NULL bytes.
*/
void planetcore_prepare_table(char *table);
/* Return the value associated with a given key in text,
* decimal, or hex format.
*
* Returns zero/NULL on failure, non-zero on success.
*/
const char *planetcore_get_key(const char *table, const char *key);
int planetcore_get_decimal(const char *table, const char *key, u64 *val);
int planetcore_get_hex(const char *table, const char *key, u64 *val);
/* Updates the device tree local-mac-address properties based
* on the EA tag.
*/
void planetcore_set_mac_addrs(const char *table);
/* Sets the linux,stdout-path in the /chosen node. This requires the
* linux,planetcore-label property in each serial node.
*/
void planetcore_set_stdout_path(const char *table);
#endif
Annotation
- Immediate include surface: `types.h`.
- Atlas domain: Architecture Layer / arch/powerpc.
- 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.