xt_timer.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /* Definitions for the xt_timer TIE package */
  2. /*
  3. * Customer ID=11657; Build=0x5fe96; Copyright (c) 2004-2010 by Tensilica Inc. ALL RIGHTS RESERVED.
  4. * These coded instructions, statements, and computer programs are the
  5. * copyrighted works and confidential proprietary information of Tensilica Inc.
  6. * They may not be modified, copied, reproduced, distributed, or disclosed to
  7. * third parties in any manner, medium, or form, in whole or in part, without
  8. * the prior written consent of Tensilica Inc.
  9. */
  10. /* Do not modify. This is automatically generated.*/
  11. #ifndef _XTENSA_xt_timer_HEADER
  12. #define _XTENSA_xt_timer_HEADER
  13. #ifdef __XTENSA__
  14. #ifdef __XCC__
  15. #include <xtensa/tie/xt_core.h>
  16. /*
  17. * The following prototypes describe intrinsic functions
  18. * corresponding to TIE instructions. Some TIE instructions
  19. * may produce multiple results (designated as "out" operands
  20. * in the iclass section) or may have operands used as both
  21. * inputs and outputs (designated as "inout"). However, the C
  22. * and C++ languages do not provide syntax that can express
  23. * the in/out/inout constraints of TIE intrinsics.
  24. * Nevertheless, the compiler understands these constraints
  25. * and will check that the intrinsic functions are used
  26. * correctly. To improve the readability of these prototypes,
  27. * the "out" and "inout" parameters are marked accordingly
  28. * with comments.
  29. */
  30. extern unsigned _TIE_xt_timer_RSR_CCOUNT(void);
  31. extern void _TIE_xt_timer_WSR_CCOUNT(unsigned art);
  32. extern void _TIE_xt_timer_XSR_CCOUNT(unsigned art /*inout*/);
  33. extern unsigned _TIE_xt_timer_RSR_CCOMPARE0(void);
  34. extern void _TIE_xt_timer_WSR_CCOMPARE0(unsigned art);
  35. extern void _TIE_xt_timer_XSR_CCOMPARE0(unsigned art /*inout*/);
  36. extern unsigned _TIE_xt_timer_RSR_CCOMPARE1(void);
  37. extern void _TIE_xt_timer_WSR_CCOMPARE1(unsigned art);
  38. extern void _TIE_xt_timer_XSR_CCOMPARE1(unsigned art /*inout*/);
  39. extern unsigned _TIE_xt_timer_RSR_CCOMPARE2(void);
  40. extern void _TIE_xt_timer_WSR_CCOMPARE2(unsigned art);
  41. extern void _TIE_xt_timer_XSR_CCOMPARE2(unsigned art /*inout*/);
  42. #define XT_RSR_CCOUNT _TIE_xt_timer_RSR_CCOUNT
  43. #define XT_WSR_CCOUNT _TIE_xt_timer_WSR_CCOUNT
  44. #define XT_XSR_CCOUNT _TIE_xt_timer_XSR_CCOUNT
  45. #define XT_RSR_CCOMPARE0 _TIE_xt_timer_RSR_CCOMPARE0
  46. #define XT_WSR_CCOMPARE0 _TIE_xt_timer_WSR_CCOMPARE0
  47. #define XT_XSR_CCOMPARE0 _TIE_xt_timer_XSR_CCOMPARE0
  48. #define XT_RSR_CCOMPARE1 _TIE_xt_timer_RSR_CCOMPARE1
  49. #define XT_WSR_CCOMPARE1 _TIE_xt_timer_WSR_CCOMPARE1
  50. #define XT_XSR_CCOMPARE1 _TIE_xt_timer_XSR_CCOMPARE1
  51. #define XT_RSR_CCOMPARE2 _TIE_xt_timer_RSR_CCOMPARE2
  52. #define XT_WSR_CCOMPARE2 _TIE_xt_timer_WSR_CCOMPARE2
  53. #define XT_XSR_CCOMPARE2 _TIE_xt_timer_XSR_CCOMPARE2
  54. #endif /* __XCC__ */
  55. #endif /* __XTENSA__ */
  56. #endif /* !_XTENSA_xt_timer_HEADER */