Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.

This commit is contained in:
Joel Sherrill
1999-12-13 21:21:31 +00:00
parent 1c98d28cb7
commit da8ae79b3e
9 changed files with 26 additions and 22 deletions

View File

@@ -64,7 +64,7 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
#define ISDOT(dp) \
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
#ifndef _REENT_ONLY

View File

@@ -58,6 +58,9 @@
*
* MODIFICATION/HISTORY:
* $Log$
* Revision 1.1 1999/05/14 16:23:42 joel
* Added 3COM 3C509 driver from Rosimildo DaSilva <rdasilva@connecttel.com>.
*
*
**********************************************************************************/
@@ -384,7 +387,7 @@ void __inline outb( unsigned short io_addr, unsigned char out_data )
**********************************************************************************/
static __inline unsigned char inb( unsigned short io_addr )
{
unsigned short in_data;
unsigned char in_data;
inport_byte( io_addr, in_data );
return in_data;
}

View File

@@ -68,7 +68,7 @@ extern BSP_polling_getchar_function_type BSP_poll_char;
/*-------------------------------------------------------------------------+
| External Prototypes
+--------------------------------------------------------------------------*/
extern void _IBMPC_keyboard_isr(void);
extern void _IBMPC_keyboard_isr(rtems_vector_number);
extern rtems_boolean _IBMPC_scankey(char *); /* defined in 'inch.c' */
extern char BSP_wait_polled_input(void);
extern void _IBMPC_initVideo(void);

View File

@@ -186,6 +186,11 @@ struct ne_softc {
static struct ne_softc ne_softc[NNEDRIVER];
/* Forward declarations to avoid warnings */
static void ne_stop (struct ne_softc *sc);
static void ne_init (void *arg);
/* Find the NE2000 device which is attached at a particular interrupt
vector. */

View File

@@ -21,6 +21,7 @@ int getDebugChar(void); /* read and return a single char */
/* assign an exception handler */
void exceptionHandler(int, void (*handler)(void));
void BSP_loop(int uart);
/* Current uart used by gdb stub */
static int uart_current = 0;

View File

@@ -35,14 +35,11 @@ uread(int uart, unsigned int reg)
{
register unsigned char val;
if(uart == 0)
{
i386_inport_byte(COM1_BASE_IO+reg, val);
}
else
{
i386_inport_byte(COM2_BASE_IO+reg, val);
}
if (uart == 0) {
inport_byte(COM1_BASE_IO+reg, val);
} else {
inport_byte(COM2_BASE_IO+reg, val);
}
return val;
}
@@ -50,14 +47,11 @@ uread(int uart, unsigned int reg)
static inline void
uwrite(int uart, int reg, unsigned int val)
{
if(uart == 0)
{
i386_outport_byte(COM1_BASE_IO+reg, val);
}
else
{
i386_outport_byte(COM2_BASE_IO+reg, val);
}
if (uart == 0) {
outport_byte(COM1_BASE_IO+reg, val);
} else {
outport_byte(COM2_BASE_IO+reg, val);
}
}
#ifdef UARTDEBUG

View File

@@ -64,7 +64,7 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
#define ISDOT(dp) \
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
dp->d_name[1] == '.' && dp->d_name[2] == '\0'))
(dp->d_name[1] == '.' && dp->d_name[2] == '\0')))
#ifndef _REENT_ONLY

View File

@@ -67,7 +67,8 @@ static const char * Cx86model(void)
}
/* We must get the stepping number by reading DIR1 */
i386_outport_byte(0x22,0xff) ; i386_inport_byte(0x23, x86_mask);
outport_byte(0x22,0xff);
inport_byte(0x23, x86_mask);
switch (x86_mask) {
case 0x03:
Cx86_step = 1; /* 6x86MX Rev 1.3 */