Experimental Physics and Industrial Control System
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: [email protected] [mailto:[email protected]] On Behalf Of Bai Jiaoni
Sent: Tuesday, March 13, 2012 11:17 AM
To: [email protected]
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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- 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
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024