summaryrefslogtreecommitdiff
path: root/firmware/lib/include/vboot_kernel.h
diff options
context:
space:
mode:
authorDan Ehrenberg <dehrenberg@chromium.org>2014-10-21 16:15:54 -0700
committerchrome-internal-fetch <chrome-internal-fetch@google.com>2014-10-29 00:22:03 +0000
commit7c2beb08380410ca6847abdac23e11ded2d1b625 (patch)
tree0477c0764bc1f53e6773171c60a92736bcf128ad /firmware/lib/include/vboot_kernel.h
parentf18038b750c43c2185e64db38d0d244c6810083b (diff)
downloadvboot-7c2beb08380410ca6847abdac23e11ded2d1b625.tar.gz
cgpt: Separate out certain GPT manipluation functionsstabilize-6415.Bfoo-test
For kernel NAND support, some vboot/cgptlib functionality is needed from depthcharge. This patch moves certain function declarations to a new header in firmware/include and puts their definitions in a common place. TEST=make runalltests passes and packages build BRANCH=none BUG=chromium:403432 Change-Id: Idd42b1f9f531651d78bb4afb80ca90c24aae93d9 Reviewed-on: https://chromium-review.googlesource.com/224996 Reviewed-by: Bill Richardson <wfrichar@chromium.org> Commit-Queue: Daniel Ehrenberg <dehrenberg@chromium.org> Tested-by: Daniel Ehrenberg <dehrenberg@chromium.org>
Diffstat (limited to 'firmware/lib/include/vboot_kernel.h')
-rw-r--r--firmware/lib/include/vboot_kernel.h15
1 files changed, 1 insertions, 14 deletions
diff --git a/firmware/lib/include/vboot_kernel.h b/firmware/lib/include/vboot_kernel.h
index 2c0f2cef..2f1be5be 100644
--- a/firmware/lib/include/vboot_kernel.h
+++ b/firmware/lib/include/vboot_kernel.h
@@ -10,25 +10,12 @@
#define VBOOT_REFERENCE_VBOOT_KERNEL_H_
#include "cgptlib.h"
+#include "gpt_misc.h"
#include "load_firmware_fw.h"
#include "load_kernel_fw.h"
#include "vboot_api.h"
/**
- * Allocate and read 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(VbExDiskHandle_t disk_handle, GptData *gptdata);
-
-/**
- * Write any changes for the GPT data back to the drive, then free the buffers.
- */
-int WriteAndFreeGptData(VbExDiskHandle_t disk_handle, GptData *gptdata);
-
-/**
* Accessors for unit tests only.
*/
VbNvContext *VbApiKernelGetVnc(void);