mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-05 15:15:44 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -38,3 +38,4 @@ int hdlc_output __P((struct ifnet *,
|
||||
int hdlc_ioctl __P((struct ifnet *, int , caddr_t ));
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
@@ -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 */
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user