Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c4a6a2ab5e99980b10d1eef761cd95f2a19ba46d
Commit:     c4a6a2ab5e99980b10d1eef761cd95f2a19ba46d
Parent:     e8b8c977734193adedf2b0f607d6252c78e86394
Author:     Lennert Buytenhek <[EMAIL PROTECTED]>
AuthorDate: Fri Oct 19 04:09:53 2007 +0200
Committer:  Dale Farnsworth <[EMAIL PROTECTED]>
CommitDate: Tue Oct 23 08:22:58 2007 -0700

    mv643xx_eth: Split off mv643xx_eth platform device data
    
    The mv643xx ethernet silicon block is also found in a couple of other
    Marvell chips.  As a first step towards splitting off the mv643xx_eth
    bits from the rest of the mv643xx bits, this patch splits the mv643xx
    ethernet platform device data struct in linux/mv643xx.h off into
    linux/mv643xx_eth.h, and includes the latter from the former.
    
    Signed-off-by: Lennert Buytenhek <[EMAIL PROTECTED]>
    Acked-by: Tzachi Perelstein <[EMAIL PROTECTED]>
    Signed-off-by: Dale Farnsworth <[EMAIL PROTECTED]>
---
 include/linux/mv643xx.h     |   26 +-------------------------
 include/linux/mv643xx_eth.h |   31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 25 deletions(-)

diff --git a/include/linux/mv643xx.h b/include/linux/mv643xx.h
index 9c80490..e67d7ec 100644
--- a/include/linux/mv643xx.h
+++ b/include/linux/mv643xx.h
@@ -14,6 +14,7 @@
 #define __ASM_MV643XX_H
 
 #include <asm/types.h>
+#include <linux/mv643xx_eth.h>
 
 /****************************************/
 /* Processor Address Space              */
@@ -658,9 +659,6 @@
 /*        Ethernet Unit Registers              */
 /****************************************/
 
-#define MV643XX_ETH_SHARED_REGS                                     0x2000
-#define MV643XX_ETH_SHARED_REGS_SIZE                                0x2000
-
 #define MV643XX_ETH_PHY_ADDR_REG                                    0x2000
 #define MV643XX_ETH_SMI_REG                                         0x2004
 #define MV643XX_ETH_UNIT_DEFAULT_ADDR_REG                           0x2008
@@ -1280,28 +1278,6 @@ struct mv64xxx_i2c_pdata {
 
 #define MV643XX_ETH_DESC_SIZE                          64
 
-#define MV643XX_ETH_SHARED_NAME        "mv643xx_eth_shared"
-#define MV643XX_ETH_NAME       "mv643xx_eth"
-
-struct mv643xx_eth_platform_data {
-       int             port_number;
-       u16             force_phy_addr; /* force override if phy_addr == 0 */
-       u16             phy_addr;
-
-       /* If speed is 0, then speed and duplex are autonegotiated. */
-       int             speed;          /* 0, SPEED_10, SPEED_100, SPEED_1000 */
-       int             duplex;         /* DUPLEX_HALF or DUPLEX_FULL */
-
-       /* non-zero values of the following fields override defaults */
-       u32             tx_queue_size;
-       u32             rx_queue_size;
-       u32             tx_sram_addr;
-       u32             tx_sram_size;
-       u32             rx_sram_addr;
-       u32             rx_sram_size;
-       u8              mac_addr[6];    /* mac address if non-zero*/
-};
-
 /* Watchdog Platform Device, Driver Data */
 #define        MV64x60_WDT_NAME                        "mv64x60_wdt"
 
diff --git a/include/linux/mv643xx_eth.h b/include/linux/mv643xx_eth.h
new file mode 100644
index 0000000..3f27239
--- /dev/null
+++ b/include/linux/mv643xx_eth.h
@@ -0,0 +1,31 @@
+/*
+ * MV-643XX ethernet platform device data definition file.
+ */
+#ifndef __LINUX_MV643XX_ETH_H
+#define __LINUX_MV643XX_ETH_H
+
+#define MV643XX_ETH_SHARED_NAME                "mv643xx_eth_shared"
+#define MV643XX_ETH_NAME               "mv643xx_eth"
+#define MV643XX_ETH_SHARED_REGS                0x2000
+#define MV643XX_ETH_SHARED_REGS_SIZE   0x2000
+
+struct mv643xx_eth_platform_data {
+       int             port_number;
+       u16             force_phy_addr; /* force override if phy_addr == 0 */
+       u16             phy_addr;
+
+       /* If speed is 0, then speed and duplex are autonegotiated. */
+       int             speed;          /* 0, SPEED_10, SPEED_100, SPEED_1000 */
+       int             duplex;         /* DUPLEX_HALF or DUPLEX_FULL */
+
+       /* non-zero values of the following fields override defaults */
+       u32             tx_queue_size;
+       u32             rx_queue_size;
+       u32             tx_sram_addr;
+       u32             tx_sram_size;
+       u32             rx_sram_addr;
+       u32             rx_sram_size;
+       u8              mac_addr[6];    /* mac address if non-zero*/
+};
+
+#endif /* __LINUX_MV643XX_ETH_H */
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to