mirror of
https://github.com/ipxe/ipxe
synced 2026-04-04 03:00:20 +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:
@@ -12,8 +12,8 @@
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <strings.h>
|
||||
#include <latch.h>
|
||||
#include <console.h>
|
||||
#include <gpxe/timer.h>
|
||||
#include <gpxe/if_arp.h>
|
||||
#include <gpxe/if_ether.h>
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@
|
||||
#include <gpxe/in.h>
|
||||
#include <gpxe/refcnt.h>
|
||||
#include <gpxe/tables.h>
|
||||
#include <latch.h>
|
||||
|
||||
struct net_device;
|
||||
struct job_interface;
|
||||
|
||||
@@ -9,7 +9,6 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#include "latch.h"
|
||||
#include <gpxe/tcpip.h>
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,27 +0,0 @@
|
||||
#ifndef TIMER_H
|
||||
#define TIMER_H
|
||||
|
||||
/*
|
||||
* This file should be removed as soon as there are no
|
||||
* currticks() abusers.
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
/*
|
||||
#warning Please fix me. I'm abusing the deprecated include/timer.h
|
||||
*/
|
||||
#include <unistd.h>
|
||||
|
||||
/* Duplicates include/gpxe/timer.h */
|
||||
typedef uint32_t tick_t;
|
||||
|
||||
#define MSECS_IN_SEC (1000)
|
||||
#define USECS_IN_SEC (1000*1000)
|
||||
#define USECS_IN_MSEC (1000)
|
||||
|
||||
#define TICKS_PER_SEC USECS_IN_SEC
|
||||
|
||||
tick_t currticks(void);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user