#include <asm/mipsregs.h>
 
+#ifndef __ASSEMBLY__
+
 extern void _save_msa(struct task_struct *);
 extern void _restore_msa(struct task_struct *);
 
 
 #endif /* !TOOLCHAIN_SUPPORTS_MSA */
 
-#define MSA_IR         0
-#define MSA_CSR                1
-#define MSA_ACCESS     2
-#define MSA_SAVE       3
-#define MSA_MODIFY     4
-#define MSA_REQUEST    5
-#define MSA_MAP                6
-#define MSA_UNMAP      7
-
 __BUILD_MSA_CTL_REG(ir, 0)
 __BUILD_MSA_CTL_REG(csr, 1)
 __BUILD_MSA_CTL_REG(access, 2)
 __BUILD_MSA_CTL_REG(map, 6)
 __BUILD_MSA_CTL_REG(unmap, 7)
 
+#endif /* !__ASSEMBLY__ */
+
+#define MSA_IR         0
+#define MSA_CSR                1
+#define MSA_ACCESS     2
+#define MSA_SAVE       3
+#define MSA_MODIFY     4
+#define MSA_REQUEST    5
+#define MSA_MAP                6
+#define MSA_UNMAP      7
+
 /* MSA Implementation Register (MSAIR) */
 #define MSA_IR_REVB            0
 #define MSA_IR_REVF            (_ULCAST_(0xff) << MSA_IR_REVB)