Files
OpenCellular/host/include/crossystem_vbnv.h
Duncan Laurie e98431f52b crossystem: Move mosys based VbNv functions to shared code
The code to read/write vbnv with mosys was implemented in the
ARM specific code so move it to the generic crosystem code
so it can be used on x86.

No functional changes in this commit.

BUG=chrome-os-partner:51846
BRANCH=none
TEST=emerge-chell vboot_reference; emerge-oak vboot_reference

Change-Id: I3fe18fadb924094e710427208976328caf12a009
Signed-off-by: Duncan Laurie <dlaurie@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/336310
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2016-04-11 14:36:41 -07:00

36 lines
780 B
C

/* Copyright 2016 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* vboot nv storage related functions exported for use by userspace programs
*/
#ifndef VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_
#define VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_
#ifdef __cplusplus
extern "C" {
#endif
#include <vboot_nvstorage.h>
/**
* Attempt to read VbNvContext using mosys.
*
* Returns 0 if success, non-zero if error.
*/
int VbReadNvStorage_mosys(VbNvContext* vnc);
/**
* Attempt to write VbNvContext using mosys.
*
* Returns 0 if success, non-zero if error.
*/
int VbWriteNvStorage_mosys(VbNvContext* vnc);
#ifdef __cplusplus
}
#endif
#endif /* VBOOT_REFERENCE_CROSSYSTEM_VBNV_H_ */