diff options
author | Bill Richardson <wfrichar@chromium.org> | 2014-06-23 17:48:33 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-07-09 03:29:57 +0000 |
commit | 18e03706df6ab4256a89f4e578ecf0f165641c8a (patch) | |
tree | 0536d6cc3a0a00289565514a9f87bcfff3a05882 /firmware/lib/cgptlib/include | |
parent | 782990277ac7d6730db4c43c2b5632de93396921 (diff) | |
download | vboot-18e03706df6ab4256a89f4e578ecf0f165641c8a.tar.gz |
Clean up exported Mtd* functions
A lot of functions were added some time ago, nominally to support keeping
the firmware in an MTD device that wasn't formatted with the GPT headers.
That work was never completed, so these functions aren't used anywhere.
We may want to resurrect this work at some future point. Until then, this CL
just moves some of the functions into an "unused" file.
BUG=chromium:231567
BRANCH=ToT
TEST=manual
All tests pass, all firmware and external repos build.
Change-Id: I420dd52d1cea0418cedf2f8e834c61145915f20c
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/207037
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'firmware/lib/cgptlib/include')
-rw-r--r-- | firmware/lib/cgptlib/include/mtdlib.h | 14 | ||||
-rw-r--r-- | firmware/lib/cgptlib/include/mtdlib_unused.h | 19 |
2 files changed, 19 insertions, 14 deletions
diff --git a/firmware/lib/cgptlib/include/mtdlib.h b/firmware/lib/cgptlib/include/mtdlib.h index fd749aca..916c9fab 100644 --- a/firmware/lib/cgptlib/include/mtdlib.h +++ b/firmware/lib/cgptlib/include/mtdlib.h @@ -123,17 +123,10 @@ typedef struct { /* APIs are documented in cgptlib.h & cgptlib_internal.h */ -int MtdInit(MtdData *mtd); -int MtdCheckParameters(MtdData *mtd); - -int MtdNextKernelEntry(MtdData *gpt, uint64_t *start_sector, uint64_t *size); -int MtdUpdateKernelEntry(MtdData *gpt, uint32_t update_type); - int MtdGetEntryPriority(const MtdDiskPartition *e); int MtdGetEntryTries(const MtdDiskPartition *e); int MtdGetEntrySuccessful(const MtdDiskPartition *e); int MtdGetEntryType(const MtdDiskPartition *e); -int MtdIsKernelEntry(const MtdDiskPartition *e); void MtdSetEntrySuccessful(MtdDiskPartition *e, int successful) ; void MtdSetEntryPriority(MtdDiskPartition *e, int priority); void MtdSetEntryTries(MtdDiskPartition *e, int tries); @@ -145,15 +138,8 @@ void MtdGetPartitionSize(const MtdDiskPartition *e, void MtdGetPartitionSizeInSectors(const MtdDiskPartition *e, uint64_t *start, uint64_t *end, uint64_t *size); -void MtdModified(MtdData *mtd); int MtdGptInit(MtdData *mtd); -int MtdIsPartitionValid(const MtdDiskPartition *part); -int MtdCheckEntries(MtdDiskPartition *entries, MtdDiskLayout *h); -int MtdSanityCheck(MtdData *disk); -void MtdRepair(MtdData *gpt); -void MtdGetCurrentKernelUniqueGuid(MtdData *gpt, void *dest); uint32_t MtdHeaderCrc(MtdDiskLayout *h); - #endif diff --git a/firmware/lib/cgptlib/include/mtdlib_unused.h b/firmware/lib/cgptlib/include/mtdlib_unused.h new file mode 100644 index 00000000..f331decd --- /dev/null +++ b/firmware/lib/cgptlib/include/mtdlib_unused.h @@ -0,0 +1,19 @@ +/* Copyright (c) 2013 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 VBOOT_REFERENCE_MTDLIB_UNUSED_H_ +#define VBOOT_REFERENCE_MTDLIB_UNUSED_H_ + +int MtdIsKernelEntry(const MtdDiskPartition *e); +void MtdModified(MtdData *mtd); +int MtdIsPartitionValid(const MtdDiskPartition *part); +int MtdCheckParameters(MtdData *disk); +int MtdCheckEntries(MtdDiskPartition *entries, MtdDiskLayout *h); +int MtdSanityCheck(MtdData *disk); +int MtdInit(MtdData *mtd); +int MtdNextKernelEntry(MtdData *mtd, uint64_t *start_sector, uint64_t *size); +int MtdUpdateKernelEntry(MtdData *mtd, uint32_t update_type); + +#endif /* VBOOT_REFERENCE_MTDLIB_UNUSED_H_ */ |