mvme2600/4 motorola_bsp: Anyway doing work on this bsp?

Till Straumann strauman at slac.stanford.edu
Mon Sep 26 17:19:33 UTC 2005


rtwas wrote:

> Hello,
>
>
> Ok, now I'm off trying to access the vme bus.
>
> Do you have any example code demonstrating slave access using this bsp?

Some time ago, I contributed VME support for these BSPs. If your're recent
enough, you should be ready to go. You can tell because the BSP should
print the VME configuration at startup. The messages look like this
(actual addresses may vary on your BSP):


Universe II PCI-VME bridge detected at 0x82000000, IRQ 76
Universe Master Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0x20000000 0x0F000000 0x90000000 A32, Dat, Sup
1:    0x00000000 0x00FF0000 0x9F000000 A24, Dat, Sup
2:    0x00000000 0x00010000 0x9FFF0000 A16, Dat, Sup
Universe Slave Ports:
Port  VME-Addr   Size       PCI-Adrs   Mode:
0:    0x90000000 0x0FF00000 0x00000000 A32, Pgm, Dat, Sup, Usr


You should use the API in bsp/VME.h and not use the vmeUniverse
driver directly, i.e., use e.g.,

BSP_vme2local_adrs(unsigned address_modifier, unsigned long vmeaddr, 
unsigned long *plocaladdr)

to translate a known VME address into a CPU address etc.

BSP_installVME_isr(unsigned vector, BSP_VME_ISR_t handler, void *user_arg)


HTH

-- Till

>
>
> Robert W.





More information about the users mailing list