162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * linux/include/asm/setup.h 462306a36Sopenharmony_ci * 562306a36Sopenharmony_ci * Copyright (C) 1997-1999 Russell King 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Structure passed to kernel to tell it about the 862306a36Sopenharmony_ci * hardware it's running on. See Documentation/arch/arm/setup.rst 962306a36Sopenharmony_ci * for more info. 1062306a36Sopenharmony_ci */ 1162306a36Sopenharmony_ci#ifndef __ASMARM_SETUP_H 1262306a36Sopenharmony_ci#define __ASMARM_SETUP_H 1362306a36Sopenharmony_ci 1462306a36Sopenharmony_ci#include <uapi/asm/setup.h> 1562306a36Sopenharmony_ci 1662306a36Sopenharmony_ci 1762306a36Sopenharmony_ci#define __tag __used __section(".taglist.init") 1862306a36Sopenharmony_ci#define __tagtable(tag, fn) \ 1962306a36Sopenharmony_cistatic const struct tagtable __tagtable_##fn __tag = { tag, fn } 2062306a36Sopenharmony_ci 2162306a36Sopenharmony_ciextern int arm_add_memory(u64 start, u64 size); 2262306a36Sopenharmony_ciextern __printf(1, 2) void early_print(const char *str, ...); 2362306a36Sopenharmony_ciextern void dump_machine_table(void); 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci#ifdef CONFIG_ATAGS_PROC 2662306a36Sopenharmony_ciextern void save_atags(const struct tag *tags); 2762306a36Sopenharmony_ci#else 2862306a36Sopenharmony_cistatic inline void save_atags(const struct tag *tags) { } 2962306a36Sopenharmony_ci#endif 3062306a36Sopenharmony_ci 3162306a36Sopenharmony_cistruct machine_desc; 3262306a36Sopenharmony_civoid init_default_cache_policy(unsigned long); 3362306a36Sopenharmony_civoid paging_init(const struct machine_desc *desc); 3462306a36Sopenharmony_civoid early_mm_init(const struct machine_desc *); 3562306a36Sopenharmony_civoid adjust_lowmem_bounds(void); 3662306a36Sopenharmony_civoid setup_dma_zone(const struct machine_desc *desc); 3762306a36Sopenharmony_ci 3862306a36Sopenharmony_ci#endif 39