Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
et1011c.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 <linux/io.h>
#include <linux/uaccess.h>
#include <asm/irq.h>

Go to the source code of this file.

Macros

#define ET1011C_STATUS_REG   (0x1A)
 
#define ET1011C_CONFIG_REG   (0x16)
 
#define ET1011C_SPEED_MASK   (0x0300)
 
#define ET1011C_GIGABIT_SPEED   (0x0200)
 
#define ET1011C_TX_FIFO_MASK   (0x3000)
 
#define ET1011C_TX_FIFO_DEPTH_8   (0x0000)
 
#define ET1011C_TX_FIFO_DEPTH_16   (0x1000)
 
#define ET1011C_INTERFACE_MASK   (0x0007)
 
#define ET1011C_GMII_INTERFACE   (0x0002)
 
#define ET1011C_SYS_CLK_EN   (0x01 << 4)
 

Functions

 MODULE_DESCRIPTION ("LSI ET1011C PHY driver")
 
 MODULE_AUTHOR ("Chaithrika U S")
 
 MODULE_LICENSE ("GPL")
 
 module_init (et1011c_init)
 
 module_exit (et1011c_exit)
 
 MODULE_DEVICE_TABLE (mdio, et1011c_tbl)
 

Macro Definition Documentation

#define ET1011C_CONFIG_REG   (0x16)

Definition at line 37 of file et1011c.c.

#define ET1011C_GIGABIT_SPEED   (0x0200)

Definition at line 39 of file et1011c.c.

#define ET1011C_GMII_INTERFACE   (0x0002)

Definition at line 44 of file et1011c.c.

#define ET1011C_INTERFACE_MASK   (0x0007)

Definition at line 43 of file et1011c.c.

#define ET1011C_SPEED_MASK   (0x0300)

Definition at line 38 of file et1011c.c.

#define ET1011C_STATUS_REG   (0x1A)

Definition at line 36 of file et1011c.c.

#define ET1011C_SYS_CLK_EN   (0x01 << 4)

Definition at line 45 of file et1011c.c.

#define ET1011C_TX_FIFO_DEPTH_16   (0x1000)

Definition at line 42 of file et1011c.c.

#define ET1011C_TX_FIFO_DEPTH_8   (0x0000)

Definition at line 41 of file et1011c.c.

#define ET1011C_TX_FIFO_MASK   (0x3000)

Definition at line 40 of file et1011c.c.

Function Documentation

MODULE_AUTHOR ( "Chaithrika U S )
MODULE_DESCRIPTION ( "LSI ET1011C PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
et1011c_tbl   
)
module_exit ( et1011c_exit  )
module_init ( et1011c_init  )
MODULE_LICENSE ( "GPL"  )