Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ieee1394...
[linux-2.6/linux-acpi-2.6/ibm-acpi-2.6.git] / include / linux / davinci_emac.h
blob5dd428532f794c387533633cba57e6e12957cb01
1 /*
2 * TI DaVinci EMAC platform support
4 * Author: Kevin Hilman, Deep Root Systems, LLC
6 * 2007 (c) Deep Root Systems, LLC. This file is licensed under
7 * the terms of the GNU General Public License version 2. This program
8 * is licensed "as is" without any warranty of any kind, whether express
9 * or implied.
11 #ifndef _LINUX_DAVINCI_EMAC_H
12 #define _LINUX_DAVINCI_EMAC_H
14 #include <linux/if_ether.h>
15 #include <linux/memory.h>
17 struct mdio_platform_data {
18 unsigned long bus_freq;
21 struct emac_platform_data {
22 char mac_addr[ETH_ALEN];
23 u32 ctrl_reg_offset;
24 u32 ctrl_mod_reg_offset;
25 u32 ctrl_ram_offset;
26 u32 hw_ram_addr;
27 u32 ctrl_ram_size;
30 * phy_id can be one of the following:
31 * - NULL : use the first phy on the bus,
32 * - "" : force to 100/full, no mdio control
33 * - "<bus>:<addr>" : use the specified bus and phy
35 const char *phy_id;
37 u8 rmii_en;
38 u8 version;
39 void (*interrupt_enable) (void);
40 void (*interrupt_disable) (void);
43 enum {
44 EMAC_VERSION_1, /* DM644x */
45 EMAC_VERSION_2, /* DM646x */
48 void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context);
49 #endif