Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: src/platform/vboot_reference/cgptlib/cgpt_internal.h

Issue 1701017: Add more test cases for GptInit() and fixed some bugs (Closed)
Patch Set: refine for code review Created 10 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file.
4 */
5
6 #ifndef VBOOT_REFERENCE_CGPT_INTERNAL_H_
7 #define VBOOT_REFERENCE_CGPT_INTERNAL_H_
8
9 #include <stdint.h>
10 #include "cgpt.h"
11
12 /* Internal use only.
13 * Don't use them unless you know what you are doing. */
14 int CheckParameters(GptData *gpt);
15 uint32_t CheckHeaderSignature(GptData *gpt);
16 uint32_t CheckRevision(GptData *gpt);
17 uint32_t CheckSize(GptData *gpt);
18 uint32_t CheckReservedFields(GptData *gpt);
19 uint32_t CheckMyLba(GptData *gpt);
20 uint32_t CheckSizeOfPartitionEntry(GptData *gpt);
21 uint32_t CheckNumberOfEntries(GptData *gpt);
22 uint32_t CheckEntriesLba(GptData *gpt);
23 uint32_t CheckValidUsableLbas(GptData *gpt);
24 uint32_t CheckHeaderCrc(GptData *gpt);
25 uint32_t CheckEntriesCrc(GptData *gpt);
26 uint32_t CheckValidEntries(GptData *gpt);
27 int OverlappedEntries(GptEntry *entries, uint32_t number_of_entries);
28 uint32_t CheckOverlappedPartition(GptData *gpt);
29 uint8_t RepairEntries(GptData *gpt, const uint32_t valid_entries);
30 uint8_t RepairHeader(GptData *gpt, const uint32_t valid_headers);
31 typedef struct {
32 uint64_t starting;
33 uint64_t ending;
34 } pair_t;
35
36 #endif /* VBOOT_REFERENCE_CGPT_INTERNAL_H_ */
OLDNEW
« no previous file with comments | « src/platform/vboot_reference/cgptlib/cgpt.c ('k') | src/platform/vboot_reference/cgptlib/crc32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698