spu_intrinsics.h 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. /* Definitions of Synergistic Processing Unit (SPU). */
  2. /* Copyright (C) 2006-2015 Free Software Foundation, Inc.
  3. This file is free software; you can redistribute it and/or modify it under
  4. the terms of the GNU General Public License as published by the Free
  5. Software Foundation; either version 3 of the License, or (at your option)
  6. any later version.
  7. This file is distributed in the hope that it will be useful, but WITHOUT
  8. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  10. for more details.
  11. Under Section 7 of GPL version 3, you are granted additional
  12. permissions described in the GCC Runtime Library Exception, version
  13. 3.1, as published by the Free Software Foundation.
  14. You should have received a copy of the GNU General Public License and
  15. a copy of the GCC Runtime Library Exception along with this program;
  16. see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
  17. <http://www.gnu.org/licenses/>. */
  18. #ifndef _SPU_INTRINSICS_H
  19. #define _SPU_INTRINSICS_H
  20. #define vec_uchar16 __vector unsigned char
  21. #define vec_char16 __vector signed char
  22. #define vec_ushort8 __vector unsigned short
  23. #define vec_short8 __vector signed short
  24. #define vec_uint4 __vector unsigned int
  25. #define vec_int4 __vector signed int
  26. #define vec_ullong2 __vector unsigned long long
  27. #define vec_llong2 __vector signed long long
  28. #define vec_float4 __vector float
  29. #define vec_double2 __vector double
  30. /* SPU Channel Defines
  31. */
  32. #define SPU_RdEventStat 0
  33. #define SPU_WrEventMask 1
  34. #define SPU_WrEventAck 2
  35. #define SPU_RdSigNotify1 3
  36. #define SPU_RdSigNotify2 4
  37. #define SPU_WrDec 7
  38. #define SPU_RdDec 8
  39. #define SPU_RdEventMask 11
  40. #define SPU_RdMachStat 13
  41. #define SPU_WrSRR0 14
  42. #define SPU_RdSRR0 15
  43. #define SPU_WrOutMbox 28
  44. #define SPU_RdInMbox 29
  45. #define SPU_WrOutIntrMbox 30
  46. /* MFC Channel Defines.
  47. */
  48. #define MFC_WrMSSyncReq 9
  49. #define MFC_RdTagMask 12
  50. #define MFC_LSA 16
  51. #define MFC_EAH 17
  52. #define MFC_EAL 18
  53. #define MFC_Size 19
  54. #define MFC_TagID 20
  55. #define MFC_Cmd 21
  56. #define MFC_WrTagMask 22
  57. #define MFC_WrTagUpdate 23
  58. #define MFC_RdTagStat 24
  59. #define MFC_RdListStallStat 25
  60. #define MFC_WrListStallAck 26
  61. #define MFC_RdAtomicStat 27
  62. /* Bit flag mnemonics for test special value.
  63. */
  64. #define SPU_SV_NEG_DENORM 0x01 /* negative denormalized number */
  65. #define SPU_SV_POS_DENORM 0x02 /* positive denormalized number */
  66. #define SPU_SV_NEG_ZERO 0x04 /* negative zero */
  67. #define SPU_SV_POS_ZERO 0x08 /* positive zero */
  68. #define SPU_SV_NEG_INFINITY 0x10 /* negative infinity */
  69. #define SPU_SV_POS_INFINITY 0x20 /* positive infinity */
  70. #define SPU_SV_NAN 0x40 /* not a number */
  71. #include <spu_internals.h>
  72. #endif /* _SPU_INTRINSICS_H */