|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/kernel.h>#include <linux/platform_device.h>#include <linux/delay.h>#include <linux/sched.h>#include <linux/slab.h>#include <linux/phy.h>#include <linux/clk.h>#include <linux/err.h>#include <linux/io.h>#include <linux/pm_runtime.h>#include <linux/davinci_emac.h>#include <linux/of.h>#include <linux/of_device.h>Go to the source code of this file.
Data Structures | |
| struct | davinci_mdio_regs |
| struct | davinci_mdio_data |
Macros | |
| #define | MDIO_TIMEOUT 100 /* msecs */ |
| #define | PHY_REG_MASK 0x1f |
| #define | PHY_ID_MASK 0x1f |
| #define | DEF_OUT_FREQ 2200000 /* 2.2 MHz */ |
| #define | CONTROL_IDLE BIT(31) |
| #define | CONTROL_ENABLE BIT(30) |
| #define | CONTROL_MAX_DIV (0xffff) |
| #define | USERACCESS_GO BIT(31) |
| #define | USERACCESS_WRITE BIT(30) |
| #define | USERACCESS_ACK BIT(29) |
| #define | USERACCESS_READ (0) |
| #define | USERACCESS_DATA (0xffff) |
Functions | |
| device_initcall (davinci_mdio_init) | |
| module_exit (davinci_mdio_exit) | |
| MODULE_LICENSE ("GPL") | |
| MODULE_DESCRIPTION ("DaVinci MDIO driver") | |
Variables | |
| struct mdio_platform_data | default_pdata |
| #define CONTROL_ENABLE BIT(30) |
Definition at line 58 of file davinci_mdio.c.
| #define CONTROL_IDLE BIT(31) |
Definition at line 57 of file davinci_mdio.c.
| #define CONTROL_MAX_DIV (0xffff) |
Definition at line 59 of file davinci_mdio.c.
| #define DEF_OUT_FREQ 2200000 /* 2.2 MHz */ |
Definition at line 52 of file davinci_mdio.c.
| #define MDIO_TIMEOUT 100 /* msecs */ |
Definition at line 47 of file davinci_mdio.c.
| #define PHY_ID_MASK 0x1f |
Definition at line 50 of file davinci_mdio.c.
| #define PHY_REG_MASK 0x1f |
Definition at line 49 of file davinci_mdio.c.
| #define USERACCESS_ACK BIT(29) |
Definition at line 76 of file davinci_mdio.c.
| #define USERACCESS_DATA (0xffff) |
Definition at line 78 of file davinci_mdio.c.
| #define USERACCESS_GO BIT(31) |
Definition at line 74 of file davinci_mdio.c.
| #define USERACCESS_READ (0) |
Definition at line 77 of file davinci_mdio.c.
| #define USERACCESS_WRITE BIT(30) |
Definition at line 75 of file davinci_mdio.c.
| device_initcall | ( | davinci_mdio_init | ) |
| module_exit | ( | davinci_mdio_exit | ) |
| MODULE_LICENSE | ( | "GPL" | ) |
| struct mdio_platform_data default_pdata |
Definition at line 84 of file davinci_mdio.c.
1.8.2