blob: 1a6bbf72458df930ce9ae2536c930ba729c8da9e [file] [log] [blame]
Aaron Durbincddcc802013-02-08 17:15:53 -06001/*
2 * This file is part of the coreboot project.
3 *
4 * Copyright (C) 2013 ChromeOS Authors
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.
Aaron Durbincddcc802013-02-08 17:15:53 -060014 */
15#ifndef ROMSTAGE_HANDOFF_H
16#define ROMSTAGE_HANDOFF_H
17
Aaron Durbin77e13992016-11-29 17:43:04 -060018/* Returns 0 if initialized. Else < 0 if handoff structure not added. */
Aaron Durbinafe8aee2016-11-29 21:37:42 -060019int romstage_handoff_init(int is_s3_resume);
Aaron Durbin77e13992016-11-29 17:43:04 -060020
Aaron Durbin6c191d82016-11-29 21:22:42 -060021/* Return 1 if resuming or 0 if not. */
Aaron Durbinafe8aee2016-11-29 21:37:42 -060022int romstage_handoff_is_resume(void);
Aaron Durbin6c191d82016-11-29 21:22:42 -060023
Aaron Durbincddcc802013-02-08 17:15:53 -060024#endif /* ROMSTAGE_HANDOFF_H */