Aaron Durbin | cddcc80 | 2013-02-08 17:15:53 -0600 | [diff] [blame] | 1 | /* |
| 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 Durbin | cddcc80 | 2013-02-08 17:15:53 -0600 | [diff] [blame] | 14 | */ |
| 15 | #ifndef ROMSTAGE_HANDOFF_H |
| 16 | #define ROMSTAGE_HANDOFF_H |
| 17 | |
Aaron Durbin | 77e1399 | 2016-11-29 17:43:04 -0600 | [diff] [blame] | 18 | /* Returns 0 if initialized. Else < 0 if handoff structure not added. */ |
Aaron Durbin | afe8aee | 2016-11-29 21:37:42 -0600 | [diff] [blame] | 19 | int romstage_handoff_init(int is_s3_resume); |
Aaron Durbin | 77e1399 | 2016-11-29 17:43:04 -0600 | [diff] [blame] | 20 | |
Aaron Durbin | 6c191d8 | 2016-11-29 21:22:42 -0600 | [diff] [blame] | 21 | /* Return 1 if resuming or 0 if not. */ |
Aaron Durbin | afe8aee | 2016-11-29 21:37:42 -0600 | [diff] [blame] | 22 | int romstage_handoff_is_resume(void); |
Aaron Durbin | 6c191d8 | 2016-11-29 21:22:42 -0600 | [diff] [blame] | 23 | |
Aaron Durbin | cddcc80 | 2013-02-08 17:15:53 -0600 | [diff] [blame] | 24 | #endif /* ROMSTAGE_HANDOFF_H */ |