Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
core.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/delay.h>
#include <linux/types.h>
#include <linux/pci.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/crc32.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/bitops.h>
#include <linux/workqueue.h>
#include <linux/of.h>
#include <linux/of_net.h>
#include <linux/slab.h>
#include <asm/processor.h>
#include <asm/io.h>
#include <asm/dma.h>
#include <asm/uaccess.h>
#include <asm/dcr.h>
#include <asm/dcr-regs.h>
#include "core.h"

Go to the source code of this file.

Data Structures

struct  emac_depentry
 

Macros

#define DRV_NAME   "emac"
 
#define DRV_VERSION   "3.54"
 
#define DRV_DESC   "PPC 4xx OCP EMAC driver"
 
#define EMAC_TX_WAKEUP_THRESH   (NUM_TX_BUFF / 4)
 
#define EMAC_RX_COPY_THRESH   CONFIG_IBM_EMAC_RX_COPY_THRESHOLD
 
#define EMAC_BOOT_LIST_SIZE   4
 
#define EMAC_PROBE_DEP_TIMEOUT   (HZ * 5)
 
#define PHY_POLL_LINK_ON   HZ
 
#define PHY_POLL_LINK_OFF   (HZ / 5)
 
#define STOP_TIMEOUT_10   1230
 
#define STOP_TIMEOUT_100   124
 
#define STOP_TIMEOUT_1000   13
 
#define STOP_TIMEOUT_1000_JUMBO   73
 
#define EMAC_DEP_MAL_IDX   0
 
#define EMAC_DEP_ZMII_IDX   1
 
#define EMAC_DEP_RGMII_IDX   2
 
#define EMAC_DEP_TAH_IDX   3
 
#define EMAC_DEP_MDIO_IDX   4
 
#define EMAC_DEP_PREV_IDX   5
 
#define EMAC_DEP_COUNT   6
 

Functions

 MODULE_DESCRIPTION (DRV_DESC)
 
 MODULE_AUTHOR ("Eugene Surovegin <[email protected]> or <[email protected]>")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DEVICE_TABLE (of, emac_match)
 
 module_init (emac_init)
 
 module_exit (emac_exit)
 

Macro Definition Documentation

#define DRV_DESC   "PPC 4xx OCP EMAC driver"

Definition at line 73 of file core.c.

#define DRV_NAME   "emac"

Definition at line 71 of file core.c.

#define DRV_VERSION   "3.54"

Definition at line 72 of file core.c.

#define EMAC_BOOT_LIST_SIZE   4

Definition at line 123 of file core.c.

#define EMAC_DEP_COUNT   6

Definition at line 2262 of file core.c.

#define EMAC_DEP_MAL_IDX   0

Definition at line 2256 of file core.c.

#define EMAC_DEP_MDIO_IDX   4

Definition at line 2260 of file core.c.

#define EMAC_DEP_PREV_IDX   5

Definition at line 2261 of file core.c.

#define EMAC_DEP_RGMII_IDX   2

Definition at line 2258 of file core.c.

#define EMAC_DEP_TAH_IDX   3

Definition at line 2259 of file core.c.

#define EMAC_DEP_ZMII_IDX   1

Definition at line 2257 of file core.c.

#define EMAC_PROBE_DEP_TIMEOUT   (HZ * 5)

Definition at line 127 of file core.c.

#define EMAC_RX_COPY_THRESH   CONFIG_IBM_EMAC_RX_COPY_THRESHOLD

Definition at line 93 of file core.c.

#define EMAC_TX_WAKEUP_THRESH   (NUM_TX_BUFF / 4)

Definition at line 88 of file core.c.

#define PHY_POLL_LINK_OFF   (HZ / 5)

Definition at line 168 of file core.c.

#define PHY_POLL_LINK_ON   HZ

Definition at line 167 of file core.c.

#define STOP_TIMEOUT_10   1230

Definition at line 173 of file core.c.

#define STOP_TIMEOUT_100   124

Definition at line 174 of file core.c.

#define STOP_TIMEOUT_1000   13

Definition at line 175 of file core.c.

#define STOP_TIMEOUT_1000_JUMBO   73

Definition at line 176 of file core.c.

Function Documentation

MODULE_AUTHOR ( "Eugene Surovegin <[email protected]> or <[email protected]>"  )
MODULE_DESCRIPTION ( DRV_DESC  )
MODULE_DEVICE_TABLE ( of  ,
emac_match   
)
module_exit ( emac_exit  )
module_init ( emac_init  )
MODULE_LICENSE ( "GPL"  )