Adding upstream version 3.53.
[syslinux-debian/hramrach.git] / syslinux.h
blob60b36ce5f49521e3b6575afe75a463c52d21b518
1 /* ----------------------------------------------------------------------- *
3 * Copyright 1998-2004 H. Peter Anvin - All Rights Reserved
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, Inc., 53 Temple Place Ste 330,
8 * Boston MA 02111-1307, USA; either version 2 of the License, or
9 * (at your option) any later version; incorporated herein by reference.
11 * ----------------------------------------------------------------------- */
13 #ifndef SYSLINUX_H
14 #define SYSLINUX_H
16 #include <inttypes.h>
18 /* The standard boot sector and ldlinux image */
19 extern unsigned char syslinux_bootsect[];
20 extern unsigned int syslinux_bootsect_len;
21 extern int syslinux_bootsect_mtime;
23 extern unsigned char syslinux_ldlinux[];
24 extern unsigned int syslinux_ldlinux_len;
25 extern int syslinux_ldlinux_mtime;
27 extern unsigned char syslinux_mbr[];
28 extern unsigned int syslinux_mbr_len;
29 extern int syslinux_mbr_mtime;
31 /* This takes a boot sector and merges in the syslinux fields */
32 void syslinux_make_bootsect(void *);
34 /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
35 const char *syslinux_check_bootsect(const void *bs);
37 /* This patches the boot sector and ldlinux.sys based on a sector map */
38 int syslinux_patch(const uint32_t *sectors, int nsectors,
39 int stupid, int raid_mode);
41 #endif