|
Linux Kernel
3.7.1
|
#include <linux/module.h>#include <linux/kernel.h>#include <linux/types.h>#include <linux/string.h>#include <linux/ptrace.h>#include <linux/errno.h>#include <linux/ioport.h>#include <linux/interrupt.h>#include <linux/init.h>#include <linux/delay.h>#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/skbuff.h>#include <linux/spinlock.h>#include <linux/mii.h>#include <linux/ethtool.h>#include <linux/bitops.h>#include <linux/fs.h>#include <linux/platform_device.h>#include <linux/phy.h>#include <linux/of_device.h>#include <linux/gfp.h>#include <asm/immap_cpm2.h>#include <asm/mpc8260.h>#include <asm/cpm2.h>#include <asm/pgtable.h>#include <asm/irq.h>#include <asm/uaccess.h>#include "fs_enet.h"Go to the source code of this file.
Macros | |
| #define | W32(_p, _m, _v) out_be32(&(_p)->_m, (_v)) |
| #define | R32(_p, _m) in_be32(&(_p)->_m) |
| #define | S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) |
| #define | C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) |
| #define | W16(_p, _m, _v) out_be16(&(_p)->_m, (_v)) |
| #define | R16(_p, _m) in_be16(&(_p)->_m) |
| #define | S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) |
| #define | C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) |
| #define | W8(_p, _m, _v) out_8(&(_p)->_m, (_v)) |
| #define | R8(_p, _m) in_8(&(_p)->_m) |
| #define | S8(_p, _m, _v) W8(_p, _m, R8(_p, _m) | (_v)) |
| #define | C8(_p, _m, _v) W8(_p, _m, R8(_p, _m) & ~(_v)) |
| #define | FCC_MAX_MULTICAST_ADDRS 64 |
| #define | mk_mii_read(REG) (0x60020000 | ((REG & 0x1f) << 18)) |
| #define | mk_mii_write(REG, VAL) (0x50020000 | ((REG & 0x1f) << 18) | (VAL & 0xffff)) |
| #define | mk_mii_end 0 |
| #define | MAX_CR_CMD_LOOPS 10000 |
| #define | FCC_NAPI_RX_EVENT_MSK (FCC_ENET_RXF | FCC_ENET_RXB) |
| #define | FCC_RX_EVENT (FCC_ENET_RXF) |
| #define | FCC_TX_EVENT (FCC_ENET_TXB) |
| #define | FCC_ERR_EVENT_MSK (FCC_ENET_TXE) |
Variables | |
| struct fs_ops | fs_fcc_ops |
| #define FCC_NAPI_RX_EVENT_MSK (FCC_ENET_RXF | FCC_ENET_RXB) |
| #define mk_mii_read | ( | REG | ) | (0x60020000 | ((REG & 0x1f) << 18)) |
1.8.2