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

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DEBUG
 
#define DP83865_PHY_ID   0x20005c7a
 
#define DP83865_INT_STATUS   0x14
 
#define DP83865_INT_MASK   0x15
 
#define DP83865_INT_CLEAR   0x17
 
#define DP83865_INT_REMOTE_FAULT   0x0008
 
#define DP83865_INT_ANE_COMPLETED   0x0010
 
#define DP83865_INT_LINK_CHANGE   0xe000
 
#define DP83865_INT_MASK_DEFAULT
 
#define NS_EXP_MEM_CTL   0x16
 
#define NS_EXP_MEM_DATA   0x1d
 
#define NS_EXP_MEM_ADD   0x1e
 
#define LED_CTRL_REG   0x13
 
#define AN_FALLBACK_AN   0x0001
 
#define AN_FALLBACK_CRC   0x0002
 
#define AN_FALLBACK_IE   0x0004
 
#define ALL_FALLBACK_ON   (AN_FALLBACK_AN | AN_FALLBACK_CRC | AN_FALLBACK_IE)
 

Enumerations

enum  hdx_loopback { hdx_loopback_on = 0, hdx_loopback_off = 1 }
 

Functions

 MODULE_DESCRIPTION ("NatSemi PHY driver")
 
 MODULE_AUTHOR ("Stuart Menefy")
 
 MODULE_LICENSE ("GPL")
 
 module_init (ns_init)
 
 module_exit (ns_exit)
 
 MODULE_DEVICE_TABLE (mdio, ns_tbl)
 

Macro Definition Documentation

#define ALL_FALLBACK_ON   (AN_FALLBACK_AN | AN_FALLBACK_CRC | AN_FALLBACK_IE)

Definition at line 52 of file national.c.

#define AN_FALLBACK_AN   0x0001

Definition at line 49 of file national.c.

#define AN_FALLBACK_CRC   0x0002

Definition at line 50 of file national.c.

#define AN_FALLBACK_IE   0x0004

Definition at line 51 of file national.c.

#define DEBUG

Definition at line 27 of file national.c.

#define DP83865_INT_ANE_COMPLETED   0x0010

Definition at line 37 of file national.c.

#define DP83865_INT_CLEAR   0x17

Definition at line 34 of file national.c.

#define DP83865_INT_LINK_CHANGE   0xe000

Definition at line 38 of file national.c.

#define DP83865_INT_MASK   0x15

Definition at line 33 of file national.c.

#define DP83865_INT_MASK_DEFAULT
Value:
DP83865_INT_ANE_COMPLETED | \
DP83865_INT_LINK_CHANGE)

Definition at line 39 of file national.c.

#define DP83865_INT_REMOTE_FAULT   0x0008

Definition at line 36 of file national.c.

#define DP83865_INT_STATUS   0x14

Definition at line 32 of file national.c.

#define DP83865_PHY_ID   0x20005c7a

Definition at line 30 of file national.c.

#define LED_CTRL_REG   0x13

Definition at line 48 of file national.c.

#define NS_EXP_MEM_ADD   0x1e

Definition at line 46 of file national.c.

#define NS_EXP_MEM_CTL   0x16

Definition at line 44 of file national.c.

#define NS_EXP_MEM_DATA   0x1d

Definition at line 45 of file national.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 18 of file national.c.

Enumeration Type Documentation

Enumerator:
hdx_loopback_on 
hdx_loopback_off 

Definition at line 54 of file national.c.

Function Documentation

MODULE_AUTHOR ( "Stuart Menefy"  )
MODULE_DESCRIPTION ( "NatSemi PHY driver )
MODULE_DEVICE_TABLE ( mdio  ,
ns_tbl   
)
module_exit ( ns_exit  )
module_init ( ns_init  )
MODULE_LICENSE ( "GPL"  )