summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTim Wawrzynczak <twawrzynczak@chromium.org>2020-10-01 15:41:31 -0600
committerTim Wawrzynczak <twawrzynczak@chromium.org>2020-10-30 15:24:52 +0000
commit24b4af668b3f3995a5844560ce1885d30d8d8bfd (patch)
treea3dfb0a1e8b4d3b02c0b94b7d39e55e56c0e4961 /src/include
parenteafe7989ace4e5d0b4214b6b30467438da3965ff (diff)
downloadcoreboot-24b4af668b3f3995a5844560ce1885d30d8d8bfd.tar.xz
fw_config: Convert fw_config to a 64-bit field
We all knew this was coming, 32 bits is never enough. Doing this early so that it doesn't affect too much code yet. Take care of every usage of fw_config throughout the codebase so the conversion is all done at once. BUG=b:169668368 TEST=Hacked up this code to OR 0x1_000_0000 with CBI-sourced FW_CONFIG and verify the console print contained that bit. Signed-off-by: Tim Wawrzynczak <twawrzynczak@chromium.org> Change-Id: I6f2065d347eafa0ef7b346caeabdc3b626402092 Reviewed-on: https://review.coreboot.org/c/coreboot/+/45939 Reviewed-by: Furquan Shaikh <furquan@google.com> Reviewed-by: Angel Pons <th3fanbus@gmail.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include')
-rw-r--r--src/include/fw_config.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/fw_config.h b/src/include/fw_config.h
index 81980b93ae..494ce7f389 100644
--- a/src/include/fw_config.h
+++ b/src/include/fw_config.h
@@ -18,8 +18,8 @@
struct fw_config {
const char *field_name;
const char *option_name;
- uint32_t mask;
- uint32_t value;
+ uint64_t mask;
+ uint64_t value;
};
/* Generate a pointer to a compound literal of the fw_config structure. */
@@ -53,7 +53,7 @@ void fw_config_for_each_found(void (*cb)(const struct fw_config *config, void *a
*
* Return pointer to cached `struct fw_config` if successfully probed, otherwise NULL.
*/
-const struct fw_config *fw_config_get_found(uint32_t field_mask);
+const struct fw_config *fw_config_get_found(uint64_t field_mask);
#else