blob: f329381c391bd177294a0b124a84a526ccbb0ea9 [file] [log] [blame]
Uwe Hermann7eb845e2008-11-02 17:01:06 +00001/*
2 * This file is part of the bayou project.
3 *
4 * Copyright (C) 2008 Advanced Micro Devices, Inc.
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 version 2 as
8 * published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
Paul Menzela46a7122013-02-23 18:37:27 +010017 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Uwe Hermann7eb845e2008-11-02 17:01:06 +000018 */
19
20#ifndef SELF_H_
21#define SELF_H_
22
23#include <libpayload.h>
24
25struct self_segment {
26 u32 type;
27 u32 offset;
28 u64 load_addr;
29 u32 len;
30 u32 mem_len;
31};
32
33struct self {
34 struct larstat stat;
35 void *fptr;
36};
37
38#define SELF_TYPE_CODE 0x45444F43
39#define SELF_TYPE_DATA 0x41544144
40#define SELF_TYPE_BSS 0x20535342
41#define SELF_TYPE_PARAMS 0x41524150
42#define SELF_TYPE_ENTRY 0x52544E45
43
44#endif