blob: 39adb97f123c81a53634e76422de627262951d16 [file] [log] [blame]
/*
* Copyright 2016 Google Inc.
*
* See file CREDITS for list of people who contributed to this
* project.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but without any warranty; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*/
#include <vboot_api.h>
#include "drivers/board/board.h"
#include "drivers/board/board_helpers.h"
#include "drivers/keyboard/keyboard.h"
#include "drivers/storage/fwdb.h"
#include "drivers/storage/uefi_nv.h"
// Force these to acceptable values for now.
PUB_STAT(flag_write_protect, 1)
PUB_STAT(flag_recovery, 0)
PUB_STAT(flag_developer_mode, 1)
PUB_DYN(_uefi_ro_storage, new_fwdb_ro_storage("uefi_ro_image"))
PUB_DYN(_uefi_rw_a_storage, new_fwdb_ro_storage("uefi_rw_a_image"))
PUB_DYN(_uefi_rw_b_storage, new_fwdb_ro_storage("uefi_rw_b_image"))
PUB_DYN(storage_vboot_nvstorage,
&new_uefi_nv_storage(VBNV_BLOCK_SIZE, L"vboot_nv_storage", NULL)->ops)