Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: RE: sysBusToLocalAdrs question
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'Bai Jiaoni'" <baijn@ihep.ac.cn>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Tue, 13 Mar 2012 16:47:53 +0000
That is probably because your BSP is not providing access to the A32 address 0x600000.  What addresses in A32 address space does your BSP support?

Mark


-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of Bai Jiaoni
Sent: Tuesday, March 13, 2012 11:17 AM
To: tech-talk@aps.anl.gov
Subject: sysBusToLocalAdrs question


Hello,I defind a structure as following.
typedef struct CARDINFO^M
{^M
    USHORT    cardnum;^M
    int       cardtype;                 /* to store card model */^M
    struct CARDINFO *next;^M
    int   magicHeader;^M
    volatile unsigned long      BaseAddr; /*DPB VME address*/^M
    volatile unsigned long      baseaddr; /*the address of DPB on cpu^M
     Board*/^M
    int                         ConfStatus;^M
    IOSCANPVT ioscanpvt;^M
    USHORT    vecnum;^M
    unsigned  intLevel;^M
    volatile unsigned long      FIFO_baseaddr;/*DPB FIFO VME address*/^M
    volatile unsigned long      fifoBuffer_;/*the address of DPB FIFO on cpu address*/^M
    unsigned int*  dmaRdstat;           /* dma read status */^M
^M
}CARDINFO;^M

But when I use sysBusToLocalAdrs(A32) as following ,it return status != OK. I do not know why. When I use A24, there exists no error. Why
if ((status = sysBusToLocalAdrs(VME_AM_EXT_SUP_DATA, 0x600000, (char**)&newcard->baseaddr))!=OK)
--
Jiaoni Bai 
Institute of High Energy Physics, CAS
NO.13 of Yuquan Road Haidian, Beijing China





References:
sysBusToLocalAdrs question Bai Jiaoni

Navigate by Date:
Prev: EPICS Wiki upgraded and moved Andrew Johnson
Next: RE: [Operating System platforms] which one do you use? Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: sysBusToLocalAdrs question Bai Jiaoni
Next: sysBusToLocalAdrs question Bai Jiaoni
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·