#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.
|
#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 |
|
#define bfin_mac_hwtstamp_init |
( |
|
dev | ) |
|
#define bfin_mac_hwtstamp_is_none |
( |
|
cfg | ) |
0 |
#define bfin_mac_resume NULL |
#define bfin_mac_suspend NULL |
#define bfin_rx_hwtstamp |
( |
|
dev, |
|
|
|
skb |
|
) |
| |
#define bfin_tx_hwtstamp |
( |
|
dev, |
|
|
|
skb |
|
) |
| |
#define DRV_DESC "Blackfin on-chip Ethernet MAC driver" |
#define DRV_VERSION "1.1" |
#define MAX_TIMEOUT_CNT 500 |
#define pr_fmt |
( |
|
fmt | ) |
KBUILD_MODNAME ": " fmt |
MODULE_ALIAS |
( |
"platform:bfin_mac" |
| ) |
|
MODULE_AUTHOR |
( |
"Bryan |
Wu, |
|
|
Luke Yang" |
|
|
) |
| |
module_exit |
( |
bfin_mac_cleanup |
| ) |
|
module_init |
( |
bfin_mac_init |
| ) |
|