~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/arch/m68k/include/uapi/asm/bootinfo.h

Version: ~ [ linux-5.13-rc5 ] ~ [ linux-5.12.9 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.42 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.124 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.193 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.235 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.271 ] ~ [ linux-4.8.17 ] ~ [ linux-4.7.10 ] ~ [ linux-4.6.7 ] ~ [ linux-4.5.7 ] ~ [ linux-4.4.271 ] ~ [ linux-4.3.6 ] ~ [ linux-4.2.8 ] ~ [ linux-4.1.52 ] ~ [ linux-4.0.9 ] ~ [ linux-3.18.140 ] ~ [ linux-3.16.85 ] ~ [ linux-3.14.79 ] ~ [ linux-3.12.74 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.5 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /*
  2  * asm/bootinfo.h -- Definition of the Linux/m68k boot information structure
  3  *
  4  * Copyright 1992 by Greg Harp
  5  *
  6  * This file is subject to the terms and conditions of the GNU General Public
  7  * License.  See the file COPYING in the main directory of this archive
  8  * for more details.
  9  */
 10 
 11 #ifndef _UAPI_ASM_M68K_BOOTINFO_H
 12 #define _UAPI_ASM_M68K_BOOTINFO_H
 13 
 14 
 15 #include <linux/types.h>
 16 
 17 
 18 #ifndef __ASSEMBLY__
 19 
 20     /*
 21      *  Bootinfo definitions
 22      *
 23      *  This is an easily parsable and extendable structure containing all
 24      *  information to be passed from the bootstrap to the kernel.
 25      *
 26      *  This way I hope to keep all future changes back/forewards compatible.
 27      *  Thus, keep your fingers crossed...
 28      *
 29      *  This structure is copied right after the kernel by the bootstrap
 30      *  routine.
 31      */
 32 
 33 struct bi_record {
 34         __be16 tag;                     /* tag ID */
 35         __be16 size;                    /* size of record (in bytes) */
 36         __be32 data[0];                 /* data */
 37 };
 38 
 39 
 40 struct mem_info {
 41         __be32 addr;                    /* physical address of memory chunk */
 42         __be32 size;                    /* length of memory chunk (in bytes) */
 43 };
 44 
 45 #endif /* __ASSEMBLY__ */
 46 
 47 
 48     /*
 49      *  Tag Definitions
 50      *
 51      *  Machine independent tags start counting from 0x0000
 52      *  Machine dependent tags start counting from 0x8000
 53      */
 54 
 55 #define BI_LAST                 0x0000  /* last record (sentinel) */
 56 #define BI_MACHTYPE             0x0001  /* machine type (__be32) */
 57 #define BI_CPUTYPE              0x0002  /* cpu type (__be32) */
 58 #define BI_FPUTYPE              0x0003  /* fpu type (__be32) */
 59 #define BI_MMUTYPE              0x0004  /* mmu type (__be32) */
 60 #define BI_MEMCHUNK             0x0005  /* memory chunk address and size */
 61                                         /* (struct mem_info) */
 62 #define BI_RAMDISK              0x0006  /* ramdisk address and size */
 63                                         /* (struct mem_info) */
 64 #define BI_COMMAND_LINE         0x0007  /* kernel command line parameters */
 65                                         /* (string) */
 66 
 67 
 68     /*
 69      *  Linux/m68k Architectures (BI_MACHTYPE)
 70      */
 71 
 72 #define MACH_AMIGA              1
 73 #define MACH_ATARI              2
 74 #define MACH_MAC                3
 75 #define MACH_APOLLO             4
 76 #define MACH_SUN3               5
 77 #define MACH_MVME147            6
 78 #define MACH_MVME16x            7
 79 #define MACH_BVME6000           8
 80 #define MACH_HP300              9
 81 #define MACH_Q40                10
 82 #define MACH_SUN3X              11
 83 #define MACH_M54XX              12
 84 
 85 
 86     /*
 87      *  CPU, FPU and MMU types (BI_CPUTYPE, BI_FPUTYPE, BI_MMUTYPE)
 88      *
 89      *  Note: we may rely on the following equalities:
 90      *
 91      *      CPU_68020 == MMU_68851
 92      *      CPU_68030 == MMU_68030
 93      *      CPU_68040 == FPU_68040 == MMU_68040
 94      *      CPU_68060 == FPU_68060 == MMU_68060
 95      */
 96 
 97 #define CPUB_68020              0
 98 #define CPUB_68030              1
 99 #define CPUB_68040              2
100 #define CPUB_68060              3
101 #define CPUB_COLDFIRE           4
102 
103 #define CPU_68020               (1 << CPUB_68020)
104 #define CPU_68030               (1 << CPUB_68030)
105 #define CPU_68040               (1 << CPUB_68040)
106 #define CPU_68060               (1 << CPUB_68060)
107 #define CPU_COLDFIRE            (1 << CPUB_COLDFIRE)
108 
109 #define FPUB_68881              0
110 #define FPUB_68882              1
111 #define FPUB_68040              2       /* Internal FPU */
112 #define FPUB_68060              3       /* Internal FPU */
113 #define FPUB_SUNFPA             4       /* Sun-3 FPA */
114 #define FPUB_COLDFIRE           5       /* ColdFire FPU */
115 
116 #define FPU_68881               (1 << FPUB_68881)
117 #define FPU_68882               (1 << FPUB_68882)
118 #define FPU_68040               (1 << FPUB_68040)
119 #define FPU_68060               (1 << FPUB_68060)
120 #define FPU_SUNFPA              (1 << FPUB_SUNFPA)
121 #define FPU_COLDFIRE            (1 << FPUB_COLDFIRE)
122 
123 #define MMUB_68851              0
124 #define MMUB_68030              1       /* Internal MMU */
125 #define MMUB_68040              2       /* Internal MMU */
126 #define MMUB_68060              3       /* Internal MMU */
127 #define MMUB_APOLLO             4       /* Custom Apollo */
128 #define MMUB_SUN3               5       /* Custom Sun-3 */
129 #define MMUB_COLDFIRE           6       /* Internal MMU */
130 
131 #define MMU_68851               (1 << MMUB_68851)
132 #define MMU_68030               (1 << MMUB_68030)
133 #define MMU_68040               (1 << MMUB_68040)
134 #define MMU_68060               (1 << MMUB_68060)
135 #define MMU_SUN3                (1 << MMUB_SUN3)
136 #define MMU_APOLLO              (1 << MMUB_APOLLO)
137 #define MMU_COLDFIRE            (1 << MMUB_COLDFIRE)
138 
139 
140     /*
141      * Stuff for bootinfo interface versioning
142      *
143      * At the start of kernel code, a 'struct bootversion' is located.
144      * bootstrap checks for a matching version of the interface before booting
145      * a kernel, to avoid user confusion if kernel and bootstrap don't work
146      * together :-)
147      *
148      * If incompatible changes are made to the bootinfo interface, the major
149      * number below should be stepped (and the minor reset to 0) for the
150      * appropriate machine. If a change is backward-compatible, the minor
151      * should be stepped. "Backwards-compatible" means that booting will work,
152      * but certain features may not.
153      */
154 
155 #define BOOTINFOV_MAGIC                 0x4249561A      /* 'BIV^Z' */
156 #define MK_BI_VERSION(major, minor)     (((major) << 16) + (minor))
157 #define BI_VERSION_MAJOR(v)             (((v) >> 16) & 0xffff)
158 #define BI_VERSION_MINOR(v)             ((v) & 0xffff)
159 
160 #ifndef __ASSEMBLY__
161 
162 struct bootversion {
163         __be16 branch;
164         __be32 magic;
165         struct {
166                 __be32 machtype;
167                 __be32 version;
168         } machversions[0];
169 } __packed;
170 
171 #endif /* __ASSEMBLY__ */
172 
173 
174 #endif /* _UAPI_ASM_M68K_BOOTINFO_H */
175 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | Wiki (Japanese) | Wiki (English) | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

osdn.jp