Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 1 | /* |
| 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. |
Uwe Hermann | 7eb845e | 2008-11-02 17:01:06 +0000 | [diff] [blame] | 14 | */ |
| 15 | |
| 16 | #ifndef SELF_H_ |
| 17 | #define SELF_H_ |
| 18 | |
| 19 | #include <libpayload.h> |
| 20 | |
| 21 | struct self_segment { |
| 22 | u32 type; |
| 23 | u32 offset; |
| 24 | u64 load_addr; |
| 25 | u32 len; |
| 26 | u32 mem_len; |
| 27 | }; |
| 28 | |
| 29 | struct self { |
| 30 | struct larstat stat; |
| 31 | void *fptr; |
| 32 | }; |
| 33 | |
| 34 | #define SELF_TYPE_CODE 0x45444F43 |
| 35 | #define SELF_TYPE_DATA 0x41544144 |
| 36 | #define SELF_TYPE_BSS 0x20535342 |
| 37 | #define SELF_TYPE_PARAMS 0x41524150 |
| 38 | #define SELF_TYPE_ENTRY 0x52544E45 |
| 39 | |
| 40 | #endif |