blob: 2d6cd90376dfdba2a85b23e545e549e777f455ed (
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
39
40
41
42
43
44
45
46
47
48
|
/*
* Copyright (c) 2011 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.
*
* Alternatively, this software may be distributed under the terms of the
* GNU General Public License ("GPL") version 2 as published by the Free
* Software Foundation.
*/
#ifndef CHROMEOS_FMAP_H_
#define CHROMEOS_FMAP_H_
#include <compiler.h>
/* Structures to hold Chrome OS specific configuration from the FMAP. */
struct fmap_entry {
uint32_t offset;
uint32_t length;
};
struct fmap_firmware_entry {
struct fmap_entry boot; /* U-Boot */
struct fmap_entry vblock;
struct fmap_entry firmware_id;
uint64_t block_lba;
};
/*
* Only sections that are used during booting are put here. More sections will
* be added if required.
*/
struct twostop_fmap {
struct {
struct fmap_entry fmap;
struct fmap_entry gbb;
struct fmap_entry firmware_id;
} readonly;
struct fmap_firmware_entry readwrite_a;
struct fmap_firmware_entry readwrite_b;
u32 flash_base;
};
void dump_fmap(struct twostop_fmap *config);
#endif /* CHROMEOS_FMAP_H_ */
|