/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ /* * asm/bootinfo.h -- Definition of the Linux/m68k boot information structure * * Copyright 1992 by Greg Harp * * This file is subject to the terms and conditions of the GNU General Public * License. See the file COPYING in the main directory of this archive * for more details.
*/
/* * Bootinfo definitions * * This is an easily parsable and extendable structure containing all * information to be passed from the bootstrap to the kernel. * * This way I hope to keep all future changes back/forewards compatible. * Thus, keep your fingers crossed... * * This structure is copied right after the kernel by the bootstrap * routine.
*/
struct bi_record {
__be16 tag; /* tag ID */
__be16 size; /* size of record (in bytes) */
__be32 data[]; /* data */
};
struct mem_info {
__be32 addr; /* physical address of memory chunk */
__be32 size; /* length of memory chunk (in bytes) */
};
#endif/* __ASSEMBLER__ */
/* * Tag Definitions * * Machine independent tags start counting from 0x0000 * Machine dependent tags start counting from 0x8000
*/
#define BI_LAST 0x0000 /* last record (sentinel) */ #define BI_MACHTYPE 0x0001 /* machine type (__be32) */ #define BI_CPUTYPE 0x0002 /* cpu type (__be32) */ #define BI_FPUTYPE 0x0003 /* fpu type (__be32) */ #define BI_MMUTYPE 0x0004 /* mmu type (__be32) */ #define BI_MEMCHUNK 0x0005 /* memory chunk address and size */ /* (struct mem_info) */ #define BI_RAMDISK 0x0006 /* ramdisk address and size */ /* (struct mem_info) */ #define BI_COMMAND_LINE 0x0007 /* kernel command line parameters */ /* (string) */ /* * A random seed used to initialize the RNG. Record format: * * - length [ 2 bytes, 16-bit big endian ] * - seed data [ `length` bytes, padded to preserve 4-byte struct alignment ]
*/ #define BI_RNG_SEED 0x0008
/* * Stuff for bootinfo interface versioning * * At the start of kernel code, a 'struct bootversion' is located. * bootstrap checks for a matching version of the interface before booting * a kernel, to avoid user confusion if kernel and bootstrap don't work * together :-) * * If incompatible changes are made to the bootinfo interface, the major * number below should be stepped (and the minor reset to 0) for the * appropriate machine. If a change is backward-compatible, the minor * should be stepped. "Backwards-compatible" means that booting will work, * but certain features may not.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.