| /* SPDX-License-Identifier: GPL-2.0+ */ |
| * Copyright 2015-2016 Freescale Semiconductor, Inc. |
| #include <net/pfe_eth/pfe/pfe_hw.h> |
| #include <dm/platform_data/pfe_dm_eth.h> |
| #define HIF_RX_DESC_NT 64 |
| #define HIF_TX_DESC_NT 64 |
| #define RX_BD_BASEADDR (HIF_DESC_BASEADDR) |
| #define TX_BD_BASEADDR (HIF_DESC_BASEADDR + HIF_TX_DESC_SIZE) |
| #define MAX_FRAME_SIZE 2048 |
| struct __packed hif_header_s { |
| u8 port_no; /* Carries input port no for host rx packets and |
| * output port no for tx pkts |
| struct __packed buf_desc { |
| struct buf_desc *rx_base; |
| struct buf_desc *tx_base; |
| int pfe_send(int phy_port, void *data, int length); |
| int pfe_recv(uchar **pkt_ptr, int *phy_port); |
| int pfe_eth_free_pkt(struct udevice *dev, uchar *packet, int length); |
| int pfe_drv_init(struct pfe_ddr_address *pfe_addr); |
| int pfe_eth_remove(struct udevice *dev); |