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:
Alexey Zaytsev
2008-03-02 03:41:10 +03:00
parent 4006d229e5
commit a1572e0ab0
58 changed files with 62 additions and 121 deletions

View File

@@ -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>

View File

@@ -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;

View File

@@ -9,7 +9,6 @@
*
*/
#include "latch.h"
#include <gpxe/tcpip.h>
/**

View File

@@ -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