mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
net: emaclite: Let core to handle received packet
Pass pointer to core to handle packet. Signed-off-by: Michal Simek <michal.simek@xilinx.com>
This commit is contained in:
@@ -93,7 +93,7 @@ struct xemaclite {
|
|||||||
struct mii_dev *bus;
|
struct mii_dev *bus;
|
||||||
};
|
};
|
||||||
|
|
||||||
static u32 etherrxbuff[PKTSIZE_ALIGN/4]; /* Receive buffer */
|
static uchar etherrxbuff[PKTSIZE_ALIGN]; /* Receive buffer */
|
||||||
|
|
||||||
static void xemaclite_alignedread(u32 *srcptr, void *destptr, u32 bytecount)
|
static void xemaclite_alignedread(u32 *srcptr, void *destptr, u32 bytecount)
|
||||||
{
|
{
|
||||||
@@ -528,8 +528,8 @@ try_again:
|
|||||||
out_be32(ack, reg);
|
out_be32(ack, reg);
|
||||||
|
|
||||||
debug("Packet receive from 0x%p, length %dB\n", addr, length);
|
debug("Packet receive from 0x%p, length %dB\n", addr, length);
|
||||||
net_process_received_packet((uchar *)etherrxbuff, length);
|
*packetp = etherrxbuff;
|
||||||
return 0;
|
return length;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int emaclite_miiphy_read(struct mii_dev *bus, int addr,
|
static int emaclite_miiphy_read(struct mii_dev *bus, int addr,
|
||||||
|
Reference in New Issue
Block a user