Skip to content

Commit

Permalink
[ioapi] Remove old io.h file and switch all users over to <gpxe/io.h>
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brown committed Oct 12, 2008
1 parent 8956a36 commit ee2df1d
Show file tree
Hide file tree
Showing 22 changed files with 26 additions and 291 deletions.
2 changes: 1 addition & 1 deletion src/arch/i386/core/i386_timer.c
Expand Up @@ -14,7 +14,7 @@
#include <stddef.h>
#include <bits/timer2.h>
#include <gpxe/timer.h>
#include <io.h>
#include <gpxe/io.h>

/* Timers tick over at this rate */
#define TIMER2_TICK_RATE 1193180U
Expand Down
2 changes: 1 addition & 1 deletion src/arch/i386/core/relocate.c
@@ -1,4 +1,4 @@
#include <io.h>
#include <gpxe/io.h>
#include <registers.h>
#include <gpxe/memmap.h>

Expand Down
2 changes: 1 addition & 1 deletion src/arch/i386/core/video_subr.c
Expand Up @@ -7,7 +7,7 @@

#include "stddef.h"
#include "string.h"
#include "io.h"
#include <gpxe/io.h>
#include "console.h"
#include <gpxe/init.h>
#include "vga.h"
Expand Down
2 changes: 1 addition & 1 deletion src/arch/i386/drivers/timer_rdtsc.c
Expand Up @@ -5,7 +5,7 @@
#include <stdio.h>
#include <bits/cpu.h>
#include <bits/timer2.h>
#include <io.h>
#include <gpxe/io.h>


#define rdtsc(low,high) \
Expand Down
12 changes: 6 additions & 6 deletions src/arch/i386/firmware/pcbios/gateA20.c
Expand Up @@ -48,9 +48,9 @@ static void empty_8042 ( void ) {
time = currticks() + TICKS_PER_SEC; /* max wait of 1 second */
while ( ( inb ( K_CMD ) & ( K_IBUF_FUL | K_OBUF_FUL ) ) &&
currticks() < time ) {
SLOW_DOWN_IO;
( void ) inb ( K_RDWR );
SLOW_DOWN_IO;
iodelay();
( void ) inb_p ( K_RDWR );
iodelay();
}
}

Expand All @@ -77,7 +77,7 @@ static int gateA20_is_set ( int retries ) {
/* Avoid false negatives */
test_pattern++;

SLOW_DOWN_IO;
iodelay();

/* Always retry at least once, to avoid false negatives */
} while ( retries-- >= 0 );
Expand Down Expand Up @@ -145,9 +145,9 @@ void gateA20_set ( void ) {
scp_a = inb ( SCP_A );
scp_a &= ~0x01; /* Avoid triggering a reset */
scp_a |= 0x02; /* Enable A20 */
SLOW_DOWN_IO;
iodelay();
outb ( scp_a, SCP_A );
SLOW_DOWN_IO;
iodelay();
if ( gateA20_is_set ( A20_SCPA_RETRIES ) ) {
DBG ( "Enabled gate A20 using "
"Fast Gate A20\n" );
Expand Down
265 changes: 0 additions & 265 deletions src/arch/i386/include/io.h

This file was deleted.

2 changes: 1 addition & 1 deletion src/arch/i386/include/pcidirect.h
Expand Up @@ -2,7 +2,7 @@
#define _PCIDIRECT_H

#include <stdint.h>
#include <io.h>
#include <gpxe/io.h>

/** @file
*
Expand Down
2 changes: 1 addition & 1 deletion src/arch/i386/include/realmode.h
Expand Up @@ -5,7 +5,7 @@

#include "stdint.h"
#include "registers.h"
#include "io.h"
#include <gpxe/io.h>

/*
* Data structures and type definitions
Expand Down
2 changes: 1 addition & 1 deletion src/core/debug.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdint.h>
#include <stdarg.h>
#include <io.h>
#include <gpxe/io.h>
#include <console.h>

void pause ( void ) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/malloc.c
Expand Up @@ -20,7 +20,7 @@
#include <stdint.h>
#include <string.h>
#include <strings.h>
#include <io.h>
#include <gpxe/io.h>
#include <gpxe/list.h>
#include <gpxe/init.h>
#include <gpxe/malloc.h>
Expand Down
2 changes: 1 addition & 1 deletion src/core/pc_kbd.c
Expand Up @@ -10,7 +10,7 @@
* yhlu@tyan.com
*/

#include "io.h"
#include <gpxe/io.h>
#include "console.h"

static char key_map[][128] = {
Expand Down
2 changes: 1 addition & 1 deletion src/core/serial.c
Expand Up @@ -13,7 +13,7 @@

#include "stddef.h"
#include <gpxe/init.h>
#include "io.h"
#include <gpxe/io.h>
#include <unistd.h>
#include <gpxe/serial.h>
#include "config/serial.h"
Expand Down
2 changes: 1 addition & 1 deletion src/drivers/bus/eisa.c
Expand Up @@ -3,7 +3,7 @@
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
#include <io.h>
#include <gpxe/io.h>
#include <unistd.h>
#include <gpxe/eisa.h>

Expand Down

0 comments on commit ee2df1d

Please sign in to comment.