[ECOS] timer function in ethernet driver
Motoya Kurotsu
kurotsu@allied-telesis.co.jp
Wed Dec 26 19:34:00 GMT 2001
Hi;
I'm looking at the codes of ethernet drivers. I have two points.
First, I wonder how the delay should be done without losing
drivers generality, including platform independency.
In platform independent drivers, such as pcnet, i82559 and dp83902a,
I see CYGACC_CALL_IF_DELAY_US is used. However, is that missing
the generality by assuming that the platform provides the virtual
vectors support? Otherwise, shouldn't we require the virtual vector
support in those drivers cdl files, strictly speaking?
Second, I wonder that cyg_drv_cond_timed_wait() may be provided if
CYGACC_CALL_IF_DELAY_US won't miss generality. I've been supposing
that this function isn't supported only because the existense of timer
can't be assumed.
Please tell me your advise.
Regards,
Motoya Kurotsu
Allied Telesis K.K.
More information about the Ecos-discuss
mailing list