mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 14:28:52 +09:00
![Max Filippov](/assets/img/avatar_default.png)
The ethoc device can be configured to have a private memory region instead of having access to the main memory. In that case egress packets must be copied into that memory for transmission and pointers to that memory need to be passed to net_process_received_packet or returned from the recv callback. Signed-off-by: Max Filippov <jcmvbkbc@gmail.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
22 lines
286 B
C
22 lines
286 B
C
/*
|
|
* Copyright (C) 2016 Cadence Design Systems Inc.
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0
|
|
*/
|
|
|
|
#ifndef _ETHOC_H
|
|
#define _ETHOC_H
|
|
|
|
#include <net.h>
|
|
|
|
#ifdef CONFIG_DM_ETH
|
|
|
|
struct ethoc_eth_pdata {
|
|
struct eth_pdata eth_pdata;
|
|
phys_addr_t packet_base;
|
|
};
|
|
|
|
#endif
|
|
|
|
#endif /* _ETHOC_H */
|