This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]