Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mdio-bitbang.c File Reference
#include <linux/module.h>
#include <linux/mdio-bitbang.h>
#include <linux/types.h>
#include <linux/delay.h>

Go to the source code of this file.

Macros

#define MDIO_READ   2
 
#define MDIO_WRITE   1
 
#define MDIO_C45   (1<<15)
 
#define MDIO_C45_ADDR   (MDIO_C45 | 0)
 
#define MDIO_C45_READ   (MDIO_C45 | 3)
 
#define MDIO_C45_WRITE   (MDIO_C45 | 1)
 
#define MDIO_SETUP_TIME   10
 
#define MDIO_HOLD_TIME   10
 
#define MDIO_DELAY   250
 
#define MDIO_READ_DELAY   350
 

Functions

struct mii_busalloc_mdio_bitbang (struct mdiobb_ctrl *ctrl)
 
 EXPORT_SYMBOL (alloc_mdio_bitbang)
 
void free_mdio_bitbang (struct mii_bus *bus)
 
 EXPORT_SYMBOL (free_mdio_bitbang)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define MDIO_C45   (1<<15)

Definition at line 28 of file mdio-bitbang.c.

#define MDIO_C45_ADDR   (MDIO_C45 | 0)

Definition at line 29 of file mdio-bitbang.c.

#define MDIO_C45_READ   (MDIO_C45 | 3)

Definition at line 30 of file mdio-bitbang.c.

#define MDIO_C45_WRITE   (MDIO_C45 | 1)

Definition at line 31 of file mdio-bitbang.c.

#define MDIO_DELAY   250

Definition at line 39 of file mdio-bitbang.c.

#define MDIO_HOLD_TIME   10

Definition at line 34 of file mdio-bitbang.c.

#define MDIO_READ   2

Definition at line 25 of file mdio-bitbang.c.

#define MDIO_READ_DELAY   350

Definition at line 44 of file mdio-bitbang.c.

#define MDIO_SETUP_TIME   10

Definition at line 33 of file mdio-bitbang.c.

#define MDIO_WRITE   1

Definition at line 26 of file mdio-bitbang.c.

Function Documentation

struct mii_bus* alloc_mdio_bitbang ( struct mdiobb_ctrl ctrl)
read

Definition at line 213 of file mdio-bitbang.c.

EXPORT_SYMBOL ( alloc_mdio_bitbang  )
EXPORT_SYMBOL ( free_mdio_bitbang  )
void free_mdio_bitbang ( struct mii_bus bus)

Definition at line 232 of file mdio-bitbang.c.

MODULE_LICENSE ( "GPL"  )