-#ifdef __APPLE_API_PRIVATE
-extern vm_offset_t io_map(
- vm_map_offset_t phys_addr,
- vm_size_t size,
- unsigned int flags);
+#ifdef __APPLE_API_PRIVATE
+extern vm_offset_t io_map(
+ vm_map_offset_t phys_addr,
+ vm_size_t size,
+ unsigned int flags);
+
+extern vm_offset_t io_map_with_prot(
+ vm_map_offset_t phys_addr,
+ vm_size_t size,
+ unsigned int flags,
+ vm_prot_t prot);
+