drivers/base/memory.c: introduce help macro to_memory_block