Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: include/chromeos/load_util.h

Issue 6628009: Add a wrapper function of LoadKernel() (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/u-boot-next.git@chromeos-v2010.09
Patch Set: Code review Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « include/chromeos/hardware_interface.h ('k') | include/configs/chromeos/tegra2/common.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/chromeos/load_util.h
diff --git a/include/chromeos/load_util.h b/include/chromeos/load_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..2098ce32693d17ee0fb0cc627a21383af644f4ce
--- /dev/null
+++ b/include/chromeos/load_util.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) 2011 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.
+ */
+
+#ifndef __CHROMEOS_LOAD_UTIL__
+#define __CHROMEOS_LOAD_UTIL__
+
+#include <linux/types.h>
+#include <chromeos/firmware_storage.h>
+
+#include <load_kernel_fw.h>
+
+/*
+ * Helper function for loading GBB
+ *
+ * On success, return a pointer to a malloc'ed area storing GBB, and caller is
+ * responsible to free this area. On error, return NULL.
+ */
+void *load_gbb(firmware_storage_t *file, uint64_t *gbb_size_ptr);
+
+/*
+ * Wrapper of LoadKernel() function. Returns the return value of LoadKernel().
+ *
+ * See vboot_reference/firmware/include/load_kernel_fw.h for documentation.
+ */
+int load_kernel_wrapper(LoadKernelParams *params,
+ void *gbb_data, uint64_t gbb_size, uint64_t boot_flags);
+
+#endif /* __CHROMEOS_LOAD_UTIL__ */
« no previous file with comments | « include/chromeos/hardware_interface.h ('k') | include/configs/chromeos/tegra2/common.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698