leon3.h 758 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* LEON3 header file. LEON3 is a free GPL SOC processor available
  2. * at www.gaisler.com.
  3. *
  4. * (C) Copyright 2007
  5. * Daniel Hellstrom, Gaisler Research, daniel@gaisler.com.
  6. *
  7. * SPDX-License-Identifier: GPL-2.0+
  8. */
  9. #ifndef __LEON3_H__
  10. #define __LEON3_H__
  11. #ifndef CONFIG_LEON3
  12. #error Include LEON3 header file only if LEON3 processor
  13. #endif
  14. /* Not much to define, most is Plug and Play and GRLIB dependent
  15. * not LEON3 dependent. See <ambapp.h> for GRLIB timers, interrupt
  16. * ctrl, memory controllers etc.
  17. */
  18. #ifndef __ASSEMBLER__
  19. /* The frequency of the CPU */
  20. extern unsigned int leon_cpu_freq;
  21. /* Number of LEON processors in system */
  22. extern int leon_cpu_cnt;
  23. /* Ver/subversion of CPU */
  24. extern int leon_ver;
  25. #endif /* __ASSEMBLER__ */
  26. #endif