Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
qsemi.c File Reference
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/unistd.h>
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/spinlock.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/mii.h>
#include <linux/ethtool.h>
#include <linux/phy.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/uaccess.h>

Go to the source code of this file.

Macros

#define MII_QS6612_MCR   17 /* Mode Control Register */
 
#define MII_QS6612_FTR   27 /* Factory Test Register */
 
#define MII_QS6612_MCO   28 /* Misc. Control Register */
 
#define MII_QS6612_ISR   29 /* Interrupt Source Register */
 
#define MII_QS6612_IMR   30 /* Interrupt Mask Register */
 
#define MII_QS6612_IMR_INIT   0x003a
 
#define MII_QS6612_PCR   31 /* 100BaseTx PHY Control Reg. */
 
#define QS6612_PCR_AN_COMPLETE   0x1000
 
#define QS6612_PCR_RLBEN   0x0200
 
#define QS6612_PCR_DCREN   0x0100
 
#define QS6612_PCR_4B5BEN   0x0040
 
#define QS6612_PCR_TX_ISOLATE   0x0020
 
#define QS6612_PCR_MLT3_DIS   0x0002
 
#define QS6612_PCR_SCRM_DESCRM   0x0001
 

Functions

 MODULE_DESCRIPTION ("Quality Semiconductor PHY driver")
 
 MODULE_AUTHOR ("Andy Fleming")
 
 MODULE_LICENSE ("GPL")
 
 module_init (qs6612_init)
 
 module_exit (qs6612_exit)
 
 MODULE_DEVICE_TABLE (mdio, qs6612_tbl)
 

Macro Definition Documentation

#define MII_QS6612_FTR   27 /* Factory Test Register */

Definition at line 43 of file qsemi.c.

#define MII_QS6612_IMR   30 /* Interrupt Mask Register */

Definition at line 46 of file qsemi.c.

#define MII_QS6612_IMR_INIT   0x003a

Definition at line 47 of file qsemi.c.

#define MII_QS6612_ISR   29 /* Interrupt Source Register */

Definition at line 45 of file qsemi.c.

#define MII_QS6612_MCO   28 /* Misc. Control Register */

Definition at line 44 of file qsemi.c.

#define MII_QS6612_MCR   17 /* Mode Control Register */

Definition at line 42 of file qsemi.c.

#define MII_QS6612_PCR   31 /* 100BaseTx PHY Control Reg. */

Definition at line 48 of file qsemi.c.

#define QS6612_PCR_4B5BEN   0x0040

Definition at line 53 of file qsemi.c.

#define QS6612_PCR_AN_COMPLETE   0x1000

Definition at line 50 of file qsemi.c.

#define QS6612_PCR_DCREN   0x0100

Definition at line 52 of file qsemi.c.

#define QS6612_PCR_MLT3_DIS   0x0002

Definition at line 55 of file qsemi.c.

#define QS6612_PCR_RLBEN   0x0200

Definition at line 51 of file qsemi.c.

#define QS6612_PCR_SCRM_DESCRM   0x0001

Definition at line 56 of file qsemi.c.

#define QS6612_PCR_TX_ISOLATE   0x0020

Definition at line 54 of file qsemi.c.

Function Documentation

MODULE_AUTHOR ( "Andy Fleming"  )
MODULE_DESCRIPTION ( "Quality Semiconductor PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
qs6612_tbl   
)
module_exit ( qs6612_exit  )
module_init ( qs6612_init  )
MODULE_LICENSE ( "GPL"  )