Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
davinci_emac.h
Go to the documentation of this file.
1 /*
2  * TI DaVinci EMAC platform support
3  *
4  * Author: Kevin Hilman, Deep Root Systems, LLC
5  *
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.
10  */
11 #ifndef _LINUX_DAVINCI_EMAC_H
12 #define _LINUX_DAVINCI_EMAC_H
13 
14 #include <linux/if_ether.h>
15 #include <linux/memory.h>
16 
18  unsigned long bus_freq;
19 };
20 
28 
29  /*
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
34  */
35  const char *phy_id;
36 
39  bool no_bd_ram;
42 };
43 
44 enum {
45  EMAC_VERSION_1, /* DM644x */
46  EMAC_VERSION_2, /* DM646x */
47 };
48 
49 void davinci_get_mac_addr(struct memory_accessor *mem_acc, void *context);
50 #endif