~ubuntu-branches/debian/sid/grub2/sid-200907171837

« back to all changes in this revision

Viewing changes to include/grub/i386/pc/kernel.h

  • Committer: Bazaar Package Importer
  • Author(s): Otavio Salvador
  • Date: 2006-01-05 15:20:40 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20060105152040-1ab076d4n3y2o5yf
Tags: 1.92-1
* New upstream release.
  - Add support for GPT partition table format.
  - Add a new command "play" to play an audio file on PC.
  - Add support for Linux/ADFS partition table format.
  - Add support for BASH-like scripting.
  - Add support for Apple HFS+ filesystems.
* 01_fix_grub-install.patch: Added. Fix grub-install to use
  /bin/grub-mkimage instead of /sbin/grub-mkimage. Closes: #338824
* Do not use CDBS tarball mode anymore. Closes: #344272  

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 *  GRUB  --  GRand Unified Bootloader
 
3
 *  Copyright (C) 2002,2003  Free Software Foundation, Inc.
 
4
 *
 
5
 *  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
 
7
 *  the Free Software Foundation; either version 2 of the License, or
 
8
 *  (at your option) any later version.
 
9
 *
 
10
 *  This program 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.
 
14
 *
 
15
 *  You should have received a copy of the GNU General Public License
 
16
 *  along with this program; if not, write to the Free Software
 
17
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
18
 */
 
19
 
 
20
#ifndef KERNEL_MACHINE_HEADER
 
21
#define KERNEL_MACHINE_HEADER   1
 
22
 
 
23
/* The offset of GRUB_TOTAL_MODULE_SIZE.  */
 
24
#define GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE   0x8
 
25
 
 
26
/* The offset of GRUB_KERNEL_IMAGE_SIZE.  */
 
27
#define GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE   0xc
 
28
 
 
29
/* The offset of GRUB_COMPRESSED_SIZE.  */
 
30
#define GRUB_KERNEL_MACHINE_COMPRESSED_SIZE     0x10
 
31
 
 
32
/* The offset of GRUB_INSTALL_DOS_PART.  */
 
33
#define GRUB_KERNEL_MACHINE_INSTALL_DOS_PART    0x14
 
34
 
 
35
/* The offset of GRUB_INSTALL_BSD_PART.  */
 
36
#define GRUB_KERNEL_MACHINE_INSTALL_BSD_PART    0x18
 
37
 
 
38
/* The offset of GRUB_PREFIX.  */
 
39
#define GRUB_KERNEL_MACHINE_PREFIX              0x1c
 
40
 
 
41
/* The size of the first region which won't be compressed.  */
 
42
#define GRUB_KERNEL_MACHINE_RAW_SIZE            0x4A0
 
43
 
 
44
#ifndef ASM_FILE
 
45
 
 
46
#include <grub/types.h>
 
47
 
 
48
/* The DOS partition number of the installed partition.  */
 
49
extern grub_int32_t grub_install_dos_part;
 
50
 
 
51
/* The BSD partition number of the installed partition.  */
 
52
extern grub_int32_t grub_install_bsd_part;
 
53
 
 
54
/* The prefix which points to the directory where GRUB modules and its
 
55
   configuration file are located.  */
 
56
extern char grub_prefix[];
 
57
 
 
58
/* The boot BIOS drive number.  */
 
59
extern grub_int32_t grub_boot_drive;
 
60
 
 
61
/* The end address of the kernel.  */
 
62
extern grub_addr_t grub_end_addr;
 
63
 
 
64
#endif /* ! ASM_FILE */
 
65
 
 
66
#endif /* ! KERNEL_MACHINE_HEADER */