GRUB-1.98 changes
[grub2/jjazz.git] / include / grub / mips / kernel.h
blob8b68f7b6b83a18cd37ec563488f1b88622b1c575
1 /*
2 * GRUB -- GRand Unified Bootloader
3 * Copyright (C) 2005,2006,2007,2008 Free Software Foundation, Inc.
5 * GRUB is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * GRUB is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with GRUB. If not, see <http://www.gnu.org/licenses/>.
19 #ifndef GRUB_KERNEL_CPU_HEADER
20 #define GRUB_KERNEL_CPU_HEADER 1
22 #define GRUB_MOD_ALIGN 0x1
23 /* Non-zero value is only needed for PowerMacs. */
24 #define GRUB_MOD_GAP 0x0
26 #define GRUB_KERNEL_MACHINE_LINK_ALIGN 32
28 #define GRUB_KERNEL_CPU_RAW_SIZE 0x200
29 #define GRUB_KERNEL_CPU_COMPRESSED_SIZE 0x8
30 #define GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE 0xc
31 #define GRUB_KERNEL_CPU_KERNEL_IMAGE_SIZE 0x10
33 #define GRUB_KERNEL_CPU_PREFIX GRUB_KERNEL_CPU_RAW_SIZE
34 #define GRUB_KERNEL_CPU_DATA_END GRUB_KERNEL_CPU_RAW_SIZE + 0x48
36 #define GRUB_KERNEL_MACHINE_RAW_SIZE GRUB_KERNEL_CPU_RAW_SIZE
38 #define GRUB_KERNEL_MACHINE_PREFIX GRUB_KERNEL_CPU_PREFIX
39 #define GRUB_KERNEL_MACHINE_DATA_END GRUB_KERNEL_CPU_DATA_END
40 #define GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE GRUB_KERNEL_CPU_KERNEL_IMAGE_SIZE
41 #define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE GRUB_KERNEL_CPU_TOTAL_MODULE_SIZE
42 #define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE GRUB_KERNEL_CPU_COMPRESSED_SIZE
44 #define GRUB_PLATFORM_IMAGE_FORMATS "raw, elf"
45 #define GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT "raw"
47 #define GRUB_PLATFORM_IMAGE_DEFAULT GRUB_PLATFORM_IMAGE_RAW
49 #ifndef ASM_FILE
51 typedef enum {
52 GRUB_PLATFORM_IMAGE_RAW,
53 GRUB_PLATFORM_IMAGE_ELF
55 grub_platform_image_format_t;
56 #define GRUB_PLATFORM_IMAGE_RAW GRUB_PLATFORM_IMAGE_RAW
57 #define GRUB_PLATFORM_IMAGE_ELF GRUB_PLATFORM_IMAGE_ELF
59 /* The prefix which points to the directory where GRUB modules and its
60 configuration file are located. */
61 extern char grub_prefix[];
63 #endif
65 #endif