blob: c8bc764b5a3f354b9c88076177146d74d18bf617 [file] [log] [blame]
Luc Verhaegen838fe242009-06-17 00:48:02 +02001/*
2 * Copyright 2009 Luc Verhaegen <libv@skynet.be>
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2, or (at your option)
7 * any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; see the file COPYING. If not, write to
16 * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
17 */
18
19#ifndef BIOS_EXTRACT_H
20#define BIOS_EXTRACT_H
21
22#define Bool int
23#define FALSE 0
24#define TRUE 1
25
26/* bios_extract.c */
27unsigned char *MMapOutputFile(char *filename, int size);
28
29/* ami.c */
30Bool AMI95Extract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
Luc Verhaegen15587352009-06-26 10:00:29 +020031 uint32_t Offset1, uint32_t Offset2);
Luc Verhaegen038e6a52009-06-24 14:18:29 +020032
33/* phoenix.c */
34Bool PhoenixExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
Luc Verhaegen15587352009-06-26 10:00:29 +020035 uint32_t Offset1, uint32_t Offset2);
Luc Verhaegen838fe242009-06-17 00:48:02 +020036
Luc Verhaegen5c343ad2009-07-13 11:46:37 +020037/* award.c */
38Bool AwardExtract(unsigned char *BIOSImage, int BIOSLength, int BIOSOffset,
39 uint32_t Offset1, uint32_t Offset2);
40
Luc Verhaegen838fe242009-06-17 00:48:02 +020041#endif /* BIOS_EXTRACT_H */