soc/intel/skylake: Correct address of I2C5 Device
[coreboot.git] / src / include / fmap.h
blob684a05c607efed32cabf51163a63fb8224b6c957
1 /*
2 * This file is part of the coreboot project.
4 * Copyright 2015 Google Inc.
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; version 2 of the License.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
16 #ifndef _FMAP_H_
17 #define _FMAP_H_
19 #include <commonlib/region.h>
20 #include <commonlib/fmap_serialized.h>
22 /* Locate the fmap directory. Return 0 on success, < 0 on error. */
23 int find_fmap_directory(struct region_device *fmrd);
25 /* Locate the named area in the fmap and fill in a region device representing
26 * that area. The region is a sub-region of the readonly boot media. Return
27 * 0 on success, < 0 on error. */
28 int fmap_locate_area_as_rdev(const char *name, struct region_device *area);
30 /* Locate the named area in the fmap and fill in a region with the
31 * offset and size of that area within the boot media. Return 0 on success,
32 * < 0 on error. */
33 int fmap_locate_area(const char *name, struct region *r);
35 /* Find fmap area name by offset and size.
36 * Return 0 on success, < 0 on error. */
37 int fmap_find_region_name(const struct region * const ar,
38 char name[FMAP_STRLEN]);
39 #endif