]>
git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blob - arch/unicore32/include/asm/memblock.h
1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/unicore32/include/asm/memblock.h
5 * Code specific to PKUnity SoC and UniCore ISA
7 * Copyright (C) 2001-2010 GUAN Xue-tao
10 #ifndef __UNICORE_MEMBLOCK_H__
11 #define __UNICORE_MEMBLOCK_H__
14 * Memory map description
26 struct membank bank
[NR_BANKS
];
29 extern struct meminfo meminfo
;
31 #define for_each_bank(iter, mi) \
32 for (iter = 0; iter < (mi)->nr_banks; iter++)
34 #define bank_pfn_start(bank) __phys_to_pfn((bank)->start)
35 #define bank_pfn_end(bank) __phys_to_pfn((bank)->start + (bank)->size)
36 #define bank_pfn_size(bank) ((bank)->size >> PAGE_SHIFT)
37 #define bank_phys_start(bank) ((bank)->start)
38 #define bank_phys_end(bank) ((bank)->start + (bank)->size)
39 #define bank_phys_size(bank) ((bank)->size)
41 extern void uc32_memblock_init(struct meminfo
*);