1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /* Copyright (c) 2010, 2014 The Linux Foundation. All rights reserved.
5 #include <asm/barrier.h>
7 static inline u32
__dcc_getstatus(void)
10 asm volatile("mrc p14, 0, %0, c0, c1, 0 @ read comms ctrl reg"
11 : "=r" (__ret
) : : "cc");
16 static inline char __dcc_getchar(void)
20 asm volatile("mrc p14, 0, %0, c0, c5, 0 @ read comms data reg"
27 static inline void __dcc_putchar(char c
)
29 asm volatile("mcr p14, 0, %0, c0, c5, 0 @ write a char"
30 : /* no output register */