Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
micrel.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/phy.h>
#include <linux/micrel_phy.h>

Go to the source code of this file.

Macros

#define MII_KSZPHY_OMSO   0x16
 
#define KSZPHY_OMSO_B_CAST_OFF   (1 << 9)
 
#define KSZPHY_OMSO_RMII_OVERRIDE   (1 << 1)
 
#define KSZPHY_OMSO_MII_OVERRIDE   (1 << 0)
 
#define MII_KSZPHY_INTCS   0x1B
 
#define KSZPHY_INTCS_JABBER   (1 << 15)
 
#define KSZPHY_INTCS_RECEIVE_ERR   (1 << 14)
 
#define KSZPHY_INTCS_PAGE_RECEIVE   (1 << 13)
 
#define KSZPHY_INTCS_PARELLEL   (1 << 12)
 
#define KSZPHY_INTCS_LINK_PARTNER_ACK   (1 << 11)
 
#define KSZPHY_INTCS_LINK_DOWN   (1 << 10)
 
#define KSZPHY_INTCS_REMOTE_FAULT   (1 << 9)
 
#define KSZPHY_INTCS_LINK_UP   (1 << 8)
 
#define KSZPHY_INTCS_ALL
 
#define MII_KSZPHY_CTRL   0x1F
 
#define KSZPHY_CTRL_INT_ACTIVE_HIGH   (1 << 9)
 
#define KSZ9021_CTRL_INT_ACTIVE_HIGH   (1 << 14)
 
#define KS8737_CTRL_INT_ACTIVE_HIGH   (1 << 14)
 
#define KSZ8051_RMII_50MHZ_CLK   (1 << 7)
 

Functions

 module_init (ksphy_init)
 
 module_exit (ksphy_exit)
 
 MODULE_DESCRIPTION ("Micrel PHY driver")
 
 MODULE_AUTHOR ("David J. Choi")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (mdio, micrel_tbl)
 

Macro Definition Documentation

#define KS8737_CTRL_INT_ACTIVE_HIGH   (1 << 14)

Definition at line 48 of file micrel.c.

#define KSZ8051_RMII_50MHZ_CLK   (1 << 7)

Definition at line 49 of file micrel.c.

#define KSZ9021_CTRL_INT_ACTIVE_HIGH   (1 << 14)

Definition at line 47 of file micrel.c.

#define KSZPHY_CTRL_INT_ACTIVE_HIGH   (1 << 9)

Definition at line 46 of file micrel.c.

#define KSZPHY_INTCS_ALL
Value:
KSZPHY_INTCS_LINK_DOWN)

Definition at line 40 of file micrel.c.

#define KSZPHY_INTCS_JABBER   (1 << 15)

Definition at line 32 of file micrel.c.

#define KSZPHY_INTCS_LINK_DOWN   (1 << 10)

Definition at line 37 of file micrel.c.

#define KSZPHY_INTCS_LINK_PARTNER_ACK   (1 << 11)

Definition at line 36 of file micrel.c.

#define KSZPHY_INTCS_LINK_UP   (1 << 8)

Definition at line 39 of file micrel.c.

#define KSZPHY_INTCS_PAGE_RECEIVE   (1 << 13)

Definition at line 34 of file micrel.c.

#define KSZPHY_INTCS_PARELLEL   (1 << 12)

Definition at line 35 of file micrel.c.

#define KSZPHY_INTCS_RECEIVE_ERR   (1 << 14)

Definition at line 33 of file micrel.c.

#define KSZPHY_INTCS_REMOTE_FAULT   (1 << 9)

Definition at line 38 of file micrel.c.

#define KSZPHY_OMSO_B_CAST_OFF   (1 << 9)

Definition at line 26 of file micrel.c.

#define KSZPHY_OMSO_MII_OVERRIDE   (1 << 0)

Definition at line 28 of file micrel.c.

#define KSZPHY_OMSO_RMII_OVERRIDE   (1 << 1)

Definition at line 27 of file micrel.c.

#define MII_KSZPHY_CTRL   0x1F

Definition at line 44 of file micrel.c.

#define MII_KSZPHY_INTCS   0x1B

Definition at line 31 of file micrel.c.

#define MII_KSZPHY_OMSO   0x16

Definition at line 25 of file micrel.c.

Function Documentation

MODULE_AUTHOR ( "David J. Choi"  )
MODULE_DESCRIPTION ( "Micrel PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
micrel_tbl   
)
module_exit ( ksphy_exit  )
module_init ( ksphy_init  )
MODULE_LICENSE ( "GPL"  )