PageRenderTime 41ms CodeModel.GetById 30ms RepoModel.GetById 1ms app.codeStats 1ms

/arch/xtensa/variants/fsf/include/variant/tie.h

https://bitbucket.org/cresqo/cm7-p500-kernel
C Header | 77 lines | 51 code | 10 blank | 16 comment | 0 complexity | 2a3f644362474b66b7c37540a70ad640 MD5 | raw file
Possible License(s): LGPL-2.0, AGPL-1.0, GPL-2.0
  1. /*
  2. * This header file describes this specific Xtensa processor's TIE extensions
  3. * that extend basic Xtensa core functionality. It is customized to this
  4. * Xtensa processor configuration.
  5. *
  6. * This file is subject to the terms and conditions of the GNU General Public
  7. * License. See the file "COPYING" in the main directory of this archive
  8. * for more details.
  9. *
  10. * Copyright (C) 1999-2007 Tensilica Inc.
  11. */
  12. #ifndef _XTENSA_CORE_TIE_H
  13. #define _XTENSA_CORE_TIE_H
  14. #define XCHAL_CP_NUM 0 /* number of coprocessors */
  15. #define XCHAL_CP_MAX 0 /* max CP ID + 1 (0 if none) */
  16. #define XCHAL_CP_MASK 0x00 /* bitmask of all CPs by ID */
  17. #define XCHAL_CP_PORT_MASK 0x00 /* bitmask of only port CPs */
  18. /* Basic parameters of each coprocessor: */
  19. #define XCHAL_CP7_NAME "XTIOP"
  20. #define XCHAL_CP7_IDENT XTIOP
  21. #define XCHAL_CP7_SA_SIZE 0 /* size of state save area */
  22. #define XCHAL_CP7_SA_ALIGN 1 /* min alignment of save area */
  23. #define XCHAL_CP_ID_XTIOP 7 /* coprocessor ID (0..7) */
  24. /* Filler info for unassigned coprocessors, to simplify arrays etc: */
  25. #define XCHAL_NCP_SA_SIZE 0
  26. #define XCHAL_NCP_SA_ALIGN 1
  27. #define XCHAL_CP0_SA_SIZE 0
  28. #define XCHAL_CP0_SA_ALIGN 1
  29. #define XCHAL_CP1_SA_SIZE 0
  30. #define XCHAL_CP1_SA_ALIGN 1
  31. #define XCHAL_CP2_SA_SIZE 0
  32. #define XCHAL_CP2_SA_ALIGN 1
  33. #define XCHAL_CP3_SA_SIZE 0
  34. #define XCHAL_CP3_SA_ALIGN 1
  35. #define XCHAL_CP4_SA_SIZE 0
  36. #define XCHAL_CP4_SA_ALIGN 1
  37. #define XCHAL_CP5_SA_SIZE 0
  38. #define XCHAL_CP5_SA_ALIGN 1
  39. #define XCHAL_CP6_SA_SIZE 0
  40. #define XCHAL_CP6_SA_ALIGN 1
  41. /* Save area for non-coprocessor optional and custom (TIE) state: */
  42. #define XCHAL_NCP_SA_SIZE 0
  43. #define XCHAL_NCP_SA_ALIGN 1
  44. /* Total save area for optional and custom state (NCP + CPn): */
  45. #define XCHAL_TOTAL_SA_SIZE 0 /* with 16-byte align padding */
  46. #define XCHAL_TOTAL_SA_ALIGN 1 /* actual minimum alignment */
  47. #define XCHAL_NCP_SA_NUM 0
  48. #define XCHAL_NCP_SA_LIST(s)
  49. #define XCHAL_CP0_SA_NUM 0
  50. #define XCHAL_CP0_SA_LIST(s)
  51. #define XCHAL_CP1_SA_NUM 0
  52. #define XCHAL_CP1_SA_LIST(s)
  53. #define XCHAL_CP2_SA_NUM 0
  54. #define XCHAL_CP2_SA_LIST(s)
  55. #define XCHAL_CP3_SA_NUM 0
  56. #define XCHAL_CP3_SA_LIST(s)
  57. #define XCHAL_CP4_SA_NUM 0
  58. #define XCHAL_CP4_SA_LIST(s)
  59. #define XCHAL_CP5_SA_NUM 0
  60. #define XCHAL_CP5_SA_LIST(s)
  61. #define XCHAL_CP6_SA_NUM 0
  62. #define XCHAL_CP6_SA_LIST(s)
  63. #define XCHAL_CP7_SA_NUM 0
  64. #define XCHAL_CP7_SA_LIST(s)
  65. /* Byte length of instruction from its first nibble (op0 field), per FLIX. */
  66. #define XCHAL_OP0_FORMAT_LENGTHS 3,3,3,3,3,3,3,3,2,2,2,2,2,2,3,3
  67. #endif /*_XTENSA_CORE_TIE_H*/