2 #include "sh7750_regs.h"
4 #define REGNAME(r) {r, #r},
11 static regname_t regnames
[] = {
12 REGNAME(SH7750_PTEH_A7
)
13 REGNAME(SH7750_PTEL_A7
)
14 REGNAME(SH7750_PTEA_A7
)
15 REGNAME(SH7750_TTB_A7
)
16 REGNAME(SH7750_TEA_A7
)
17 REGNAME(SH7750_MMUCR_A7
)
18 REGNAME(SH7750_CCR_A7
)
19 REGNAME(SH7750_QACR0_A7
)
20 REGNAME(SH7750_QACR1_A7
)
21 REGNAME(SH7750_TRA_A7
)
22 REGNAME(SH7750_EXPEVT_A7
)
23 REGNAME(SH7750_INTEVT_A7
)
24 REGNAME(SH7750_STBCR_A7
)
25 REGNAME(SH7750_STBCR2_A7
)
26 REGNAME(SH7750_FRQCR_A7
)
27 REGNAME(SH7750_WTCNT_A7
)
28 REGNAME(SH7750_WTCSR_A7
)
29 REGNAME(SH7750_R64CNT_A7
)
30 REGNAME(SH7750_RSECCNT_A7
)
31 REGNAME(SH7750_RMINCNT_A7
)
32 REGNAME(SH7750_RHRCNT_A7
)
33 REGNAME(SH7750_RWKCNT_A7
)
34 REGNAME(SH7750_RDAYCNT_A7
)
35 REGNAME(SH7750_RMONCNT_A7
)
36 REGNAME(SH7750_RYRCNT_A7
)
37 REGNAME(SH7750_RSECAR_A7
)
38 REGNAME(SH7750_RMINAR_A7
)
39 REGNAME(SH7750_RHRAR_A7
)
40 REGNAME(SH7750_RWKAR_A7
)
41 REGNAME(SH7750_RDAYAR_A7
)
42 REGNAME(SH7750_RMONAR_A7
)
43 REGNAME(SH7750_RCR1_A7
)
44 REGNAME(SH7750_RCR2_A7
)
45 REGNAME(SH7750_TOCR_A7
)
46 REGNAME(SH7750_TSTR_A7
)
47 REGNAME(SH7750_TCOR0_A7
)
48 REGNAME(SH7750_TCOR1_A7
)
49 REGNAME(SH7750_TCOR2_A7
)
50 REGNAME(SH7750_TCNT0_A7
)
51 REGNAME(SH7750_TCNT1_A7
)
52 REGNAME(SH7750_TCNT2_A7
)
53 REGNAME(SH7750_TCR0_A7
)
54 REGNAME(SH7750_TCR1_A7
)
55 REGNAME(SH7750_TCR2_A7
)
56 REGNAME(SH7750_TCPR2_A7
)
57 REGNAME(SH7750_BCR1_A7
)
58 REGNAME(SH7750_BCR2_A7
)
59 REGNAME(SH7750_WCR1_A7
)
60 REGNAME(SH7750_WCR2_A7
)
61 REGNAME(SH7750_WCR3_A7
)
62 REGNAME(SH7750_MCR_A7
)
63 REGNAME(SH7750_PCR_A7
)
64 REGNAME(SH7750_RTCSR_A7
)
65 REGNAME(SH7750_RTCNT_A7
)
66 REGNAME(SH7750_RTCOR_A7
)
67 REGNAME(SH7750_RFCR_A7
)
68 REGNAME(SH7750_SAR0_A7
)
69 REGNAME(SH7750_SAR1_A7
)
70 REGNAME(SH7750_SAR2_A7
)
71 REGNAME(SH7750_SAR3_A7
)
72 REGNAME(SH7750_DAR0_A7
)
73 REGNAME(SH7750_DAR1_A7
)
74 REGNAME(SH7750_DAR2_A7
)
75 REGNAME(SH7750_DAR3_A7
)
76 REGNAME(SH7750_DMATCR0_A7
)
77 REGNAME(SH7750_DMATCR1_A7
)
78 REGNAME(SH7750_DMATCR2_A7
)
79 REGNAME(SH7750_DMATCR3_A7
)
80 REGNAME(SH7750_CHCR0_A7
)
81 REGNAME(SH7750_CHCR1_A7
)
82 REGNAME(SH7750_CHCR2_A7
)
83 REGNAME(SH7750_CHCR3_A7
)
84 REGNAME(SH7750_DMAOR_A7
)
85 REGNAME(SH7750_SCRDR1_A7
)
86 REGNAME(SH7750_SCRDR2_A7
)
87 REGNAME(SH7750_SCTDR1_A7
)
88 REGNAME(SH7750_SCTDR2_A7
)
89 REGNAME(SH7750_SCSMR1_A7
)
90 REGNAME(SH7750_SCSMR2_A7
)
91 REGNAME(SH7750_SCSCR1_A7
)
92 REGNAME(SH7750_SCSCR2_A7
)
93 REGNAME(SH7750_SCSSR1_A7
)
94 REGNAME(SH7750_SCSFR2_A7
)
95 REGNAME(SH7750_SCSPTR1_A7
)
96 REGNAME(SH7750_SCSPTR2_A7
)
97 REGNAME(SH7750_SCBRR1_A7
)
98 REGNAME(SH7750_SCBRR2_A7
)
99 REGNAME(SH7750_SCFCR2_A7
)
100 REGNAME(SH7750_SCFDR2_A7
)
101 REGNAME(SH7750_SCLSR2_A7
)
102 REGNAME(SH7750_SCSCMR1_A7
)
103 REGNAME(SH7750_PCTRA_A7
)
104 REGNAME(SH7750_PDTRA_A7
)
105 REGNAME(SH7750_PCTRB_A7
)
106 REGNAME(SH7750_PDTRB_A7
)
107 REGNAME(SH7750_GPIOIC_A7
)
108 REGNAME(SH7750_ICR_A7
)
109 REGNAME(SH7750_IPRA_A7
)
110 REGNAME(SH7750_IPRB_A7
)
111 REGNAME(SH7750_IPRC_A7
)
112 REGNAME(SH7750_BCR3_A7
)
113 REGNAME(SH7750_BCR4_A7
)
114 REGNAME(SH7750_PRECHARGE0_A7
)
115 REGNAME(SH7750_PRECHARGE1_A7
) {(uint32_t) - 1, 0}
118 const char *regname(uint32_t addr
)
122 for (i
= 0; regnames
[i
].regaddr
!= (uint32_t) - 1; i
++) {
123 if (regnames
[i
].regaddr
== addr
)
124 return regnames
[i
].regname
;
127 return "<unknown reg>";