This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
timer function in ethernet driver
- From: Motoya Kurotsu <kurotsu at allied-telesis dot co dot jp>
- To: ecos-discuss at sources dot redhat dot com
- Date: Thu, 27 Dec 2001 12:34:39 +0900
- Subject: [ECOS] timer function in ethernet driver
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.