~ubuntu-branches/ubuntu/trusty/grub2/trusty-updates

« back to all changes in this revision

Viewing changes to include/grub/aout.h

Tags: upstream-1.99~20101122
ImportĀ upstreamĀ versionĀ 1.99~20101122

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 *  along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
17
17
 */
18
18
 
 
19
/*-
 
20
 * Copyright (c) 1992, 1993
 
21
 *      The Regents of the University of California.  All rights reserved.
 
22
 *
 
23
 * Redistribution and use in source and binary forms, with or without
 
24
 * modification, are permitted provided that the following conditions
 
25
 * are met:
 
26
 * 1. Redistributions of source code must retain the above copyright
 
27
 *    notice, this list of conditions and the following disclaimer.
 
28
 * 2. Redistributions in binary form must reproduce the above copyright
 
29
 *    notice, this list of conditions and the following disclaimer in the
 
30
 *    documentation and/or other materials provided with the distribution.
 
31
 * 4. Neither the name of the University nor the names of its contributors
 
32
 *    may be used to endorse or promote products derived from this software
 
33
 *    without specific prior written permission.
 
34
 *
 
35
 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
 
36
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
 
37
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
 
38
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
 
39
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
 
40
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
 
41
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
 
42
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
 
43
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
 
44
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 
45
 * SUCH DAMAGE.
 
46
 *
 
47
 *      from: @(#)exec.h        8.1 (Berkeley) 6/11/93
 
48
 * $FreeBSD$
 
49
 */
 
50
 
19
51
#ifndef GRUB_AOUT_HEADER
20
52
#define GRUB_AOUT_HEADER 1
21
53
 
70
102
#define AOUT_MID_I386           134     /* i386 BSD binary */
71
103
#define AOUT_MID_SPARC          138     /* sparc */
72
104
#define AOUT_MID_HP200          200     /* hp200 (68010) BSD binary */
 
105
#define AOUT_MID_SUN            0x103
73
106
#define AOUT_MID_HP300          300     /* hp300 (68020+68881) BSD binary */
74
107
#define AOUT_MID_HPUX           0x20C   /* hp200/300 HP-UX binary */
75
108
#define AOUT_MID_HPUX800        0x20B   /* hp800 HP-UX binary */
82
115
#define AOUT_GETMID(header) ((header).a_midmag >> 16) & 0x03ff)
83
116
#define AOUT_GETFLAG(header) ((header).a_midmag >> 26) & 0x3f)
84
117
 
 
118
#ifndef GRUB_UTIL
 
119
 
85
120
int EXPORT_FUNC(grub_aout_get_type) (union grub_aout_header *header);
86
121
 
87
122
grub_err_t EXPORT_FUNC(grub_aout_load) (grub_file_t file, int offset,
88
 
                                        grub_addr_t load_addr, int load_size,
89
 
                                        grub_addr_t bss_end_addr);
 
123
                                        void *load_addr, int load_size,
 
124
                                        grub_size_t bss_size);
 
125
 
 
126
#endif
90
127
 
91
128
#endif /* ! GRUB_AOUT_HEADER */