blob: 8711503456b51cb3476fa26ff0f84f45fe7763f0 [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älkki967d94d2016-11-22 11:52:14 +020026
27struct sysinfo
28{
29 int s3resume;
30};
31
Kyösti Mälkkidf7ff312016-11-25 12:02:00 +020032void agesa_main(struct sysinfo *cb);
Kyösti Mälkkiba22e152016-11-23 06:47:15 +020033void agesa_postcar(struct sysinfo *cb);
34
35void board_BeforeAgesa(struct sysinfo *cb);
36void platform_once(struct sysinfo *cb);
Kyösti Mälkkidf7ff312016-11-25 12:02:00 +020037
Kyösti Mälkki967d94d2016-11-22 11:52:14 +020038#endif /* _STATE_MACHINE_H_ */