This source file includes following definitions.
- __dcc_getstatus
- __dcc_getchar
- __dcc_putchar
1
2
3
4
5
6
7
8
9
10
11
12 #ifndef __ASM_DCC_H
13 #define __ASM_DCC_H
14
15 #include <asm/barrier.h>
16 #include <asm/sysreg.h>
17
18 static inline u32 __dcc_getstatus(void)
19 {
20 return read_sysreg(mdccsr_el0);
21 }
22
23 static inline char __dcc_getchar(void)
24 {
25 char c = read_sysreg(dbgdtrrx_el0);
26 isb();
27
28 return c;
29 }
30
31 static inline void __dcc_putchar(char c)
32 {
33
34
35
36
37 write_sysreg((unsigned char)c, dbgdtrtx_el0);
38 isb();
39 }
40
41 #endif