Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bfin_mac.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/delay.h>
#include <linux/timer.h>
#include <linux/errno.h>
#include <linux/irq.h>
#include <linux/io.h>
#include <linux/ioport.h>
#include <linux/crc32.h>
#include <linux/device.h>
#include <linux/spinlock.h>
#include <linux/mii.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ethtool.h>
#include <linux/skbuff.h>
#include <linux/platform_device.h>
#include <asm/dma.h>
#include <linux/dma-mapping.h>
#include <asm/div64.h>
#include <asm/dpmc.h>
#include <asm/blackfin.h>
#include <asm/cacheflush.h>
#include <asm/portmux.h>
#include <mach/pll.h>
#include "bfin_mac.h"

Go to the source code of this file.

Macros

#define DRV_VERSION   "1.1"
 
#define DRV_DESC   "Blackfin on-chip Ethernet MAC driver"
 
#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define bfin_mac_alloc(dma_handle, size, num)   dma_alloc_coherent(NULL, size*num, dma_handle, GFP_KERNEL)
 
#define bfin_mac_free(dma_handle, ptr, num)   dma_free_coherent(NULL, sizeof(*ptr)*num, ptr, dma_handle)
 
#define PKT_BUF_SZ   1580
 
#define MAX_TIMEOUT_CNT   500
 
#define MDC_CLK   2500000
 
#define bfin_mac_hwtstamp_is_none(cfg)   0
 
#define bfin_mac_hwtstamp_init(dev)
 
#define bfin_mac_hwtstamp_ioctl(dev, ifr, cmd)   (-EOPNOTSUPP)
 
#define bfin_rx_hwtstamp(dev, skb)
 
#define bfin_tx_hwtstamp(dev, skb)
 
#define IP_HEADER_OFF   0
 
#define RX_ERROR_MASK
 
#define bfin_mac_suspend   NULL
 
#define bfin_mac_resume   NULL
 

Functions

 MODULE_AUTHOR ("Bryan Wu, Luke Yang")
 
 MODULE_LICENSE ("GPL")
 
 MODULE_DESCRIPTION (DRV_DESC)
 
 MODULE_ALIAS ("platform:bfin_mac")
 
 module_init (bfin_mac_init)
 
 module_exit (bfin_mac_cleanup)
 

Macro Definition Documentation

#define bfin_mac_alloc (   dma_handle,
  size,
  num 
)    dma_alloc_coherent(NULL, size*num, dma_handle, GFP_KERNEL)

Definition at line 58 of file bfin_mac.c.

#define bfin_mac_free (   dma_handle,
  ptr,
  num 
)    dma_free_coherent(NULL, sizeof(*ptr)*num, ptr, dma_handle)

Definition at line 60 of file bfin_mac.c.

#define bfin_mac_hwtstamp_init (   dev)

Definition at line 944 of file bfin_mac.c.

#define bfin_mac_hwtstamp_ioctl (   dev,
  ifr,
  cmd 
)    (-EOPNOTSUPP)

Definition at line 945 of file bfin_mac.c.

#define bfin_mac_hwtstamp_is_none (   cfg)    0

Definition at line 943 of file bfin_mac.c.

#define bfin_mac_resume   NULL

Definition at line 1655 of file bfin_mac.c.

#define bfin_mac_suspend   NULL

Definition at line 1654 of file bfin_mac.c.

#define bfin_rx_hwtstamp (   dev,
  skb 
)

Definition at line 946 of file bfin_mac.c.

#define bfin_tx_hwtstamp (   dev,
  skb 
)

Definition at line 947 of file bfin_mac.c.

#define DRV_DESC   "Blackfin on-chip Ethernet MAC driver"

Definition at line 12 of file bfin_mac.c.

#define DRV_VERSION   "1.1"

Definition at line 11 of file bfin_mac.c.

#define IP_HEADER_OFF   0

Definition at line 1088 of file bfin_mac.c.

#define MAX_TIMEOUT_CNT   500

Definition at line 66 of file bfin_mac.c.

#define MDC_CLK   2500000

Definition at line 384 of file bfin_mac.c.

#define PKT_BUF_SZ   1580

Definition at line 64 of file bfin_mac.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 14 of file bfin_mac.c.

#define RX_ERROR_MASK
Value:

Definition at line 1089 of file bfin_mac.c.

Function Documentation

MODULE_ALIAS ( "platform:bfin_mac"  )
MODULE_AUTHOR ( "Bryan  Wu,
Luke Yang"   
)
MODULE_DESCRIPTION ( DRV_DESC  )
module_exit ( bfin_mac_cleanup  )
module_init ( bfin_mac_init  )
MODULE_LICENSE ( "GPL"  )