summaryrefslogtreecommitdiffstats
path: root/c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 22:18:26 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2002-11-04 22:18:26 +0000
commit1740467b245465f69167e1d02aa6b071296a7111 (patch)
tree3249922dcad38597c1a629ad6746d8b468306e55 /c
parenta3ed176c941ac00f898d816a60c0a74f07eaf4e2 (diff)
downloadrtems-1740467b245465f69167e1d02aa6b071296a7111.tar.bz2
2002-11-04 Joel Sherrill <joel@OARcorp.com>
* console/console.c, network/network.c: Removed warnings.
Diffstat (limited to 'c')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog4
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/console/console.c2
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/network/network.c12
3 files changed, 14 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
index 01d9374789..cf703bea4c 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/ChangeLog
@@ -2,6 +2,10 @@
* console/console.c, network/network.c: Removed warnings.
+2002-11-04 Joel Sherrill <joel@OARcorp.com>
+
+ * console/console.c, network/network.c: Removed warnings.
+
2002-11-01 Joel Sherrill <joel@OARcorp.com>
* clock/p_clock.c, console/console.c, startup/bspstart.c: Removed
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
index f1ef0c4b4c..126c7b073a 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/console/console.c
@@ -860,7 +860,6 @@ rtems_device_driver console_open(
/* Used to track termios private data for callbacks */
extern struct rtems_termios_tty *ttyp[];
rtems_libio_open_close_args_t *args = arg;
-#endif
static const rtems_termios_callbacks sccEPPCBugCallbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */
@@ -870,6 +869,7 @@ rtems_device_driver console_open(
NULL, /* startRemoteTx */
0 /* outputUsesInterrupts */
};
+#endif
static const rtems_termios_callbacks pollCallbacks = {
NULL, /* firstOpen */
NULL, /* lastClose */
diff --git a/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c b/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
index d11835f6c9..d5d350eb64 100644
--- a/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
+++ b/c/src/lib/libbsp/powerpc/mbx8xx/network/network.c
@@ -39,6 +39,10 @@
#include <netinet/if_ether.h>
#include <bsp/irq.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+#include <arpa/inet.h>
+
/*
* Number of interfaces supported by this driver
*/
@@ -756,7 +760,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((const void *)rxBd->buffer, rxBd->length);
m = sc->rxMbuf[rxBdIndex];
m->m_len = m->m_pkthdr.len = rxBd->length -
@@ -892,7 +896,7 @@ fec_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((const void *)rxBd->buffer, rxBd->length);
m = sc->rxMbuf[rxBdIndex];
m->m_len = m->m_pkthdr.len = rxBd->length -
@@ -1032,7 +1036,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((const void *)txBd->buffer, txBd->length);
sc->txMbuf[sc->txBdHead] = m;
nAdded++;
@@ -1547,8 +1551,10 @@ rtems_scc1_driver_attach (struct rtems_bsdnet_ifconfig *config)
int mtu;
int unitNumber;
char *unitName;
+#if NVRAM_CONFIGURE == 1
char *pAddr;
unsigned long addr;
+#endif
/*
* Parse driver name