2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>

* console/console.c, ide/pcmcia_ide.c, startup/bspstart.c,
	startup/imbx8xx.c: Fix some warnings.
This commit is contained in:
Joel Sherrill
2010-04-25 22:36:25 +00:00
parent ceda5c27e0
commit 9bbba5401c
5 changed files with 16 additions and 8 deletions

View File

@@ -1,3 +1,8 @@
2010-04-25 Joel Sherrill <joel.sherrilL@OARcorp.com>
* console/console.c, ide/pcmcia_ide.c, startup/bspstart.c,
startup/imbx8xx.c: Fix some warnings.
2010-03-27 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> 2010-03-27 Thomas Doerfler <Thomas.Doerfler@embedded-brains.de>
* startup/start.S: removed bootcard calling warning * startup/start.S: removed bootcard calling warning

View File

@@ -93,6 +93,9 @@ static void serial_putchar(const char c);
BSP_output_char_function_type BSP_output_char = _BSP_null_char; BSP_output_char_function_type BSP_output_char = _BSP_null_char;
extern volatile m8xx_t m8xx;
extern struct rtems_termios_tty *ttyp[];
/* /*
* _EPPCBug_pollRead * _EPPCBug_pollRead
* *
@@ -111,8 +114,6 @@ static int _EPPCBug_pollRead(
int minor int minor
) )
{ {
extern volatile m8xx_t m8xx;
char c; char c;
volatile int simask; /* We must read and write m8xx.simask */ volatile int simask; /* We must read and write m8xx.simask */
int retval; int retval;
@@ -220,8 +221,6 @@ static ssize_t _EPPCBug_pollWrite(
size_t len size_t len
) )
{ {
extern volatile m8xx_t m8xx;
volatile int simask; volatile int simask;
int i; int i;
ISR_Level level; ISR_Level level;
@@ -875,7 +874,6 @@ rtems_device_driver console_open(
{ {
#if NVRAM_CONFIGURE == 1 #if NVRAM_CONFIGURE == 1
/* Used to track termios private data for callbacks */ /* Used to track termios private data for callbacks */
extern struct rtems_termios_tty *ttyp[];
rtems_libio_open_close_args_t *args = arg; rtems_libio_open_close_args_t *args = arg;
static const rtems_termios_callbacks sccEPPCBugCallbacks = { static const rtems_termios_callbacks sccEPPCBugCallbacks = {
NULL, /* firstOpen */ NULL, /* firstOpen */

View File

@@ -219,7 +219,7 @@ void mbx8xx_pcmciaide_read_block
| Input Parameters: | | Input Parameters: |
\*-------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------*/
int minor, int minor,
uint16_t block_size, uint32_t block_size,
rtems_blkdev_sg_buffer *bufs, rtems_blkdev_sg_buffer *bufs,
uint32_t *cbuf, uint32_t *cbuf,
uint32_t *pos uint32_t *pos
@@ -276,7 +276,7 @@ void mbx8xx_pcmciaide_write_block
| Input Parameters: | | Input Parameters: |
\*-------------------------------------------------------------------------*/ \*-------------------------------------------------------------------------*/
int minor, int minor,
uint16_t block_size, uint32_t block_size,
rtems_blkdev_sg_buffer *bufs, rtems_blkdev_sg_buffer *bufs,
uint32_t *cbuf, uint32_t *cbuf,
uint32_t *pos uint32_t *pos

View File

@@ -27,6 +27,8 @@
SPR_RW(SPRG1) SPR_RW(SPRG1)
int bsp_interrupt_initialize(void);
/* /*
* Driver configuration parameters * Driver configuration parameters
*/ */

View File

@@ -149,6 +149,10 @@ static uint32_t upmaTable[64] = {
#endif #endif
}; };
#if ( !defined(EPPCBUG_VECTORS) )
extern uint32_t simask_copy;
#endif
/* /*
* Initialize MBX8xx * Initialize MBX8xx
*/ */
@@ -158,7 +162,6 @@ void _InitMBX8xx (void)
uint32_t i; uint32_t i;
#endif #endif
register uint32_t r1; register uint32_t r1;
extern uint32_t simask_copy;
/* /*
* Initialize the Debug Enable Register (DER) to an appropriate * Initialize the Debug Enable Register (DER) to an appropriate