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..56450cdd89093e4381d2c28fb77dfa929c25ca0a |
--- /dev/null |
+++ b/include/chromeos/load_util.h |
@@ -0,0 +1,23 @@ |
+/* |
+ * 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 <load_kernel_fw.h> |
+ |
+/* |
+ * Wrapper of LoadKernel() function. Returns the return value of LoadKernel(). |
+ * |
+ * See vboot_reference/firmware/include/load_kernel_fw.h for documentation. |
+ * |
+ * Note: It will malloc a space for storing gbb_data. It is caller's decision |
+ * and responsibility to free this space. |
+ */ |
+int load_kernel_wrapper(LoadKernelParams *params, uint64_t boot_flags); |
+ |
+#endif /* __CHROMEOS_LOAD_UTIL__ */ |