summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-11 18:34:23 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2014-10-13 10:33:17 -0500
commit12579b2d90e70ab86d7226f32996dd5899456ba7 (patch)
treee49e68411167340464f9fbec73537a3559f72a75 /c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c
parentlibbsp/shared/dummy_printk_support.c: Fix warning (diff)
downloadrtems-12579b2d90e70ab86d7226f32996dd5899456ba7.tar.bz2
sparc/leon2: Fix warnings
Diffstat (limited to 'c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c')
-rw-r--r--c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c b/c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c
index e55c5beb48..ae0e8052f7 100644
--- a/c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c
+++ b/c/src/lib/libbsp/sparc/leon2/leon_open_eth/leon_open_eth.c
@@ -28,7 +28,7 @@
/*
* Default location of device registers
*/
-#define OPEN_ETH_BASE_ADDRESS 0xb0000000
+#define OPEN_ETH_BASE_ADDRESS ((void *)0xb0000000)
/*
* Default interrupt vector
@@ -36,11 +36,11 @@
#define OPEN_ETH_VECTOR 0x1C
open_eth_configuration_t leon_open_eth_configuration = {
- OPEN_ETH_BASE_ADDRESS, /* base address */
- OPEN_ETH_VECTOR, /* vector number */
+ OPEN_ETH_BASE_ADDRESS, /* base address */
+ OPEN_ETH_VECTOR, /* vector number */
TDA_COUNT, /* number of transmit descriptors */
RDA_COUNT, /* number of receive descriptors */
- 0 /* 100 MHz operation */
+ 0 /* 100 MHz operation */
};
int rtems_leon_open_eth_driver_attach(struct rtems_bsdnet_ifconfig *config)