|
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/of_platform.h>#include <asm/irq.h>#include <asm/uaccess.h>#include "fs_enet.h"Go to the source code of this file.
Macros | |
| #define | __fs_out32(addr, x) out_be32(addr, x) |
| #define | __fs_out16(addr, x) out_be16(addr, x) |
| #define | __fs_in32(addr) in_be32(addr) |
| #define | __fs_in16(addr) in_be16(addr) |
| #define | __fs_out8(addr, x) out_8(addr, x) |
| #define | __fs_in8(addr) in_8(addr) |
| #define | W32(_p, _m, _v) __fs_out32(&(_p)->_m, (_v)) |
| #define | R32(_p, _m) __fs_in32(&(_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) __fs_out16(&(_p)->_m, (_v)) |
| #define | R16(_p, _m) __fs_in16(&(_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) __fs_out8(&(_p)->_m, (_v)) |
| #define | R8(_p, _m) __fs_in8(&(_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 | SCC_MAX_MULTICAST_ADDRS 64 |
| #define | SCC_RESET_DELAY 50 |
| #define | SCC_NAPI_RX_EVENT_MSK (SCCE_ENET_RXF | SCCE_ENET_RXB) |
| #define | SCC_RX_EVENT (SCCE_ENET_RXF) |
| #define | SCC_TX_EVENT (SCCE_ENET_TXB) |
| #define | SCC_ERR_EVENT_MSK (SCCE_ENET_TXE | SCCE_ENET_BSY) |
Variables | |
| struct fs_ops | fs_scc_ops |
| #define SCC_ERR_EVENT_MSK (SCCE_ENET_TXE | SCCE_ENET_BSY) |
| #define SCC_NAPI_RX_EVENT_MSK (SCCE_ENET_RXF | SCCE_ENET_RXB) |
| #define SCC_RX_EVENT (SCCE_ENET_RXF) |
| #define SCC_TX_EVENT (SCCE_ENET_TXB) |
| #define W16 | ( | _p, | |
| _m, | |||
| _v | |||
| ) | __fs_out16(&(_p)->_m, (_v)) |
| #define W32 | ( | _p, | |
| _m, | |||
| _v | |||
| ) | __fs_out32(&(_p)->_m, (_v)) |
1.8.2