mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-24 02:05:01 +00:00
Third time's the charm. Now that we've moved to u-boot-next, this won't break the ARM build. BUG=chromium-os:17006 TEST=make && make runtests; emerge vboot_reference; emerge-tegra2_seaboard chromeos-bootimage Change-Id: Ib4fa26c7a23868dd2ffd2b321ee8dc08c66ea322 Original-Change-Id: I771085dcdf79d9592de64f35e3b758111a80dd9f Original-Reviewed-on: http://gerrit.chromium.org/gerrit/3263 Original-Reviewed-by: Simon Glass <sjg@chromium.org> Reviewed-on: http://gerrit.chromium.org/gerrit/3803 Tested-by: Randall Spangler <rspangler@chromium.org> Reviewed-by: Simon Glass <sjg@chromium.org>
27 lines
860 B
C
27 lines
860 B
C
/* Copyright (c) 2010 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.
|
|
*
|
|
* Data structure and API definitions for a verified boot kernel image.
|
|
* (Firmware Portion)
|
|
*/
|
|
|
|
#ifndef VBOOT_REFERENCE_VBOOT_KERNEL_H_
|
|
#define VBOOT_REFERENCE_VBOOT_KERNEL_H_
|
|
|
|
#include "cgptlib.h"
|
|
#include "vboot_api.h"
|
|
|
|
/* Allocates and reads GPT data from the drive. The sector_bytes and
|
|
* drive_sectors fields should be filled on input. The primary and
|
|
* secondary header and entries are filled on output.
|
|
*
|
|
* Returns 0 if successful, 1 if error. */
|
|
int AllocAndReadGptData(GptData* gptdata);
|
|
|
|
/* Writes any changes for the GPT data back to the drive, then frees the
|
|
* buffers. */
|
|
int WriteAndFreeGptData(GptData* gptdata);
|
|
|
|
#endif /* VBOOT_REFERENCE_VBOOT_KERNEL_H_ */
|