mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 13:11:11 +03:00
[timer] Formalise the timer API
We now have two implementations for the timer API: one using the time-of-day counter at 40:70 and one using RDTSC. Both make use of timer2_udelay().
This commit is contained in:
@@ -112,7 +112,7 @@ static const char *w89c840_version = "driver Version 0.94 - December 12, 2003";
|
||||
|
||||
/* Operational parameters that usually are not changed. */
|
||||
/* Time in jiffies before concluding the transmitter is hung. */
|
||||
#define TX_TIMEOUT (10*USECS_IN_MSEC)
|
||||
#define TX_TIMEOUT (10*1000)
|
||||
|
||||
#define PKT_BUF_SZ 1536 /* Size of each temporary Rx buffer.*/
|
||||
|
||||
@@ -486,7 +486,7 @@ static void w89c840_transmit(
|
||||
/* send the packet to destination */
|
||||
unsigned entry;
|
||||
int transmit_status;
|
||||
tick_t ct;
|
||||
unsigned long ct;
|
||||
|
||||
/* Caution: the write order is important here, set the field
|
||||
with the "ownership" bits last. */
|
||||
|
||||
Reference in New Issue
Block a user