#include <linux/mii.h>
#include <linux/netdevice.h>
#include <linux/types.h>
#include <linux/list.h>
#include <linux/phy.h>
#include <linux/dma-mapping.h>
#include <linux/fs_enet_pd.h>
#include <asm/fs_pd.h>
Go to the source code of this file.
|
#define | MAX_MTU 1508 /* Allow fullsized pppoe packets over VLAN */ |
|
#define | MIN_MTU 46 /* this is data size */ |
|
#define | CRC_LEN 4 |
|
#define | PKT_MAXBUF_SIZE (MAX_MTU+ETH_HLEN+CRC_LEN) |
|
#define | PKT_MINBUF_SIZE (MIN_MTU+ETH_HLEN+CRC_LEN) |
|
#define | PKT_MAXBLR_SIZE ((PKT_MAXBUF_SIZE + 31) & ~31) |
|
#define | ENET_RX_ALIGN 16 |
|
#define | ENET_RX_FRSIZE L1_CACHE_ALIGN(PKT_MAXBUF_SIZE + ENET_RX_ALIGN - 1) |
|
#define | DRV_MODULE_NAME "fs_enet" |
|
#define | PFX DRV_MODULE_NAME ": " |
|
#define | DRV_MODULE_VERSION "1.0" |
|
#define | DRV_MODULE_RELDATE "Aug 8, 2005" |
|
#define | __cbd_out32(addr, x) out_be32(addr, x) |
|
#define | __cbd_out16(addr, x) out_be16(addr, x) |
|
#define | __cbd_in32(addr) in_be32(addr) |
|
#define | __cbd_in16(addr) in_be16(addr) |
|
#define | CBDW_SC(_cbd, _sc) __cbd_out16(&(_cbd)->cbd_sc, (_sc)) |
|
#define | CBDW_DATLEN(_cbd, _datlen) __cbd_out16(&(_cbd)->cbd_datlen, (_datlen)) |
|
#define | CBDW_BUFADDR(_cbd, _bufaddr) __cbd_out32(&(_cbd)->cbd_bufaddr, (_bufaddr)) |
|
#define | CBDR_SC(_cbd) __cbd_in16(&(_cbd)->cbd_sc) |
|
#define | CBDR_DATLEN(_cbd) __cbd_in16(&(_cbd)->cbd_datlen) |
|
#define | CBDR_BUFADDR(_cbd) __cbd_in32(&(_cbd)->cbd_bufaddr) |
|
#define | CBDS_SC(_cbd, _sc) CBDW_SC(_cbd, CBDR_SC(_cbd) | (_sc)) |
|
#define | CBDC_SC(_cbd, _sc) CBDW_SC(_cbd, CBDR_SC(_cbd) & ~(_sc)) |
|
#define CBDR_BUFADDR |
( |
|
_cbd | ) |
__cbd_in32(&(_cbd)->cbd_bufaddr) |
#define CBDR_DATLEN |
( |
|
_cbd | ) |
__cbd_in16(&(_cbd)->cbd_datlen) |
#define CBDR_SC |
( |
|
_cbd | ) |
__cbd_in16(&(_cbd)->cbd_sc) |
#define CBDW_BUFADDR |
( |
|
_cbd, |
|
|
|
_bufaddr |
|
) |
| __cbd_out32(&(_cbd)->cbd_bufaddr, (_bufaddr)) |
#define CBDW_DATLEN |
( |
|
_cbd, |
|
|
|
_datlen |
|
) |
| __cbd_out16(&(_cbd)->cbd_datlen, (_datlen)) |
#define CBDW_SC |
( |
|
_cbd, |
|
|
|
_sc |
|
) |
| __cbd_out16(&(_cbd)->cbd_sc, (_sc)) |
#define DRV_MODULE_NAME "fs_enet" |
#define DRV_MODULE_RELDATE "Aug 8, 2005" |
#define DRV_MODULE_VERSION "1.0" |
#define MAX_MTU 1508 /* Allow fullsized pppoe packets over VLAN */ |