18c2ecf20Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */
28c2ecf20Sopenharmony_ci#ifndef _PPC_BOOT_CUBOOT_H_
38c2ecf20Sopenharmony_ci#define _PPC_BOOT_CUBOOT_H_
48c2ecf20Sopenharmony_ci
58c2ecf20Sopenharmony_civoid cuboot_init(unsigned long r4, unsigned long r5,
68c2ecf20Sopenharmony_ci		 unsigned long r6, unsigned long r7,
78c2ecf20Sopenharmony_ci		 unsigned long end_of_ram);
88c2ecf20Sopenharmony_ci
98c2ecf20Sopenharmony_ci#define CUBOOT_INIT() \
108c2ecf20Sopenharmony_ci	do { \
118c2ecf20Sopenharmony_ci		memcpy(&bd, (bd_t *)r3, sizeof(bd)); \
128c2ecf20Sopenharmony_ci		cuboot_init(r4, r5, r6, r7, bd.bi_memstart + bd.bi_memsize); \
138c2ecf20Sopenharmony_ci	} while (0)
148c2ecf20Sopenharmony_ci
158c2ecf20Sopenharmony_ci#endif /* _PPC_BOOT_CUBOOT_H_ */
16