summaryrefslogtreecommitdiff
path: root/src/lib/region.c
diff options
context:
space:
mode:
authorAaron Durbin <adurbin@chromium.org>2015-05-15 13:23:49 -0500
committerPatrick Georgi <pgeorgi@google.com>2015-05-19 10:36:43 +0200
commite645bcae7ccf1d7e4e75aa7d9149df5dae1d19c4 (patch)
tree333f4df246ad5ce0026e9d7879c300cc2f5d5791 /src/lib/region.c
parentc877149e9d46b0de4bc709faf3cfb4f0a23c9cc5 (diff)
regions: add more helpers
Fill out functions to get the offset and size for both regions and region_devices. Additionally add a helper for memory mapping an entire region_device. Change-Id: I8896eaf5b29e4a67470f4adc6f5b541566cb93b5 Signed-off-by: Aaron Durbin <adurbin@chromium.org> Reviewed-on: http://review.coreboot.org/10215 Tested-by: build bot (Jenkins) Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/lib/region.c')
-rw-r--r--src/lib/region.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/lib/region.c b/src/lib/region.c
index b56b3d7e90..d5d37629e9 100644
--- a/src/lib/region.c
+++ b/src/lib/region.c
@@ -20,11 +20,6 @@
#include <region.h>
#include <string.h>
-static inline size_t region_offset(const struct region *r)
-{
- return r->offset;
-}
-
static inline size_t region_end(const struct region *r)
{
return region_sz(r) + region_offset(r);