Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
meth.c File Reference
#include <linux/delay.h>
#include <linux/dma-mapping.h>
#include <linux/init.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/interrupt.h>
#include <linux/in.h>
#include <linux/in6.h>
#include <linux/device.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/skbuff.h>
#include <linux/mii.h>
#include <linux/crc32.h>
#include <asm/ip32/mace.h>
#include <asm/ip32/ip32_ints.h>
#include <asm/io.h>
#include "meth.h"

Go to the source code of this file.

Data Structures

struct  meth_private
 

Macros

#define MFE_DEBUG   0
 
#define DPRINTK(str, args...)
 
#define MFE_RX_DEBUG   0
 
#define TX_TIMEOUT   (400*HZ/1000)
 
#define METH_MCF_LIMIT   32
 
#define WAIT_FOR_PHY(___rval)
 
#define TX_CATBUF1   BIT(25)
 
#define TX_CATBUF2   BIT(26)
 

Functions

 module_param (timeout, int, 0)
 
int meth_reset (struct net_device *dev)
 
 module_platform_driver (meth_driver)
 
 MODULE_AUTHOR ("Ilya Volynets <[email protected]>")
 
 MODULE_DESCRIPTION ("SGI O2 Builtin Fast Ethernet driver")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_ALIAS ("platform:meth")
 

Variables

char o2meth_eaddr [8] ={0,0,0,0,0,0,0,0}
 

Macro Definition Documentation

#define DPRINTK (   str,
  args... 
)

Definition at line 48 of file meth.c.

#define METH_MCF_LIMIT   32

Definition at line 65 of file meth.c.

#define MFE_DEBUG   0

Definition at line 41 of file meth.c.

#define MFE_RX_DEBUG   0

Definition at line 49 of file meth.c.

#define TX_CATBUF1   BIT(25)

Definition at line 621 of file meth.c.

#define TX_CATBUF2   BIT(26)

Definition at line 646 of file meth.c.

#define TX_TIMEOUT   (400*HZ/1000)

Definition at line 56 of file meth.c.

#define WAIT_FOR_PHY (   ___rval)
Value:
while ((___rval = mace->eth.phy_data) & MDIO_BUSY) { \
udelay(25); \
}

Definition at line 118 of file meth.c.

Function Documentation

int meth_reset ( struct net_device dev)

Definition at line 275 of file meth.c.

MODULE_ALIAS ( "platform:meth"  )
MODULE_AUTHOR ( "Ilya Volynets <[email protected]>"  )
MODULE_DESCRIPTION ( "SGI O2 Builtin Fast Ethernet driver )
MODULE_LICENSE ( "GPL"  )
module_param ( timeout  ,
int  ,
 
)
module_platform_driver ( meth_driver  )

Variable Documentation

char o2meth_eaddr[8] ={0,0,0,0,0,0,0,0}

Definition at line 100 of file meth.c.