#include <command.h>
#include <net.h>
#include <malloc.h>
+#include <linux/compiler.h>
/* forward definition of function used for the uboot interface */
void uboot_push_packet_len(int len);
* does (i.e., also read data).
*/
- u16 tmp;
+ __maybe_unused u16 tmp;
int len = 1;
DP_OUT(base, DP_RSAL, 0x100 - len);
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 rsr;
+ __maybe_unused u8 rsr;
u8 rcv_hdr[4];
int i, len, pkt, cur;
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 tsr;
+ __maybe_unused u8 tsr;
u32 key;
DEBUG_FUNCTION();
{
struct dp83902a_priv_data *dp = (struct dp83902a_priv_data *) &nic;
u8 *base = dp->base;
- u8 cnt1, cnt2, cnt3;
+ __maybe_unused u8 cnt1, cnt2, cnt3;
DP_IN(base, DP_FER, cnt1);
DP_IN(base, DP_CER, cnt2);
dp83902a_recv(&pbuf[0], len);
/*Just pass it to the upper layer*/
- NetReceive(&pbuf[0], len);
+ net_process_received_packet(&pbuf[0], len);
}
void uboot_push_tx_done(int key, int val) {
return 1;
}
-static int ne2k_send(struct eth_device *dev, volatile void *packet, int length)
+static int ne2k_send(struct eth_device *dev, void *packet, int length)
{
int tmo;