diff options
author | TsiChung Liew <Tsi-Chung.Liew@freescale.com> | 2008-08-21 23:55:11 +0000 |
---|---|---|
committer | Ben Warren <biggerbadderben@gmail.com> | 2008-08-26 22:40:02 -0700 |
commit | 429be27ce195210d4b9decf9e867b9ca6155a87d (patch) | |
tree | 354a4235d77ec8315ca501ac73adedd6b6ec8f8c /drivers/net/fsl_mcdmafec.c | |
parent | 6a002171098e968bd5b362347d2831224fab6048 (diff) |
Fix ColdFire FEC warning messages
Types mismatch and implicit declaration of icache_invalid()
warning messages
Signed-off-by: TsiChung Liew <Tsi-Chung.Liew@freescale.com>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>
Diffstat (limited to 'drivers/net/fsl_mcdmafec.c')
-rw-r--r-- | drivers/net/fsl_mcdmafec.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/drivers/net/fsl_mcdmafec.c b/drivers/net/fsl_mcdmafec.c index e34975a12fa..59524a5ede9 100644 --- a/drivers/net/fsl_mcdmafec.c +++ b/drivers/net/fsl_mcdmafec.c @@ -94,7 +94,7 @@ struct fec_info_dma fec_info[] = { 0, /* phy name */ 0, /* phy name init */ #ifdef CFG_DMA_USE_INTSRAM - DBUF_LENGTH, /* RX BD */ + (cbd_t *)DBUF_LENGTH, /* RX BD */ #else 0, /* RX BD */ #endif @@ -540,15 +540,16 @@ int mcdmafec_initialize(bd_t * bis) /* setup Receive and Transmit buffer descriptor */ #ifdef CFG_DMA_USE_INTSRAM - fec_info[i].rxbd = (int)fec_info[i].rxbd + tmp; - tmp = fec_info[i].rxbd; + fec_info[i].rxbd = (cbd_t *)((u32)fec_info[i].rxbd + tmp); + tmp = (u32)fec_info[i].rxbd; fec_info[i].txbd = - (int)fec_info[i].txbd + tmp + (PKTBUFSRX * sizeof(cbd_t)); - tmp = fec_info[i].txbd; + (cbd_t *)((u32)fec_info[i].txbd + tmp + + (PKTBUFSRX * sizeof(cbd_t))); + tmp = (u32)fec_info[i].txbd; fec_info[i].txbuf = - (int)fec_info[i].txbuf + tmp + - (CFG_TX_ETH_BUFFER * sizeof(cbd_t)); - tmp = fec_info[i].txbuf; + (char *)((u32)fec_info[i].txbuf + tmp + + (CFG_TX_ETH_BUFFER * sizeof(cbd_t))); + tmp = (u32)fec_info[i].txbuf; #else fec_info[i].rxbd = (cbd_t *) memalign(CFG_CACHELINE_SIZE, |