Go to the documentation of this file.
13 #ifndef __UNICORE_MEMBLOCK_H__
14 #define __UNICORE_MEMBLOCK_H__
34 #define for_each_bank(iter, mi) \
35 for (iter = 0; iter < (mi)->nr_banks; iter++)
37 #define bank_pfn_start(bank) __phys_to_pfn((bank)->start)
38 #define bank_pfn_end(bank) __phys_to_pfn((bank)->start + (bank)->size)
39 #define bank_pfn_size(bank) ((bank)->size >> PAGE_SHIFT)
40 #define bank_phys_start(bank) ((bank)->start)
41 #define bank_phys_end(bank) ((bank)->start + (bank)->size)
42 #define bank_phys_size(bank) ((bank)->size)