EPICS Home

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  2020  2021  2022  2023  2024  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  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: sysBusToLocalAdrs question
From: "Bai Jiaoni" <[email protected]>
To: [email protected]
Date: Wed, 14 Mar 2012 00:16:44 +0800 (CST)
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




Replies:
RE: sysBusToLocalAdrs question Mark Rivers

Navigate by Date:
Prev: CSS Training Questionnaire for Spring 2012 EPICS Meeting Kasemir, Kay
Next: EPICS Wiki upgraded and moved Andrew Johnson
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  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: CSS Training Questionnaire for Spring 2012 EPICS Meeting Kasemir, Kay
Next: RE: sysBusToLocalAdrs question 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  2020  2021  2022  2023  2024