syslinux-3.08-2 sources from FC4
[bootcd.git] / syslinux / syslinux.h
1 #ident "$Id: syslinux.h,v 1.9 2004/12/22 17:53:54 hpa Exp $"
2 /* ----------------------------------------------------------------------- *
3  *   
4  *   Copyright 1998-2004 H. Peter Anvin - All Rights Reserved
5  *
6  *   This program is free software; you can redistribute it and/or modify
7  *   it under the terms of the GNU General Public License as published by
8  *   the Free Software Foundation, Inc., 53 Temple Place Ste 330,
9  *   Boston MA 02111-1307, USA; either version 2 of the License, or
10  *   (at your option) any later version; incorporated herein by reference.
11  *
12  * ----------------------------------------------------------------------- */
13
14 #ifndef SYSLINUX_H
15 #define SYSLINUX_H
16
17 #include <inttypes.h>
18
19 /* The standard boot sector and ldlinux image */
20 extern unsigned char syslinux_bootsect[];
21 extern unsigned int  syslinux_bootsect_len;
22 extern int           syslinux_bootsect_mtime;
23
24 extern unsigned char syslinux_ldlinux[];
25 extern unsigned int  syslinux_ldlinux_len;
26 extern int           syslinux_ldlinux_mtime;
27
28 extern unsigned char syslinux_mbr[];
29 extern unsigned int  syslinux_mbr_len;
30 extern int           syslinux_mbr_mtime;
31
32 /* This switches the boot sector to "stupid mode" */
33 void syslinux_make_stupid(void);
34
35 /* This takes a boot sector and merges in the syslinux fields */
36 void syslinux_make_bootsect(void *);
37
38 /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
39 const char *syslinux_check_bootsect(const void *bs);
40
41 /* This patches the boot sector and ldlinux.sys based on a sector map */
42 int syslinux_patch(const uint32_t *sectors, int nsectors);
43
44 #endif