cpu.h 649 B

1234567891011121314151617181920212223242526
  1. #ifndef _NAS782X_CPU_H
  2. #define _NAS782X_CPU_H
  3. #if !(defined(__KERNEL_STRICT_NAMES) || defined(__ASSEMBLY__))
  4. #include <asm/types.h>
  5. #include <asm/io.h>
  6. #endif /* !(__KERNEL_STRICT_NAMES || __ASSEMBLY__) */
  7. #include <asm/arch/hardware.h>
  8. #include <asm/arch/timer.h>
  9. #ifndef __KERNEL_STRICT_NAMES
  10. #ifndef __ASSEMBLY__
  11. #define BIT(x) (1 << (x))
  12. /* fix "implicit declaration of function" warnning */
  13. void *memalign(size_t alignment, size_t bytes);
  14. void free(void* mem);
  15. void *malloc(size_t bytes);
  16. void *calloc(size_t n, size_t elem_size);
  17. #endif /* __ASSEMBLY__ */
  18. #endif /* __KERNEL_STRICT_NAMES */
  19. #endif /* _NAS782X_CPU_H */