setup.h 788 B

12345678910111213141516171819202122232425262728293031
  1. /* SPDX-License-Identifier: GPL-2.0-only */
  2. /*
  3. * linux/include/asm/setup.h
  4. *
  5. * Copyright (C) 1997-1999 Russell King
  6. *
  7. * Structure passed to kernel to tell it about the
  8. * hardware it's running on. See Documentation/arm/setup.rst
  9. * for more info.
  10. */
  11. #ifndef __ASMARM_SETUP_H
  12. #define __ASMARM_SETUP_H
  13. #include <uapi/asm/setup.h>
  14. #define __tag __used __section(".taglist.init")
  15. #define __tagtable(tag, fn) \
  16. static const struct tagtable __tagtable_##fn __tag = { tag, fn }
  17. extern int arm_add_memory(u64 start, u64 size);
  18. extern __printf(1, 2) void early_print(const char *str, ...);
  19. extern void dump_machine_table(void);
  20. #ifdef CONFIG_ATAGS_PROC
  21. extern void save_atags(const struct tag *tags);
  22. #else
  23. static inline void save_atags(const struct tag *tags) { }
  24. #endif
  25. #endif