blob: 86424d108470fe7a9f0a880a15652a1be45c468b [file] [log] [blame]
Kyösti Mälkki967d94d2016-11-22 11:52:14 +02001/*
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älkkiacc599b2016-11-24 14:31:07 +020020#include <AGESA.h>
21
22/* eventlog */
23const char *agesa_struct_name(int state);
24const char *heap_status_name(int status);
25void agesawrapper_trace(AGESA_STATUS ret, AMD_CONFIG_PARAMS *StdHeader, const char *func);
Kyösti Mälkki0a7cab82017-07-29 08:11:52 +030026AGESA_STATUS agesawrapper_amdreadeventlog(UINT8 HeapStatus);
Kyösti Mälkki967d94d2016-11-22 11:52:14 +020027
28struct sysinfo
29{
30 int s3resume;
31};
32
Kyösti Mälkkidf7ff312016-11-25 12:02:00 +020033void agesa_main(struct sysinfo *cb);
Kyösti Mälkkiba22e152016-11-23 06:47:15 +020034void agesa_postcar(struct sysinfo *cb);
35
36void board_BeforeAgesa(struct sysinfo *cb);
37void platform_once(struct sysinfo *cb);
Kyösti Mälkkidf7ff312016-11-25 12:02:00 +020038
Kyösti Mälkki967d94d2016-11-22 11:52:14 +020039#endif /* _STATE_MACHINE_H_ */