From: Till Straumann [strauman@slac.stanford.edu] Sent: Tuesday, August 22, 2006 11:41 PM To: Luchini, Kristi Cc: Kotturi, Karen `Dayle`; Dusatko, John E. Subject: Re: FW: EVG/R IOCs Luchini, Kristi wrote: >Hi, > >Can you please reminder me of the RTEMS function name that prints out the memory map for A16,A24,A32? > BSP_VMEOutboundPortsShow(FILE *f) (if f==0 the routine prints to stdout) > Does this function list the bus address and the local address? > > It lists the VME and PCI addresses [the VME bridge driver that implements this function doesn't know about PCI to CPU address mapping]. If you need the CPU address then you can use the int BSP_vme2local_adrs( unsigned long am, unsigned long vmeaddr, unsigned long *plocaladdr); routine. Supply the address modifier and VME address you want and you get the CPU address in *plocaladdr. The routine returns non-zero if no mapping exists. Under EPICS you probably want to use devLib calls that take care of this. HTH -- Till >Dayle, in your recent RTEMS workshop at APS, did you have any handouts or a presentation that would be useful to a novice RTEMS users? > >Thanks, >- Kristi > >-----Original Message----- >From: Allison, Stephanie >Sent: Tuesday, August 22, 2006 7:02 PM >To: Dusatko, John E. >Cc: Luchini, Kristi >Subject: RE: EVG/R IOCs > >Hi, > > > >>[lcls-dev] ~ > iocConsole.pl XL16 >> >> > >I added you to the laci account. >Also, try it without the ".pl": iocConsole XL16 > > > >>Also, how are the base addresses for VME memory space defined >>on the Rtems IOC? Is there some set base location for VME >>A16, 24, 32 similar to that in VxWorks (e.g. MVME2400 >>w/VxWorks: A24 = 0xFAC00000)? >> >> > >Kristi says no but she knows of a command that maps the address. Ask her... > >BTW: >Till told me about the "mm" and "md" commands that can be used similarly to m and d in vxWorks. I added a description of them here: >http://www.slac.stanford.edu/comp/unix/package/rtems/README_CEXP > >Steph > >