[ECOS] how to read statistical counters of 82559 !!! - success

mohanlal jangir mohanlaljangir@hotmail.com
Wed Sep 10 06:25:00 GMT 2003


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



More information about the Ecos-discuss mailing list