Kyösti Mälkki | 967d94d | 2016-11-22 11:52:14 +0200 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2016 Kyösti Mälkki |
| 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 as published by |
| 8 | * the Free Software Foundation; version 2 of the License. |
| 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 | |
| 16 | #ifndef _STATE_MACHINE_H_ |
| 17 | #define _STATE_MACHINE_H_ |
| 18 | |
| 19 | #include <stdint.h> |
Kyösti Mälkki | acc599b | 2016-11-24 14:31:07 +0200 | [diff] [blame] | 20 | #include <AGESA.h> |
| 21 | |
| 22 | /* eventlog */ |
| 23 | const char *agesa_struct_name(int state); |
| 24 | const char *heap_status_name(int status); |
| 25 | void agesawrapper_trace(AGESA_STATUS ret, AMD_CONFIG_PARAMS *StdHeader, const char *func); |
Kyösti Mälkki | 0a7cab8 | 2017-07-29 08:11:52 +0300 | [diff] [blame^] | 26 | AGESA_STATUS agesawrapper_amdreadeventlog(UINT8 HeapStatus); |
Kyösti Mälkki | 967d94d | 2016-11-22 11:52:14 +0200 | [diff] [blame] | 27 | |
| 28 | struct sysinfo |
| 29 | { |
| 30 | int s3resume; |
| 31 | }; |
| 32 | |
Kyösti Mälkki | df7ff31 | 2016-11-25 12:02:00 +0200 | [diff] [blame] | 33 | void agesa_main(struct sysinfo *cb); |
Kyösti Mälkki | ba22e15 | 2016-11-23 06:47:15 +0200 | [diff] [blame] | 34 | void agesa_postcar(struct sysinfo *cb); |
| 35 | |
| 36 | void board_BeforeAgesa(struct sysinfo *cb); |
| 37 | void platform_once(struct sysinfo *cb); |
Kyösti Mälkki | df7ff31 | 2016-11-25 12:02:00 +0200 | [diff] [blame] | 38 | |
Kyösti Mälkki | 967d94d | 2016-11-22 11:52:14 +0200 | [diff] [blame] | 39 | #endif /* _STATE_MACHINE_H_ */ |