-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathboot.h
44 lines (30 loc) · 1.12 KB
/
boot.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/* boot.h - Boot image composition
*
* Copyright 1992-1995 Werner Almesberger
* Copyright 1999-2007 John Coffman
* Copyright 2009-2011 Joachim Wiedorn
* All rights reserved.
*
* Licensed under the terms contained in the file 'COPYING'
* in the source directory.
*/
#ifndef BOOT_H
#define BOOT_H
void boot_image(char *spec,IMAGE_DESCR *descr);
/* Maps a "classic" boot image. */
void boot_device(char *spec,char *range,IMAGE_DESCR *descr);
/* Maps sectors from a device as the boot image. Can be used to boot raw-written
disks. */
void boot_unstripped(char *boot,char *setup,char *kernel,IMAGE_DESCR *descr);
/* Maps an unstripped kernel image as the boot image. The setup (without the
header) is prepended. */
char *boot_mbr(const char *boot, int table);
/* derive name of MBR from partition name; check for primary partition
if table==1
*/
void boot_other(char *loader,char *boot,char *part,IMAGE_DESCR *descr);
/* Merges a loader with a partition table and appends a boot sector. This mix
is used to boot non-Linux systems. */
void dump(char *spec,IMAGE_DESCR *descr);
/* Maps a crash dump file. */
#endif