diff options
author | Maxime Bizon <mbizon@freebox.fr> | 2009-08-18 08:23:37 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2009-09-17 14:07:52 -0400 |
commit | e7300d04bd0809eb7ea10a2ed8c729459f816e36 (patch) | |
tree | 8af589d3954c09323d3f74e69aa6fabbb32e049e /arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h | |
parent | 0de663ef8627f35fda9106a8faaca512f29e493e (diff) |
MIPS: BCM63xx: Add support for the Broadcom BCM63xx family of SOCs.
Signed-off-by: Maxime Bizon <mbizon@freebox.fr>
Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h')
-rw-r--r-- | arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h new file mode 100644 index 000000000000..d53f611184b9 --- /dev/null +++ b/arch/mips/include/asm/mach-bcm63xx/bcm63xx_dev_enet.h | |||
@@ -0,0 +1,45 @@ | |||
1 | #ifndef BCM63XX_DEV_ENET_H_ | ||
2 | #define BCM63XX_DEV_ENET_H_ | ||
3 | |||
4 | #include <linux/if_ether.h> | ||
5 | #include <linux/init.h> | ||
6 | |||
7 | /* | ||
8 | * on board ethernet platform data | ||
9 | */ | ||
10 | struct bcm63xx_enet_platform_data { | ||
11 | char mac_addr[ETH_ALEN]; | ||
12 | |||
13 | int has_phy; | ||
14 | |||
15 | /* if has_phy, then set use_internal_phy */ | ||
16 | int use_internal_phy; | ||
17 | |||
18 | /* or fill phy info to use an external one */ | ||
19 | int phy_id; | ||
20 | int has_phy_interrupt; | ||
21 | int phy_interrupt; | ||
22 | |||
23 | /* if has_phy, use autonegociated pause parameters or force | ||
24 | * them */ | ||
25 | int pause_auto; | ||
26 | int pause_rx; | ||
27 | int pause_tx; | ||
28 | |||
29 | /* if !has_phy, set desired forced speed/duplex */ | ||
30 | int force_speed_100; | ||
31 | int force_duplex_full; | ||
32 | |||
33 | /* if !has_phy, set callback to perform mii device | ||
34 | * init/remove */ | ||
35 | int (*mii_config)(struct net_device *dev, int probe, | ||
36 | int (*mii_read)(struct net_device *dev, | ||
37 | int phy_id, int reg), | ||
38 | void (*mii_write)(struct net_device *dev, | ||
39 | int phy_id, int reg, int val)); | ||
40 | }; | ||
41 | |||
42 | int __init bcm63xx_enet_register(int unit, | ||
43 | const struct bcm63xx_enet_platform_data *pd); | ||
44 | |||
45 | #endif /* ! BCM63XX_DEV_ENET_H_ */ | ||