physmap.c: Introduce round_to_page_boundaries()

V.2: Fix missing include of <inttypes.h>.

This is needed for the SPI100 controller in
Picasso. This is because we needed to round
address ranges requested from rphysmap() to
the page boundaries.

BUG=chromium:478356,b:124061017
BRANCH=none
TEST=still builds

Change-Id: I1bdbb0be776c619a49dfb9fcc8e6e82b49d18c1b
Signed-off-by: Edward O'Callaghan <quasisec@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/flashrom/+/1635061
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
diff --git a/programmer.h b/programmer.h
index 2efe1ff..5f595d1 100644
--- a/programmer.h
+++ b/programmer.h
@@ -291,6 +291,7 @@
 void *rphysmap(const char *descr, uintptr_t phys_addr, size_t len);
 void *physmap_ro(const char *descr, uintptr_t phys_addr, size_t len);
 void physunmap(void *virt_addr, size_t len);
+void physunmap_unaligned(void *virt_addr, size_t len);
 #if CONFIG_INTERNAL == 1
 int setup_cpu_msr(int cpu);
 void cleanup_cpu_msr(void);