Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
mdio-octeon.c File Reference
#include <linux/platform_device.h>
#include <linux/of_mdio.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/gfp.h>
#include <linux/phy.h>
#include <linux/io.h>
#include <asm/octeon/octeon.h>
#include <asm/octeon/cvmx-smix-defs.h>

Go to the source code of this file.

Data Structures

struct  octeon_mdiobus
 

Macros

#define DRV_VERSION   "1.0"
 
#define DRV_DESCRIPTION   "Cavium Networks Octeon SMI/MDIO driver"
 
#define SMI_CMD   0x0
 
#define SMI_WR_DAT   0x8
 
#define SMI_RD_DAT   0x10
 
#define SMI_CLK   0x18
 
#define SMI_EN   0x20
 

Functions

 MODULE_DEVICE_TABLE (of, octeon_mdiobus_match)
 
void octeon_mdiobus_force_mod_depencency (void)
 
 EXPORT_SYMBOL (octeon_mdiobus_force_mod_depencency)
 
 module_init (octeon_mdiobus_mod_init)
 
 module_exit (octeon_mdiobus_mod_exit)
 
 MODULE_DESCRIPTION (DRV_DESCRIPTION)
 
 MODULE_VERSION (DRV_VERSION)
 
 MODULE_AUTHOR ("David Daney")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define DRV_DESCRIPTION   "Cavium Networks Octeon SMI/MDIO driver"

Definition at line 22 of file mdio-octeon.c.

#define DRV_VERSION   "1.0"

Definition at line 21 of file mdio-octeon.c.

#define SMI_CLK   0x18

Definition at line 27 of file mdio-octeon.c.

#define SMI_CMD   0x0

Definition at line 24 of file mdio-octeon.c.

#define SMI_EN   0x20

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

#define SMI_RD_DAT   0x10

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

#define SMI_WR_DAT   0x8

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

Function Documentation

MODULE_AUTHOR ( "David Daney"  )
MODULE_DESCRIPTION ( DRV_DESCRIPTION  )
MODULE_DEVICE_TABLE ( of  ,
octeon_mdiobus_match   
)
module_exit ( octeon_mdiobus_mod_exit  )
module_init ( octeon_mdiobus_mod_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_VERSION  )
void octeon_mdiobus_force_mod_depencency ( void  )

Definition at line 194 of file mdio-octeon.c.