blob: cb2052d0ed722ed0933c7ee762a1a656dea35e3d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
/*
* 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_FUTILITY_TRAVERSAL_H_
#define VBOOT_REFERENCE_FUTILITY_TRAVERSAL_H_
#include <stdint.h>
#include "fmap.h"
/*
* The Chrome OS BIOS must contain specific FMAP areas, and we generally want
* to look at each one in a certain order.
*/
enum bios_component {
BIOS_FMAP_GBB,
BIOS_FMAP_FW_MAIN_A,
BIOS_FMAP_FW_MAIN_B,
BIOS_FMAP_VBLOCK_A,
BIOS_FMAP_VBLOCK_B,
NUM_BIOS_COMPONENTS
};
/* These are the expected areas, in order of traversal */
extern struct bios_fmap_s {
enum bios_component component;
const char * const name;
/* The Cr-48 BIOS images have different FMAP names but work the same,
* so we allow those too. */
const char * const oldname;
} bios_area[];
void fmap_limit_area(FmapAreaHeader *ah, uint32_t len);
#endif /* VBOOT_REFERENCE_FUTILITY_TRAVERSAL_H_ */
|