diff options
author | Simon Glass <sjg@chromium.org> | 2012-09-28 08:56:35 +0000 |
---|---|---|
committer | Anatolij Gustschin <agust@denx.de> | 2012-10-02 22:39:33 +0200 |
commit | 094e06a523ba040f81857609f9d889b4b57ee151 (patch) | |
tree | b3363e28ba02801492223454c5fa163a4815f1ad /include | |
parent | 221953d41dea8dce027b9ce6beee700d97ac2c83 (diff) | |
download | u-boot-imx-094e06a523ba040f81857609f9d889b4b57ee151.zip u-boot-imx-094e06a523ba040f81857609f9d889b4b57ee151.tar.gz u-boot-imx-094e06a523ba040f81857609f9d889b4b57ee151.tar.bz2 |
bootstage: Export bootstage_add_record() function
This function is not static, but not exported either. Add a prototype
in the header file and move the required enum to the header also.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/bootstage.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/bootstage.h b/include/bootstage.h index a000538..64b2ec6 100644 --- a/include/bootstage.h +++ b/include/bootstage.h @@ -31,6 +31,12 @@ #define CONFIG_BOOTSTAGE_USER_COUNT 20 #endif +/* Flags for each bootstage record */ +enum bootstage_flags { + BOOTSTAGEF_ERROR = 1 << 0, /* Error record */ + BOOTSTAGEF_ALLOC = 1 << 1, /* Allocate an id */ +}; + /* * A list of boot stages that we know about. Each of these indicates the * state that we are at, and the action that we are about to perform. For @@ -221,6 +227,17 @@ void show_boot_progress(int val); #ifdef CONFIG_BOOTSTAGE /* This is the full bootstage implementation */ +/** + * Add a new bootstage record + * + * @param id Bootstage ID to use (ignored if flags & BOOTSTAGEF_ALLOC) + * @param name Name of record, or NULL for none + * @param flags Flags (BOOTSTAGEF_...) + * @param mark Time to record in this record, in microseconds + */ +ulong bootstage_add_record(enum bootstage_id id, const char *name, + int flags, ulong mark); + /* * Mark a time stamp for the current boot stage. */ |