1 |
/* |
/* |
2 |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
* PUPA -- Preliminary Universal Programming Architecture for GRUB |
3 |
* Copyright (C) 2002 Yoshinori K. Okuji <okuji@enbug.org> |
* Copyright (C) 2002,2003 Yoshinori K. Okuji <okuji@enbug.org> |
4 |
* |
* |
5 |
* This program is free software; you can redistribute it and/or modify |
* This program is free software; you can redistribute it and/or modify |
6 |
* it under the terms of the GNU General Public License as published by |
* it under the terms of the GNU General Public License as published by |
20 |
#ifndef KERNEL_MACHINE_HEADER |
#ifndef KERNEL_MACHINE_HEADER |
21 |
#define KERNEL_MACHINE_HEADER 1 |
#define KERNEL_MACHINE_HEADER 1 |
22 |
|
|
|
#include <pupa/types.h> |
|
|
|
|
23 |
/* The offset of PUPA_TOTAL_MODULE_SIZE. */ |
/* The offset of PUPA_TOTAL_MODULE_SIZE. */ |
24 |
#define PUPA_KERNEL_MACHINE_TOTAL_MODULE_SIZE 0x8 |
#define PUPA_KERNEL_MACHINE_TOTAL_MODULE_SIZE 0x8 |
25 |
|
|
26 |
/* The offset of PUPA_KERNEL_IMAGE_SIZE. */ |
/* The offset of PUPA_KERNEL_IMAGE_SIZE. */ |
27 |
#define PUPA_KERNEL_MACHINE_KERNEL_IMAGE_SIZE 0xc |
#define PUPA_KERNEL_MACHINE_KERNEL_IMAGE_SIZE 0xc |
28 |
|
|
29 |
|
/* The offset of PUPA_COMPRESSED_SIZE. */ |
30 |
|
#define PUPA_KERNEL_MACHINE_COMPRESSED_SIZE 0x10 |
31 |
|
|
32 |
/* The offset of PUPA_INSTALL_DOS_PART. */ |
/* The offset of PUPA_INSTALL_DOS_PART. */ |
33 |
#define PUPA_KERNEL_MACHINE_INSTALL_DOS_PART 0x10 |
#define PUPA_KERNEL_MACHINE_INSTALL_DOS_PART 0x14 |
34 |
|
|
35 |
/* The offset of PUPA_INSTALL_BSD_PART. */ |
/* The offset of PUPA_INSTALL_BSD_PART. */ |
36 |
#define PUPA_KERNEL_MACHINE_INSTALL_BSD_PART 0x14 |
#define PUPA_KERNEL_MACHINE_INSTALL_BSD_PART 0x18 |
37 |
|
|
38 |
/* The offset of PUPA_PREFIX. */ |
/* The offset of PUPA_PREFIX. */ |
39 |
#define PUPA_KERNEL_MACHINE_PREFIX 0x18 |
#define PUPA_KERNEL_MACHINE_PREFIX 0x1c |
40 |
|
|
41 |
|
/* The size of the first region which won't be compressed. */ |
42 |
|
#define PUPA_KERNEL_MACHINE_RAW_SIZE 0x400 |
43 |
|
|
44 |
|
#ifndef ASM_FILE |
45 |
|
|
46 |
|
#include <pupa/types.h> |
47 |
|
|
48 |
/* The DOS partition number of the installed partition. */ |
/* The DOS partition number of the installed partition. */ |
49 |
extern pupa_int32_t pupa_install_dos_part; |
extern pupa_int32_t pupa_install_dos_part; |
58 |
/* The boot BIOS drive number. */ |
/* The boot BIOS drive number. */ |
59 |
extern pupa_int32_t pupa_boot_drive; |
extern pupa_int32_t pupa_boot_drive; |
60 |
|
|
61 |
|
#endif /* ! ASM_FILE */ |
62 |
|
|
63 |
#endif /* ! KERNEL_MACHINE_HEADER */ |
#endif /* ! KERNEL_MACHINE_HEADER */ |