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
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];
24 u32 ctrl_mod_reg_offset;
33 void (*interrupt_enable) (void);
34 void (*interrupt_disable) (void);
38 EMAC_VERSION_1, /* DM644x */
39 EMAC_VERSION_2, /* DM646x */
42 void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context);