1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef __PLATFORM_DATA_ETH_IXP4XX
3 #define __PLATFORM_DATA_ETH_IXP4XX
5 #include <linux/types.h>
7 #define IXP4XX_ETH_NPEA 0x00
8 #define IXP4XX_ETH_NPEB 0x10
9 #define IXP4XX_ETH_NPEC 0x20
11 /* Information about built-in Ethernet MAC interfaces */
12 struct eth_plat_info {
13 u8 phy; /* MII PHY ID, 0 - 31 */
14 u8 rxq; /* configurable, currently 0 - 31 only */
17 u8 npe; /* NPE instance used by this interface */
18 bool has_mdio; /* If this instance has an MDIO bus */