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
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?
Regards
Mohanlal
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss