Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  *  linux/include/asm/setup.h
0004  *
0005  *  Copyright (C) 1997-1999 Russell King
0006  *
0007  *  Structure passed to kernel to tell it about the
0008  *  hardware it's running on.  See Documentation/arm/setup.rst
0009  *  for more info.
0010  */
0011 #ifndef __ASMARM_SETUP_H
0012 #define __ASMARM_SETUP_H
0013 
0014 #include <uapi/asm/setup.h>
0015 
0016 
0017 #define __tag __used __section(".taglist.init")
0018 #define __tagtable(tag, fn) \
0019 static const struct tagtable __tagtable_##fn __tag = { tag, fn }
0020 
0021 extern int arm_add_memory(u64 start, u64 size);
0022 extern __printf(1, 2) void early_print(const char *str, ...);
0023 extern void dump_machine_table(void);
0024 
0025 #ifdef CONFIG_ATAGS_PROC
0026 extern void save_atags(const struct tag *tags);
0027 #else
0028 static inline void save_atags(const struct tag *tags) { }
0029 #endif
0030 
0031 #endif