ramips: rename the spi driver
[openwrt/svn-archive/archive.git] / target / linux / ramips / files / drivers / net / ramips_eth.h
index 7d5296b21bae951c7b40f8883f7910fa35c8b5f6..1d151df687aee86af9591fa9ea8c293cb663d70e 100644 (file)
@@ -195,7 +195,7 @@ struct ramips_rx_dma {
        unsigned int rxd2;
        unsigned int rxd3;
        unsigned int rxd4;
-};
+} __packed __aligned(4);
 
 #define TX_DMA_PLEN0_MASK              ((0x3fff) << 16)
 #define TX_DMA_PLEN0(_x)               (((_x) & 0x3fff) << 16)
@@ -211,7 +211,7 @@ struct ramips_tx_dma {
        unsigned int txd2;
        unsigned int txd3;
        unsigned int txd4;
-};
+} __packed __aligned(4);
 
 struct raeth_priv
 {
@@ -229,12 +229,20 @@ struct raeth_priv
        unsigned int            skb_free_idx;
 
        spinlock_t              page_lock;
+       struct net_device       *netdev;
+       struct device           *parent;
        struct ramips_eth_platform_data *plat;
 
+       int                     link;
        int                     speed;
        int                     duplex;
        int                     tx_fc;
        int                     rx_fc;
+
+       struct mii_bus          *mii_bus;
+       int                     mii_irq[PHY_MAX_ADDR];
+       struct phy_device       *phy_dev;
+       spinlock_t              phy_lock;
 };
 
 #endif /* RAMIPS_ETH_H */