mirror of https://github.com/ipxe/ipxe.git
[console] Move putchar() and getchar() declarations to stdio.h
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
d1465f7b0b
commit
a6d49c17c9
|
@ -22,7 +22,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <ipxe/io.h>
|
#include <ipxe/io.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pause until a key is pressed
|
* Pause until a key is pressed
|
||||||
|
|
|
@ -34,7 +34,6 @@ FILE_LICENCE ( GPL2_ONLY );
|
||||||
#define CODE_STATUS "alpha"
|
#define CODE_STATUS "alpha"
|
||||||
#define CODE_VERSION "0.1.3"
|
#define CODE_VERSION "0.1.3"
|
||||||
#include <pcmcia-opts.h>
|
#include <pcmcia-opts.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <ipxe/init.h>
|
#include <ipxe/init.h>
|
||||||
|
|
||||||
int sockets; /* AHTODO: Phase this out! */
|
int sockets; /* AHTODO: Phase this out! */
|
||||||
|
|
|
@ -21,7 +21,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ipxe/vsprintf.h>
|
#include <ipxe/vsprintf.h>
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
|
|
||||||
#include <ipxe/eisa.h>
|
#include <ipxe/eisa.h>
|
||||||
#include <ipxe/isa.h>
|
#include <ipxe/isa.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include "3c509.h"
|
#include "3c509.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -92,7 +92,6 @@ FILE_LICENCE ( GPL2_ONLY );
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
#include <ipxe/isa.h>
|
#include <ipxe/isa.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include "cs89x0.h"
|
#include "cs89x0.h"
|
||||||
|
|
||||||
static unsigned short eth_nic_base;
|
static unsigned short eth_nic_base;
|
||||||
|
|
|
@ -240,7 +240,6 @@ FILE_LICENCE ( GPL_ANY );
|
||||||
#include "etherboot.h"
|
#include "etherboot.h"
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
#include <ipxe/isa.h>
|
#include <ipxe/isa.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <ipxe/ethernet.h>
|
#include <ipxe/ethernet.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -10,7 +10,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <ipxe/pci.h>
|
#include <ipxe/pci.h>
|
||||||
#include <ipxe/ethernet.h>
|
#include <ipxe/ethernet.h>
|
||||||
#include "nic.h"
|
#include "nic.h"
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include "epic100.h"
|
#include "epic100.h"
|
||||||
|
|
||||||
/* Condensed operations for readability */
|
/* Condensed operations for readability */
|
||||||
|
|
|
@ -20,11 +20,11 @@ FILE_LICENCE ( GPL_ANY );
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <byteswap.h>
|
#include <byteswap.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <ipxe/io.h>
|
#include <ipxe/io.h>
|
||||||
#include <ipxe/pci.h>
|
#include <ipxe/pci.h>
|
||||||
#include <ipxe/malloc.h>
|
#include <ipxe/malloc.h>
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <curses.h>
|
#include <curses.h>
|
||||||
#include "mucurses.h"
|
#include "mucurses.h"
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <ipxe/timer.h>
|
#include <ipxe/timer.h>
|
||||||
#include <ipxe/if_arp.h>
|
#include <ipxe/if_arp.h>
|
||||||
#include <ipxe/if_ether.h>
|
#include <ipxe/if_ether.h>
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
#ifndef _IPXE_CONSOLE_H
|
#ifndef _IPXE_CONSOLE_H
|
||||||
#define _IPXE_CONSOLE_H
|
#define _IPXE_CONSOLE_H
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
#include <ipxe/tables.h>
|
#include <ipxe/tables.h>
|
||||||
|
|
||||||
/** @file
|
/** @file
|
||||||
|
@ -100,8 +101,6 @@ struct console_driver {
|
||||||
|
|
||||||
/* Function prototypes */
|
/* Function prototypes */
|
||||||
|
|
||||||
extern void putchar ( int character );
|
|
||||||
extern int getchar ( void );
|
|
||||||
extern int iskey ( void );
|
extern int iskey ( void );
|
||||||
extern int getkey ( unsigned long timeout );
|
extern int getkey ( unsigned long timeout );
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,10 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
|
extern void putchar ( int character );
|
||||||
|
|
||||||
|
extern int getchar ( void );
|
||||||
|
|
||||||
extern int __attribute__ (( format ( printf, 1, 2 ) ))
|
extern int __attribute__ (( format ( printf, 1, 2 ) ))
|
||||||
printf ( const char *fmt, ... );
|
printf ( const char *fmt, ... );
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,6 @@
|
||||||
FILE_LICENCE ( GPL2_OR_LATER );
|
FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <ipxe/console.h>
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ipxe/net80211.h>
|
#include <ipxe/net80211.h>
|
||||||
|
|
Loading…
Reference in New Issue