| 570 | } |
| 571 | |
| 572 | static unsigned int convert_addr_space(const struct buffer *region, unsigned int addr) |
| 573 | { |
| 574 | assert(region); |
| 575 | |
| 576 | assert(create_mmap_windows()); |
| 577 | |
| 578 | if (IS_HOST_SPACE_ADDRESS(addr)) |
| 579 | return convert_host_to_flash(region, addr); |
| 580 | else |
| 581 | return convert_flash_to_host(region, addr); |
| 582 | } |
| 583 | |
| 584 | /* |
| 585 | * This function takes offset value which represents the offset from one end of the region and |
no test coverage detected