mirror of
https://github.com/ipxe/ipxe
synced 2025-12-27 18:12:36 +03:00
Modify gPXE core and drivers to work with the new timer subsystem
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
This commit is contained in:
@@ -43,7 +43,6 @@
|
||||
#include "nic.h"
|
||||
#include <gpxe/pci.h>
|
||||
#include <gpxe/ethernet.h>
|
||||
#include "timer.h"
|
||||
|
||||
static struct nic_operations a3c90x_operations;
|
||||
|
||||
@@ -498,6 +497,7 @@ a3c90x_transmit(struct nic *nic __unused, const char *d, unsigned int t,
|
||||
|
||||
unsigned char status;
|
||||
unsigned i, retries;
|
||||
tick_t ct;
|
||||
|
||||
for (retries=0; retries < XMIT_RETRIES ; retries++)
|
||||
{
|
||||
@@ -540,9 +540,10 @@ a3c90x_transmit(struct nic *nic __unused, const char *d, unsigned int t,
|
||||
;
|
||||
|
||||
/** Wait for NIC Transmit to Complete **/
|
||||
load_timer2(10*TICKS_PER_MS); /* Give it 10 ms */
|
||||
ct = currticks();
|
||||
|
||||
while (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004) &&
|
||||
timer2_running())
|
||||
ct + 10*USECS_IN_MSEC < currticks());
|
||||
;
|
||||
|
||||
if (!(inw(INF_3C90X.IOAddr + regCommandIntStatus_w)&0x0004))
|
||||
|
||||
Reference in New Issue
Block a user