mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-09 17:12:58 +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>
|
2002-11-01 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
* irq/irq.c, irq/irq_asm.S, startup/bspstart.c: Fixed typos and
|
* irq/irq.c, irq/irq_asm.S, startup/bspstart.c: Fixed typos and
|
||||||
|
|||||||
@@ -323,12 +323,10 @@ rtems_device_driver console_open(
|
|||||||
void *arg
|
void *arg
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
|
#if UARTS_IO_MODE == 1 /* RTEMS interrupt-driven I/O with termios */
|
||||||
/* Used to track termios private data for callbacks */
|
/* Used to track termios private data for callbacks */
|
||||||
extern struct rtems_termios_tty *ttyp[];
|
extern struct rtems_termios_tty *ttyp[];
|
||||||
|
|
||||||
rtems_libio_open_close_args_t *args = arg;
|
rtems_libio_open_close_args_t *args = arg;
|
||||||
rtems_status_code sc;
|
|
||||||
|
|
||||||
|
|
||||||
static const rtems_termios_callbacks intrCallbacks = {
|
static const rtems_termios_callbacks intrCallbacks = {
|
||||||
NULL, /* firstOpen */
|
NULL, /* firstOpen */
|
||||||
@@ -340,7 +338,8 @@ rtems_device_driver console_open(
|
|||||||
NULL, /* startRemoteTx */
|
NULL, /* startRemoteTx */
|
||||||
1 /* outputUsesInterrupts */
|
1 /* outputUsesInterrupts */
|
||||||
};
|
};
|
||||||
|
#else
|
||||||
|
#if (UARTS_USE_TERMIOS == 1) && (UARTS_IO_MODE != 1)
|
||||||
static const rtems_termios_callbacks pollCallbacks = {
|
static const rtems_termios_callbacks pollCallbacks = {
|
||||||
NULL, /* firstOpen */
|
NULL, /* firstOpen */
|
||||||
NULL, /* lastClose */
|
NULL, /* lastClose */
|
||||||
@@ -351,6 +350,11 @@ rtems_device_driver console_open(
|
|||||||
NULL, /* startRemoteTx */
|
NULL, /* startRemoteTx */
|
||||||
0 /* outputUsesInterrupts */
|
0 /* outputUsesInterrupts */
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
rtems_status_code sc;
|
||||||
|
|
||||||
if ( minor > NUM_PORTS-1 )
|
if ( minor > NUM_PORTS-1 )
|
||||||
return RTEMS_INVALID_NUMBER;
|
return RTEMS_INVALID_NUMBER;
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
#include <bsp/irq.h>
|
#include <bsp/irq.h>
|
||||||
#include <rtems.h>
|
#include <rtems.h>
|
||||||
|
#include <rtems/apiext.h>
|
||||||
#include <rtems/bspIo.h>
|
#include <rtems/bspIo.h>
|
||||||
#include <libcpu/raw_exception.h>
|
#include <libcpu/raw_exception.h>
|
||||||
#include <bsp/vectors.h>
|
#include <bsp/vectors.h>
|
||||||
|
|||||||
@@ -73,6 +73,8 @@
|
|||||||
#include <netinet/in_var.h>
|
#include <netinet/in_var.h>
|
||||||
#include <netinet/if_ether.h>
|
#include <netinet/if_ether.h>
|
||||||
|
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
#include "if_hdlcsubr.h"
|
#include "if_hdlcsubr.h"
|
||||||
|
|
||||||
|
|
||||||
@@ -94,7 +96,9 @@ hdlc_output(ifp, m0, dst, rt0)
|
|||||||
{
|
{
|
||||||
short type;
|
short type;
|
||||||
int s, error = 0;
|
int s, error = 0;
|
||||||
|
#if 0
|
||||||
u_char edst[6];
|
u_char edst[6];
|
||||||
|
#endif
|
||||||
register struct mbuf *m = m0;
|
register struct mbuf *m = m0;
|
||||||
register struct rtentry *rt;
|
register struct rtentry *rt;
|
||||||
struct mbuf *mcopy = (struct mbuf *)0;
|
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 ));
|
int hdlc_ioctl __P((struct ifnet *, int , caddr_t ));
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -536,7 +536,7 @@ scc_rxDaemon (void *arg)
|
|||||||
* Invalidate the buffer for this descriptor
|
* 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];
|
m = sc->rxMbuf[rxBdIndex];
|
||||||
|
|
||||||
@@ -687,7 +687,7 @@ scc_sendpacket (struct ifnet *ifp, struct mbuf *m)
|
|||||||
* Flush the buffer for this descriptor
|
* 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 */
|
/* throw off the header for Ethernet Emulation mode */
|
||||||
|
|||||||
@@ -15,6 +15,7 @@
|
|||||||
#include <bsp/vectors.h>
|
#include <bsp/vectors.h>
|
||||||
#include <libcpu/raw_exception.h>
|
#include <libcpu/raw_exception.h>
|
||||||
#include <bsp.h>
|
#include <bsp.h>
|
||||||
|
#include <rtems/bspIo.h>
|
||||||
|
|
||||||
static rtems_raw_except_global_settings exception_config;
|
static rtems_raw_except_global_settings exception_config;
|
||||||
static rtems_raw_except_connect_data exception_table[LAST_VALID_EXC + 1];
|
static rtems_raw_except_connect_data exception_table[LAST_VALID_EXC + 1];
|
||||||
|
|||||||
Reference in New Issue
Block a user