Index: uspace/lib/c/generic/ddi.c
===================================================================
--- uspace/lib/c/generic/ddi.c	(revision 9e9ced0300cf1ad870193c8f3e55f88232dedc48)
+++ uspace/lib/c/generic/ddi.c	(revision 5609d3c3ab0635e8d07c718f3170b8cc23535dd7)
@@ -224,4 +224,5 @@
  * @param res        Resources specifying the I/O range wrt. to the PIO window.
  * @param[out] virt  Virtual address for application's PIO operations.
+ * @param[out] phys  If non-NULL, physical address of the resource
  * @param[out] size  If non-NULL, size of the enabled resource.
  *
@@ -231,5 +232,5 @@
  */
 errno_t pio_enable_resource(pio_window_t *win, hw_resource_t *res, void **virt,
-    size_t *size)
+    uintptr_t *phys, size_t *size)
 {
 	uintptr_t addr;
@@ -259,4 +260,6 @@
 	}
 
+	if (phys)
+		*phys = addr;
 	if (size)
 		*size = sz;
