forked from Imagelibrary/rtems
Warning removal patch from Philip A. Prindeville <philipp@zembu.com>.
This commit is contained in:
@@ -64,7 +64,7 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
|
|||||||
|
|
||||||
#define ISDOT(dp) \
|
#define ISDOT(dp) \
|
||||||
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
|
(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
|
#ifndef _REENT_ONLY
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,9 @@
|
|||||||
*
|
*
|
||||||
* MODIFICATION/HISTORY:
|
* MODIFICATION/HISTORY:
|
||||||
* $Log$
|
* $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 )
|
static __inline unsigned char inb( unsigned short io_addr )
|
||||||
{
|
{
|
||||||
unsigned short in_data;
|
unsigned char in_data;
|
||||||
inport_byte( io_addr, in_data );
|
inport_byte( io_addr, in_data );
|
||||||
return in_data;
|
return in_data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,7 +68,7 @@ extern BSP_polling_getchar_function_type BSP_poll_char;
|
|||||||
/*-------------------------------------------------------------------------+
|
/*-------------------------------------------------------------------------+
|
||||||
| External Prototypes
|
| 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 rtems_boolean _IBMPC_scankey(char *); /* defined in 'inch.c' */
|
||||||
extern char BSP_wait_polled_input(void);
|
extern char BSP_wait_polled_input(void);
|
||||||
extern void _IBMPC_initVideo(void);
|
extern void _IBMPC_initVideo(void);
|
||||||
|
|||||||
@@ -186,6 +186,11 @@ struct ne_softc {
|
|||||||
|
|
||||||
static struct ne_softc ne_softc[NNEDRIVER];
|
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
|
/* Find the NE2000 device which is attached at a particular interrupt
|
||||||
vector. */
|
vector. */
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ int getDebugChar(void); /* read and return a single char */
|
|||||||
/* assign an exception handler */
|
/* assign an exception handler */
|
||||||
void exceptionHandler(int, void (*handler)(void));
|
void exceptionHandler(int, void (*handler)(void));
|
||||||
|
|
||||||
|
void BSP_loop(int uart);
|
||||||
|
|
||||||
/* Current uart used by gdb stub */
|
/* Current uart used by gdb stub */
|
||||||
static int uart_current = 0;
|
static int uart_current = 0;
|
||||||
|
|||||||
@@ -35,14 +35,11 @@ uread(int uart, unsigned int reg)
|
|||||||
{
|
{
|
||||||
register unsigned char val;
|
register unsigned char val;
|
||||||
|
|
||||||
if(uart == 0)
|
if (uart == 0) {
|
||||||
{
|
inport_byte(COM1_BASE_IO+reg, val);
|
||||||
i386_inport_byte(COM1_BASE_IO+reg, val);
|
} else {
|
||||||
}
|
inport_byte(COM2_BASE_IO+reg, val);
|
||||||
else
|
}
|
||||||
{
|
|
||||||
i386_inport_byte(COM2_BASE_IO+reg, val);
|
|
||||||
}
|
|
||||||
|
|
||||||
return val;
|
return val;
|
||||||
}
|
}
|
||||||
@@ -50,14 +47,11 @@ uread(int uart, unsigned int reg)
|
|||||||
static inline void
|
static inline void
|
||||||
uwrite(int uart, int reg, unsigned int val)
|
uwrite(int uart, int reg, unsigned int val)
|
||||||
{
|
{
|
||||||
if(uart == 0)
|
if (uart == 0) {
|
||||||
{
|
outport_byte(COM1_BASE_IO+reg, val);
|
||||||
i386_outport_byte(COM1_BASE_IO+reg, val);
|
} else {
|
||||||
}
|
outport_byte(COM2_BASE_IO+reg, val);
|
||||||
else
|
}
|
||||||
{
|
|
||||||
i386_outport_byte(COM2_BASE_IO+reg, val);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef UARTDEBUG
|
#ifdef UARTDEBUG
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
|
|||||||
|
|
||||||
#define ISDOT(dp) \
|
#define ISDOT(dp) \
|
||||||
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
|
(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
|
#ifndef _REENT_ONLY
|
||||||
|
|
||||||
|
|||||||
@@ -67,7 +67,8 @@ static const char * Cx86model(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* We must get the stepping number by reading DIR1 */
|
/* 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) {
|
switch (x86_mask) {
|
||||||
case 0x03:
|
case 0x03:
|
||||||
Cx86_step = 1; /* 6x86MX Rev 1.3 */
|
Cx86_step = 1; /* 6x86MX Rev 1.3 */
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ static char sccsid[] = "@(#)getcwd.c 5.11 (Berkeley) 2/24/91";
|
|||||||
|
|
||||||
#define ISDOT(dp) \
|
#define ISDOT(dp) \
|
||||||
(dp->d_name[0] == '.' && (dp->d_name[1] == '\0' || \
|
(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
|
#ifndef _REENT_ONLY
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user