bdi
Wind
for Tornado™, BDI2000 (MPC8xx/MPC5xx)
User Manual
33
© Copyright 1997-2007 by ABATRON AG Switzerland
V 1.38
Example for a register definition (MPC860):
Entry in the configuration file:
[REGS]
DMM1
0x02200000
;Internal Memory Map Base Address
FILE
E:\bdi\mpc860\reg860.def
;The register definition file
The register definition file:
;name
type
addr
size
;-------------------------------------------
;
gpr0
GPR
0
sp
GPR
1
;
pc
SPR
26
; is SRR0
xer
SPR
1
lr
SPR
8
ctr
SPR
9
sprg0
SPR
272
sprg1
SPR
273
sprg2
SPR
274
sprg3
SPR
275
;
;
; DMM1 must be set to the internal memory map base address
;
siumcr
DMM1
0x0000
32
sypcr
DMM1
0x0004
32
;
mstat
DMM1
0x0178
16
padir
DMM1
0x0950
16
papar
DMM1
0x0952
16
paodr
DMM1
0x0954
16
padat
DMM1
0x0956
16
Now the defined registers can be accessed by name via the Telnet interface:
BDI> rd siumcr
BDI>rm padir 0xFF00