mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-29 10:31:30 +00:00
drivers/net/tsi108_eth.c: Fix compile warning
Fix this: tsi108_eth.c: In function 'tsi108_eth_initialize': tsi108_eth.c:745:13: warning: assignment from incompatible pointer type tsi108_eth.c: In function 'tsi108_eth_recv': tsi108_eth.c:989:4: warning: passing argument 1 of 'NetReceive' discards qualifiers from pointer target type Signed-off-by: Joe Hershberger <joe.hershberger@ni.com>
This commit is contained in:
parent
86f3cded06
commit
e5c83f3304
1 changed files with 5 additions and 9 deletions
|
@ -433,8 +433,7 @@ static struct dma_descriptor rx_descr_array[NUM_RX_DESC]
|
||||||
static struct dma_descriptor *rx_descr_current;
|
static struct dma_descriptor *rx_descr_current;
|
||||||
|
|
||||||
static int tsi108_eth_probe (struct eth_device *dev, bd_t * bis);
|
static int tsi108_eth_probe (struct eth_device *dev, bd_t * bis);
|
||||||
static int tsi108_eth_send (struct eth_device *dev,
|
static int tsi108_eth_send(struct eth_device *dev, void *packet, int length);
|
||||||
volatile void *packet, int length);
|
|
||||||
static int tsi108_eth_recv (struct eth_device *dev);
|
static int tsi108_eth_recv (struct eth_device *dev);
|
||||||
static void tsi108_eth_halt (struct eth_device *dev);
|
static void tsi108_eth_halt (struct eth_device *dev);
|
||||||
static unsigned int read_phy (unsigned int base,
|
static unsigned int read_phy (unsigned int base,
|
||||||
|
@ -872,8 +871,7 @@ static int tsi108_eth_probe (struct eth_device *dev, bd_t * bis)
|
||||||
/*
|
/*
|
||||||
* send a packet
|
* send a packet
|
||||||
*/
|
*/
|
||||||
static int tsi108_eth_send (struct eth_device *dev,
|
static int tsi108_eth_send(struct eth_device *dev, void *packet, int length)
|
||||||
volatile void *packet, int length)
|
|
||||||
{
|
{
|
||||||
unsigned long base;
|
unsigned long base;
|
||||||
int timeout;
|
int timeout;
|
||||||
|
@ -948,7 +946,7 @@ static int tsi108_eth_recv (struct eth_device *dev)
|
||||||
unsigned long base;
|
unsigned long base;
|
||||||
int length = 0;
|
int length = 0;
|
||||||
unsigned long status;
|
unsigned long status;
|
||||||
volatile uchar *buffer;
|
uchar *buffer;
|
||||||
|
|
||||||
base = dev->iobase;
|
base = dev->iobase;
|
||||||
|
|
||||||
|
@ -983,10 +981,8 @@ static int tsi108_eth_recv (struct eth_device *dev)
|
||||||
le32_to_cpu(rx_descr->vlan_byte_count) & 0xFFFF;
|
le32_to_cpu(rx_descr->vlan_byte_count) & 0xFFFF;
|
||||||
|
|
||||||
/*** process packet ***/
|
/*** process packet ***/
|
||||||
buffer =
|
buffer = (uchar *)(le32_to_cpu(rx_descr->start_addr0));
|
||||||
(volatile uchar
|
NetReceive(buffer, length);
|
||||||
*)(le32_to_cpu (rx_descr->start_addr0));
|
|
||||||
NetReceive (buffer, length);
|
|
||||||
|
|
||||||
invalidate_dcache_range ((unsigned long)buffer,
|
invalidate_dcache_range ((unsigned long)buffer,
|
||||||
(unsigned long)buffer +
|
(unsigned long)buffer +
|
||||||
|
|
Loading…
Add table
Reference in a new issue