2 * SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
4 * Bootinfo tags from linux bootinfo.h and bootinfo-mac.h:
5 * This is an easily parsable and extendable structure containing all
6 * information to be passed from the bootstrap to the kernel
8 * This structure is copied right after the kernel by the bootstrap
12 #ifndef HW_M68K_BOOTINFO_H
13 #define HW_M68K_BOOTINFO_H
15 #define BOOTINFO0(as, base, id) \
17 stw_phys(as, base, id); \
19 stw_phys(as, base, sizeof(struct bi_record)); \
23 #define BOOTINFO1(as, base, id, value) \
25 stw_phys(as, base, id); \
27 stw_phys(as, base, sizeof(struct bi_record) + 4); \
29 stl_phys(as, base, value); \
33 #define BOOTINFO2(as, base, id, value1, value2) \
35 stw_phys(as, base, id); \
37 stw_phys(as, base, sizeof(struct bi_record) + 8); \
39 stl_phys(as, base, value1); \
41 stl_phys(as, base, value2); \
45 #define BOOTINFOSTR(as, base, id, string) \
48 stw_phys(as, base, id); \
51 (sizeof(struct bi_record) + strlen(string) + 2) & ~1); \
53 for (i = 0; string[i]; i++) { \
54 stb_phys(as, base++, string[i]); \
56 stb_phys(as, base++, 0); \
57 base = (parameters_base + 1) & ~1; \