cpuinfo.h 763 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* SPDX-License-Identifier: GPL-2.0-or-later */
  2. /*
  3. * OpenRISC Linux
  4. *
  5. * Linux architectural port borrowing liberally from similar works of
  6. * others. All original copyrights apply as per the original source
  7. * declaration.
  8. *
  9. * OpenRISC implementation:
  10. * Copyright (C) 2003 Matjaz Breskvar <phoenix@bsemi.com>
  11. * Copyright (C) 2010-2011 Jonas Bonn <jonas@southpole.se>
  12. * et al.
  13. */
  14. #ifndef __ASM_OPENRISC_CPUINFO_H
  15. #define __ASM_OPENRISC_CPUINFO_H
  16. struct cpuinfo_or1k {
  17. u32 clock_frequency;
  18. u32 icache_size;
  19. u32 icache_block_size;
  20. u32 icache_ways;
  21. u32 dcache_size;
  22. u32 dcache_block_size;
  23. u32 dcache_ways;
  24. u16 coreid;
  25. };
  26. extern struct cpuinfo_or1k cpuinfo_or1k[NR_CPUS];
  27. extern void setup_cpuinfo(void);
  28. #endif /* __ASM_OPENRISC_CPUINFO_H */