diff options
author | Adam Muhle <armuhle@us.ibm.com> | 2013-05-23 14:02:23 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2013-06-03 13:06:14 -0500 |
commit | 337ef5a9a1f8a413644ae1cfd344896ba3c872ea (patch) | |
tree | 5e5cdd920cbdcf811e54e7b6e9e6481f7b17a3d9 /src/usr/pnor/ffs.h | |
parent | cf0ce1fae5dbdb9586146bf21c3e56d3a21baa9d (diff) | |
download | talos-hostboot-337ef5a9a1f8a413644ae1cfd344896ba3c872ea.tar.gz talos-hostboot-337ef5a9a1f8a413644ae1cfd344896ba3c872ea.zip |
Define User Data bits in PNOR TOC
Change-Id: Ie2bc561c2cfdbea32ba08d9e74bf1f36cf1f43cd
RTC: 66209
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/4687
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pnor/ffs.h')
-rw-r--r-- | src/usr/pnor/ffs.h | 55 |
1 files changed, 31 insertions, 24 deletions
diff --git a/src/usr/pnor/ffs.h b/src/usr/pnor/ffs.h index e640c1e79..99f29d63b 100644 --- a/src/usr/pnor/ffs.h +++ b/src/usr/pnor/ffs.h @@ -1,26 +1,25 @@ -/* IBM_PROLOG_BEGIN_TAG - * This is an automatically generated prolog. - * - * $Source: src/usr/pnor/ffs.h $ - * - * IBM CONFIDENTIAL - * - * COPYRIGHT International Business Machines Corp. 2012 - * - * p1 - * - * Object Code Only (OCO) source materials - * Licensed Internal Code Source Materials - * IBM HostBoot Licensed Internal Code - * - * The source code for this program is not published or other- - * wise divested of its trade secrets, irrespective of what has - * been deposited with the U.S. Copyright Office. - * - * Origin: 30 - * - * IBM_PROLOG_END_TAG - */ +/* IBM_PROLOG_BEGIN_TAG */ +/* This is an automatically generated prolog. */ +/* */ +/* $Source: src/usr/pnor/ffs.h $ */ +/* */ +/* IBM CONFIDENTIAL */ +/* */ +/* COPYRIGHT International Business Machines Corp. 2012,2013 */ +/* */ +/* p1 */ +/* */ +/* Object Code Only (OCO) source materials */ +/* Licensed Internal Code Source Materials */ +/* IBM HostBoot Licensed Internal Code */ +/* */ +/* The source code for this program is not published or otherwise */ +/* divested of its trade secrets, irrespective of what has been */ +/* deposited with the U.S. Copyright Office. */ +/* */ +/* Origin: 30 */ +/* */ +/* IBM_PROLOG_END_TAG */ /* * Copyright (c) International Business Machines Corp., 2012 * @@ -32,7 +31,12 @@ #ifndef __FFS_H__ #define __FFS_H__ +/* Pull in the correct header depending on what is being built */ +#if defined(__KERNEL__) +#include <linux/types.h> +#else #include <stdint.h> +#endif /* The version of this partition implementation */ #define FFS_VERSION_1 1 @@ -71,6 +75,7 @@ enum type { * Flag bit definitions */ #define FFS_FLAGS_PROTECTED 0x0001 +#define FFS_FLAGS_U_BOOT_ENV 0x0002 /* * Number of user data words @@ -87,6 +92,7 @@ enum type { * @id: Partition entry ID [1..65536] * @type: Describe type of partition * @flags: Partition attributes (optional) + * @actual: Actual partition size (in bytes) * @resvd: Reserved words for future use * @user: User data (optional) * @checksum: Partition entry checksum (includes all above) @@ -99,7 +105,8 @@ struct ffs_entry { uint32_t id; uint32_t type; uint32_t flags; - uint32_t resvd[5]; + uint32_t actual; + uint32_t resvd[4]; struct { uint32_t data[FFS_USER_WORDS]; } user; |