This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to read statistical counters of 82559 !!! - success
On Wed, Sep 10, 2003 at 03:13:33PM -0700, mohanlal jangir wrote:
> Well, I succedded finally. It was a matter of issuing wrong command.
>
> wait_for_cmd_done(my_ioaddr, WAIT_CU);
> OUTL(VIRT_TO_BUS(status_register), my_ioaddr + SCBPointer);
> OUTW(SCB_M | CU_STATSADDR, my_ioaddr + SCBCmd);
> wait_for_cmd_done(my_ioaddr, WAIT_CU);
> OUTW(SCB_M | CU_DUMPSTATS, my_ioaddr + SCBCmd);
>
> This filled address status_register with statistical counters. Thanks a lot
> to Andrew Lunn for his patience replies.
> Can someone explain, why SCB_M is necessary?
Not from the top of my head.
The best source of information about things like this is the data
sheet for the chip. I will be explained in there, you just need to
find it.
Andrew
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss