Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2013 Google, Inc. |
| 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 | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 14 | */ |
| 15 | #ifndef VBOOT_HANDOFF_H |
| 16 | #define VBOOT_HANDOFF_H |
| 17 | |
Daisuke Nojiri | 742fc8d | 2014-10-10 10:51:06 -0700 | [diff] [blame] | 18 | |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 19 | #include <vboot_api.h> |
Daisuke Nojiri | 79cac09 | 2014-06-30 08:51:39 -0700 | [diff] [blame] | 20 | #include <vboot_struct.h> |
Daisuke Nojiri | efddcfb | 2014-09-04 09:55:34 -0700 | [diff] [blame] | 21 | #include "chromeos.h" |
Daisuke Nojiri | 742fc8d | 2014-10-10 10:51:06 -0700 | [diff] [blame] | 22 | #include "vboot_common.h" |
| 23 | |
| 24 | /* |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 25 | * The vboot_handoff structure contains the data to be consumed by downstream |
| 26 | * firmware after firmware selection has been completed. Namely it provides |
Aaron Durbin | 6d720f3 | 2015-12-08 17:00:23 -0600 | [diff] [blame] | 27 | * vboot shared data as well as the flags from VbInit. |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 28 | */ |
| 29 | struct vboot_handoff { |
| 30 | VbInitParams init_params; |
| 31 | uint32_t selected_firmware; |
Aaron Durbin | fd79562 | 2013-03-01 17:12:26 -0600 | [diff] [blame] | 32 | char shared_data[VB_SHARED_DATA_MIN_SIZE]; |
| 33 | } __attribute__((packed)); |
| 34 | |
| 35 | |
| 36 | #endif /* VBOOT_HANDOFF_H */ |