arm_cp_registers.h 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. /*
  2. * Copyright (c) 2012, Freescale Semiconductor, Inc.
  3. * All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without modification,
  6. * are permitted provided that the following conditions are met:
  7. *
  8. * o Redistributions of source code must retain the above copyright notice, this list
  9. * of conditions and the following disclaimer.
  10. *
  11. * o Redistributions in binary form must reproduce the above copyright notice, this
  12. * list of conditions and the following disclaimer in the documentation and/or
  13. * other materials provided with the distribution.
  14. *
  15. * o Neither the name of Freescale Semiconductor, Inc. nor the names of its
  16. * contributors may be used to endorse or promote products derived from this
  17. * software without specific prior written permission.
  18. *
  19. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
  20. * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  21. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  22. * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
  23. * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  24. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  25. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
  26. * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  27. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  28. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  29. */
  30. //! @addtogroup cortexa9
  31. //! @{
  32. /*!
  33. * @file arm_cp_registers.h
  34. * @brief Definitions for ARM coprocessor registers.
  35. */
  36. #ifndef __ARM_CP_REGISTERS_H__
  37. #define __ARM_CP_REGISTERS_H__
  38. ////////////////////////////////////////////////////////////////////////////////
  39. // Definitions
  40. ////////////////////////////////////////////////////////////////////////////////
  41. //! @name ACTLR
  42. //@{
  43. #define BM_ACTLR_SMP (1 << 6)
  44. //@}
  45. //! @name DFSR
  46. //@{
  47. #define BM_DFSR_WNR (1 << 11) //!< Write not Read bit. 0=read, 1=write.
  48. #define BM_DFSR_FS4 (0x400) //!< Fault status bit 4..
  49. #define BP_DFSR_FS4 (10) //!< Bit position for FS[4].
  50. #define BM_DFSR_FS (0xf) //!< Fault status bits [3:0].
  51. //@}
  52. //! @name SCTLR
  53. //@{
  54. #define BM_SCTLR_TE (1 << 30) //!< Thumb exception enable.
  55. #define BM_SCTLR_AFE (1 << 29) //!< Access flag enable.
  56. #define BM_SCTLR_TRE (1 << 28) //!< TEX remap enable.
  57. #define BM_SCTLR_NMFI (1 << 27) //!< Non-maskable FIQ support.
  58. #define BM_SCTLR_EE (1 << 25) //!< Exception endianess.
  59. #define BM_SCTLR_VE (1 << 24) //!< Interrupt vectors enable.
  60. #define BM_SCTLR_FI (1 << 21) //!< Fast interrupt configurable enable.
  61. #define BM_SCTLR_RR (1 << 14) //!< Round Robin
  62. #define BM_SCTLR_V (1 << 13) //!< Vectors
  63. #define BM_SCTLR_I (1 << 12) //!< Instruction cache enable
  64. #define BM_SCTLR_Z (1 << 11) //!< Branch prediction enable
  65. #define BM_SCTLR_SW (1 << 10) //!< SWP and SWPB enable
  66. #define BM_SCTLR_CP15BEN (1 << 5) //!< CP15 barrier enable
  67. #define BM_SCTLR_C (1 << 2) //!< Data cache enable
  68. #define BM_SCTLR_A (1 << 1) //!< Alignment check enable
  69. #define BM_SCTLR_M (1 << 0) //!< MMU enable
  70. //@}
  71. //! @}
  72. #endif // __ARM_CP_REGISTERS_H__
  73. ////////////////////////////////////////////////////////////////////////////////
  74. // EOF
  75. ////////////////////////////////////////////////////////////////////////////////