680x0 MMU question
Mario Klebsch DG1AM (mkl@rob.cs.tu-bs.de)
Thu, 9 Oct 1997 08:53:34 +0200
Hi!
>I'm using RTEMS on the Motorola MVME16x (68040) boards, and I'm
>writing an IndustryPack driver. I need to access the IP's onboard
>memory space, but first I have to set up the MMU to decode those
>addresses in the CPU's memory map. Does anybody out there have
>any examples or hints about that?
It is not the MMU, you need to setup, but the IPIC. You can find the
details in the MVME162 Embedded Controller Programmer's Reference
Guide.
As you probably do not have this guide (you would not have asked
then), here is my configuration:
move.b #0xff,0xfffbc01f Activate IP reset
move.l #0xbfff8000,0xfff40018 disable VME-bus from c0000000
move.l #0xc000c080,0xfffbc004 Slot A&B address
move.l #0xc100c180,0xfffbc008 Slot C&D address
move.l #0x7f7f7f7f,0xfffbc00c 8 MByte module size
move.l #0x15151414,0xfffbc010 Slot A&B IRQ ena & level
move.l #0x13131212,0xfffbc014 Slot C&D IRQ ena & level
move.l #0x09090909,0xfffbc018 8 bit memory end memory enable
move.b #0x0,0xfffbc01f Deactivate IP reset
The module memories are now located at
Mem-Addr IO-Addr ID-Addr Irq Level
A: c0000000 fff58000 fff58080 5
B: c0800000 fff58100 fff58180 4
C: c1000000 fff58200 fff58280 3
D: c1800000 fff58300 fff58380 2
I hope, this helpts at least a little bit. But from my own experience,
I can tell you, that the Programmers Reference, although it does only
describe the various chips on the MVME162 and their registers, is woth
its money.
73, Mario
--
Mario Klebsch, DG1AM, M.Klebsch@tu-bs.de +49 531 / 391 - 7457
Institut fuer Robotik und Prozessinformatik der TU Braunschweig
Hamburger Strasse 267, 38114 Braunschweig, Germany