Aaron Durbin (adurbin@chromium.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/10215
-gerrit
commit a01eafc05b311473eb8f42f9b208baee944a39f1 Author: Aaron Durbin adurbin@chromium.org Date: Fri May 15 13:23:49 2015 -0500
regions: add region_device_sz()
Provide a helper function for determining the size of a region device.
Change-Id: I8896eaf5b29e4a67470f4adc6f5b541566cb93b5 Signed-off-by: Aaron Durbin adurbin@chromium.org --- src/include/region.h | 5 +++++ 1 file changed, 5 insertions(+)
diff --git a/src/include/region.h b/src/include/region.h index 99ea488..5e8694d 100644 --- a/src/include/region.h +++ b/src/include/region.h @@ -98,6 +98,11 @@ static inline size_t region_sz(const struct region *r) return r->size; }
+static inline size_t region_device_sz(const struct region_device *rdev) +{ + return region_sz(&rdev->region); +} + struct mem_region_device { char *base; struct region_device rdev;