summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/powerpc/mbx8xx/network/network.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/src/lib/libbsp/powerpc/mbx8xx/network/network.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/src/lib/libbsp/powerpc/mbx8xx/network/network.c')
-rw-r--r--c/src/lib/libbsp/powerpc/mbx8xx/network/network.c12
1 files changed, 9 insertions, 3 deletions
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