summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNiu Xule <b23300@freescale.com>2010-05-12 15:43:24 +0800
committerXiexiaobo <X.Xie@freescale.com>2010-05-12 19:24:58 +0800
commit41ff27f98b69be3fdd5766087df46611926e1228 (patch)
treef29f44a7b52ded0033c3174e36072897e27f9ab3 /include
parent0b79095e2d683be8baf00e266357272783000cf1 (diff)
ENGR00123078-1 MX28: Add L2 Switch resources definition
L2 Switch resources definition for MX28 Signed-off-by: Niu Xule <b23300@freescale.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/fec.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/include/linux/fec.h b/include/linux/fec.h
index 2ad61317d32b..5ebd1f4742de 100644
--- a/include/linux/fec.h
+++ b/include/linux/fec.h
@@ -22,4 +22,22 @@ struct fec_platform_data {
struct regulator *vddio_reg;
};
+struct switch_platform_data {
+ int id;
+ int hash_table;
+ unsigned int *switch_hw;
+ struct fec_platform_data *fec_enet;
+ void (*request_intrs)(struct net_device *dev,
+ irqreturn_t (*)(int, void *),
+ void *irq_privatedata);
+ void (*set_mii)(struct net_device *dev);
+ void (*get_mac)(struct net_device *dev);
+ void (*enable_phy_intr)(void);
+ void (*disable_phy_intr)(void);
+ void (*phy_ack_intr)(void);
+ void (*localhw_setup)(void);
+ void (*uncache)(unsigned long addr);
+ void (*platform_flush_cache)(void);
+};
+
#endif