Angel Pons | 32859fc | 2020-04-02 23:48:27 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
| 2 | /* This file is part of the coreboot project. */ |
Aaron Durbin | cddcc80 | 2013-02-08 17:15:53 -0600 | [diff] [blame] | 3 | #ifndef ROMSTAGE_HANDOFF_H |
| 4 | #define ROMSTAGE_HANDOFF_H |
| 5 | |
Aaron Durbin | 77e1399 | 2016-11-29 17:43:04 -0600 | [diff] [blame] | 6 | /* Returns 0 if initialized. Else < 0 if handoff structure not added. */ |
Aaron Durbin | afe8aee | 2016-11-29 21:37:42 -0600 | [diff] [blame] | 7 | int romstage_handoff_init(int is_s3_resume); |
Aaron Durbin | 77e1399 | 2016-11-29 17:43:04 -0600 | [diff] [blame] | 8 | |
Aaron Durbin | 6c191d8 | 2016-11-29 21:22:42 -0600 | [diff] [blame] | 9 | /* Return 1 if resuming or 0 if not. */ |
Aaron Durbin | afe8aee | 2016-11-29 21:37:42 -0600 | [diff] [blame] | 10 | int romstage_handoff_is_resume(void); |
Aaron Durbin | 6c191d8 | 2016-11-29 21:22:42 -0600 | [diff] [blame] | 11 | |
Aaron Durbin | cddcc80 | 2013-02-08 17:15:53 -0600 | [diff] [blame] | 12 | #endif /* ROMSTAGE_HANDOFF_H */ |