----- Original Message -----From: Arthur BerkovitchSent: Monday, September 02, 2002 3:57 PMSubject: RE: [ixp1200] reading statistics registers from the ixf440 ( ixp12eb)reading a scratch address from core can be done by:
#define FBI_SCRATCH_PAD_BASE 0xB0044000
#define READ_LWORD(addr, val) *((volatile unsigned int *)(val)) = *((unsigned int *)(addr))
#define SCRATCH_READ(addr, val) READ_LWORD(((addr)<<2)+FBI_SCRATCH_PAD_BASE, (val))look at hal_fbi.h and core_io.h under $(IXP_ROOT)/include
-----Original Message-----
From: tomer [mailto:bahart@bgumail.bgu.ac.il]
Sent: Monday, September 02, 2002 10:51 AM
To: ixp1200@CS.Princeton.EDU
Subject: [ixp1200] reading statistics registers from the ixf440 ( ixp12eb)
Hi
I am working on the ixp12eb supported by the vxworks os.
I am trying to read the statistic registers from the ixf440, so far no
success.
I went through your example codes.
In the control.c file ( libixprouter.tar ) i saw that you use the
scratchRead32( ) function to do the job.
I could not find this function.
Can you advise me on this matter?
You my find this Q too obvious, but i am a beginner on the system, anything
is helpful to me.
thanks
Tomer.