hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/arch/arm/mach-ixp4xx/include/mach/platform.h
....@@ -15,6 +15,7 @@
1515 #ifndef __ASSEMBLY__
1616
1717 #include <linux/reboot.h>
18
+#include <linux/platform_data/eth_ixp4xx.h>
1819
1920 #include <asm/types.h>
2021
....@@ -90,27 +91,6 @@
9091 unsigned long cs1_bits;
9192 void __iomem *cs0;
9293 void __iomem *cs1;
93
-};
94
-
95
-#define IXP4XX_ETH_NPEA 0x00
96
-#define IXP4XX_ETH_NPEB 0x10
97
-#define IXP4XX_ETH_NPEC 0x20
98
-
99
-/* Information about built-in Ethernet MAC interfaces */
100
-struct eth_plat_info {
101
- u8 phy; /* MII PHY ID, 0 - 31 */
102
- u8 rxq; /* configurable, currently 0 - 31 only */
103
- u8 txreadyq;
104
- u8 hwaddr[6];
105
-};
106
-
107
-/* Information about built-in HSS (synchronous serial) interfaces */
108
-struct hss_plat_info {
109
- int (*set_clock)(int port, unsigned int clock_type);
110
- int (*open)(int port, void *pdev,
111
- void (*set_carrier_cb)(void *pdev, int carrier));
112
- void (*close)(int port, void *pdev);
113
- u8 txreadyq;
11494 };
11595
11696 /*