global_data.h 771 B

12345678910111213141516171819202122232425262728293031323334353637
  1. /*
  2. * (C) Copyright 2002-2010
  3. * Wolfgang Denk, DENX Software Engineering, wd@denx.de.
  4. *
  5. * SPDX-License-Identifier: GPL-2.0+
  6. */
  7. #ifndef __ASM_GBL_DATA_H
  8. #define __ASM_GBL_DATA_H
  9. #include <asm/regdef.h>
  10. /* Architecture-specific global data */
  11. struct arch_global_data {
  12. #ifdef CONFIG_DYNAMIC_IO_PORT_BASE
  13. unsigned long io_port_base;
  14. #endif
  15. #ifdef CONFIG_ARCH_ATH79
  16. unsigned long id;
  17. unsigned long soc;
  18. unsigned long rev;
  19. unsigned long ver;
  20. #endif
  21. #ifdef CONFIG_SYS_CACHE_SIZE_AUTO
  22. unsigned short l1i_line_size;
  23. unsigned short l1d_line_size;
  24. #endif
  25. #ifdef CONFIG_MIPS_L2_CACHE
  26. unsigned short l2_line_size;
  27. #endif
  28. };
  29. #include <asm-generic/global_data.h>
  30. #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("k0")
  31. #endif /* __ASM_GBL_DATA_H */