* Get an offset from a host pointer. This function assumes the ROM is located * in the host address space at [4G - romsize -> 4G). It also assume all * pointers have values within this address range. */
| 113 | * pointers have values within this address range. |
| 114 | */ |
| 115 | static inline int ptr_to_offset(fit_offset_converter_t helper, |
| 116 | const struct buffer *region, uint32_t host_ptr) |
| 117 | { |
| 118 | return helper(region, -host_ptr); |
| 119 | } |
| 120 | |
| 121 | /* |
| 122 | * Get a pointer from an offset. This function assumes the ROM is located |
no outgoing calls
no test coverage detected