Merge tag 'powerpc-6.6-1' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc...
[sfrench/cifs-2.6.git] / drivers / net / ethernet / freescale / fs_enet / fs_enet.h
index cb419aef8d1b89c1c81160635c9982bba1c0d8bd..21c07ac05225ffd52831cfc7667bf7a6d8013740 100644 (file)
@@ -2,6 +2,7 @@
 #ifndef FS_ENET_H
 #define FS_ENET_H
 
+#include <linux/clk.h>
 #include <linux/mii.h>
 #include <linux/netdevice.h>
 #include <linux/types.h>
@@ -9,9 +10,6 @@
 #include <linux/phy.h>
 #include <linux/dma-mapping.h>
 
-#include <linux/fs_enet_pd.h>
-#include <asm/fs_pd.h>
-
 #ifdef CONFIG_CPM1
 #include <asm/cpm1.h>
 #endif
@@ -118,6 +116,23 @@ struct phy_info {
 #define ENET_RX_ALIGN  16
 #define ENET_RX_FRSIZE L1_CACHE_ALIGN(PKT_MAXBUF_SIZE + ENET_RX_ALIGN - 1)
 
+struct fs_platform_info {
+       /* device specific information */
+       u32 cp_command;         /* CPM page/sblock/mcn */
+
+       u32 dpram_offset;
+
+       struct device_node *phy_node;
+
+       int rx_ring, tx_ring;   /* number of buffers on rx      */
+       int rx_copybreak;       /* limit we copy small frames   */
+       int napi_weight;        /* NAPI weight                  */
+
+       int use_rmii;           /* use RMII mode                */
+
+       struct clk *clk_per;    /* 'per' clock for register access */
+};
+
 struct fs_enet_private {
        struct napi_struct napi;
        struct device *dev;     /* pointer back to the device (must be initialized first) */
@@ -191,11 +206,6 @@ void fs_cleanup_bds(struct net_device *dev);
 #define DRV_MODULE_NAME                "fs_enet"
 #define PFX DRV_MODULE_NAME    ": "
 
-/***************************************************************************/
-
-int fs_enet_platform_init(void);
-void fs_enet_platform_cleanup(void);
-
 /***************************************************************************/
 /* buffer descriptor access macros */