2002-11-04 Joel Sherrill <joel@OARcorp.com>

* console/console.c, irq/irq.c, network/if_hdlcsubr.c,
	network/if_hdlcsubr.h, network/network.c, vectors/vectors_init.c:
	Removed warnings.
This commit is contained in:
Joel Sherrill
2002-11-04 14:28:09 +00:00
parent 844de9915c
commit 37a25cf35d
7 changed files with 24 additions and 7 deletions

View File

@@ -1,3 +1,9 @@
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* console/console.c, irq/irq.c, network/if_hdlcsubr.c,
network/if_hdlcsubr.h, network/network.c, vectors/vectors_init.c:
Removed warnings.
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* irq/irq.c, irq/irq_asm.S, startup/bspstart.c: Fixed typos and

View File

@@ -323,12 +323,10 @@ rtems_device_driver console_open(
void *arg
)
{
#if UARTS_IO_MODE == 1 /* RTEMS interrupt-driven I/O with termios */
/* Used to track termios private data for callbacks */
extern struct rtems_termios_tty *ttyp[];
rtems_libio_open_close_args_t *args = arg;
rtems_status_code sc;
static const rtems_termios_callbacks intrCallbacks = {
NULL, /* firstOpen */
@@ -340,7 +338,8 @@ rtems_device_driver console_open(
NULL, /* startRemoteTx */
1 /* outputUsesInterrupts */
};
#else
#if (UARTS_USE_TERMIOS == 1) && (UARTS_IO_MODE != 1)
static const rtems_termios_callbacks pollCallbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */
@@ -351,6 +350,11 @@ rtems_device_driver console_open(
NULL, /* startRemoteTx */
0 /* outputUsesInterrupts */
};
#endif
#endif
rtems_status_code sc;
if ( minor > NUM_PORTS-1 )
return RTEMS_INVALID_NUMBER;

View File

@@ -20,6 +20,7 @@
#include <bsp.h>
#include <bsp/irq.h>
#include <rtems.h>
#include <rtems/apiext.h>
#include <rtems/bspIo.h>
#include <libcpu/raw_exception.h>
#include <bsp/vectors.h>

View File

@@ -73,6 +73,8 @@
#include <netinet/in_var.h>
#include <netinet/if_ether.h>
#include <stdio.h>
#include "if_hdlcsubr.h"
@@ -94,7 +96,9 @@ hdlc_output(ifp, m0, dst, rt0)
{
short type;
int s, error = 0;
#if 0
u_char edst[6];
#endif
register struct mbuf *m = m0;
register struct rtentry *rt;
struct mbuf *mcopy = (struct mbuf *)0;

View File

@@ -38,3 +38,4 @@ int hdlc_output __P((struct ifnet *,
int hdlc_ioctl __P((struct ifnet *, int , caddr_t ));
#endif

View File

@@ -536,7 +536,7 @@ scc_rxDaemon (void *arg)
* Invalidate the buffer for this descriptor
*/
rtems_cache_invalidate_multiple_data_lines(rxBd->buffer, rxBd->length);
rtems_cache_invalidate_multiple_data_lines((void *)rxBd->buffer, rxBd->length);
m = sc->rxMbuf[rxBdIndex];
@@ -687,7 +687,7 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
* Flush the buffer for this descriptor
*/
rtems_cache_flush_multiple_data_lines(txBd->buffer, txBd->length);
rtems_cache_flush_multiple_data_lines((void *)txBd->buffer, txBd->length);
/* throw off the header for Ethernet Emulation mode */

View File

@@ -15,6 +15,7 @@
#include <bsp/vectors.h>
#include <libcpu/raw_exception.h>
#include <bsp.h>
#include <rtems/bspIo.h>
static rtems_raw_except_global_settings exception_config;
static rtems_raw_except_connect_data exception_table[LAST_VALID_EXC + 1];