hv_vos_BaseArch.h 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * @file hv_vos_BaseArch.h
  3. * @brief Header file of base arch.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use ()
  10. *
  11. * @endverbatim
  12. * @author HiView SoC Software Team
  13. * @version 1.0.0
  14. * @date 2023-03-01
  15. */
  16. #ifndef _HV_VOS_ARCH_RISC_H
  17. #define _HV_VOS_ARCH_RISC_H
  18. #include <string.h>
  19. #include <stdlib.h>
  20. #include <stdarg.h>
  21. #include <stddef.h>
  22. #include <errno.h>
  23. #include <time.h>
  24. #include <unistd.h>
  25. #include <sys/time.h>
  26. #include <sys/times.h>
  27. #include <mips/cpu.h>
  28. #include <sys/types.h>
  29. #include <sys/stat.h>
  30. #define INLINE static inline
  31. typedef unsigned long long HV_VOS_IRQ_T;
  32. #define HV_SWAP32(x) __bswap32(x)
  33. #define HV_SWAP16(x) __bswap16(x)
  34. #define DECLARE_ALIGNED(n, type, v) type __attribute__ ((aligned (n))) v
  35. #define HV_PHY_ADDR(addr) ((intptr_t)((addr) | 0xA0000000))
  36. #endif