1 set AIC_SMR [expr $AT91C_BASE_AIC + 0x00000000 ]
3 set AIC_SVR [expr $AT91C_BASE_AIC + 0x00000080 ]
5 set AIC_IVR [expr $AT91C_BASE_AIC + 0x00000100 ]
7 set AIC_FVR [expr $AT91C_BASE_AIC + 0x00000104 ]
9 set AIC_ISR [expr $AT91C_BASE_AIC + 0x00000108 ]
11 set AIC_IPR [expr $AT91C_BASE_AIC + 0x0000010C ]
13 set AIC_IMR [expr $AT91C_BASE_AIC + 0x00000110 ]
15 set AIC_CISR [expr $AT91C_BASE_AIC + 0x00000114 ]
17 set AIC_IECR [expr $AT91C_BASE_AIC + 0x00000120 ]
19 set AIC_IDCR [expr $AT91C_BASE_AIC + 0x00000124 ]
21 set AIC_ICCR [expr $AT91C_BASE_AIC + 0x00000128 ]
23 set AIC_ISCR [expr $AT91C_BASE_AIC + 0x0000012C ]
25 set AIC_EOICR [expr $AT91C_BASE_AIC + 0x00000130 ]
27 set AIC_SPU [expr $AT91C_BASE_AIC + 0x00000134 ]
29 set AIC_DCR [expr $AT91C_BASE_AIC + 0x00000138 ]
31 set AIC_FFER [expr $AT91C_BASE_AIC + 0x00000140 ]
33 set AIC_FFDR [expr $AT91C_BASE_AIC + 0x00000144 ]
35 set AIC_FFSR [expr $AT91C_BASE_AIC + 0x00000148 ]
39 proc aic_enable_disable_list { VAL ENAME DNAME } {
42 show_mmr32_bits AT91C_ID $VAL
46 proc show_AIC_IPR_helper { NAME ADDR VAL } {
47 aic_enable_disable_list $VAL "IRQ PENDING" "irq not-pending"
50 proc show_AIC_IMR_helper { NAME ADDR VAL } {
51 aic_enable_disable_list $VAL "IRQ ENABLED" "irq disabled"
57 if [catch { ocd_mem2array aaa 32 $AIC_SMR [expr 32 * 4] } msg ] {
58 error [format "%s (%s)" $msg AIC_SMR]
60 puts "AIC_SMR: Mode & Type"
62 for { set x 0 } { $x < 32 } { } {
64 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
66 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
68 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
70 puts [format "%2d: %5s 0x%08x" $x $AT91C_ID($x) $aaa($x)]
74 if [catch { ocd_mem2array aaa 32 $AIC_SVR [expr 32 * 4] } msg ] {
75 error [format "%s (%s)" $msg AIC_SVR]
77 puts "AIC_SVR: Vectors"
78 for { set x 0 } { $x < 32 } { } {
80 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
82 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
84 puts -nonewline [format "%2d: %5s 0x%08x | " $x $AT91C_ID($x) $aaa($x)]
86 puts [format "%2d: %5s 0x%08x" $x $AT91C_ID($x) $aaa($x)]
91 AIC_IVR AIC_FVR AIC_ISR
92 AIC_IPR AIC_IMR AIC_CISR AIC_IECR AIC_IDCR
93 AIC_ICCR AIC_ISCR AIC_EOICR AIC_SPU AIC_DCR
94 AIC_FFER AIC_FFDR AIC_FFSR } {
95 if [catch { show_mmr32_reg $REG } msg ] {