#include <linux/bug.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/timer.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <linux/err.h>
#include <linux/ethtool.h>
#include <linux/mii.h>
#include <linux/phy.h>
#include <linux/platform_device.h>
#include <linux/prefetch.h>
#include <asm/cache.h>
#include <asm/io.h>
#include <asm/processor.h>
#include <asm/sibyte/board.h>
#include <asm/sibyte/sb1250.h>
#include <asm/sibyte/sb1250_scd.h>
#include <asm/sibyte/sb1250_mac.h>
#include <asm/sibyte/sb1250_dma.h>
Go to the source code of this file.
|
enum | sbmac_speed { sbmac_speed_none = 0,
sbmac_speed_10 = SPEED_10,
sbmac_speed_100 = SPEED_100,
sbmac_speed_1000 = SPEED_1000
} |
|
enum | sbmac_duplex { sbmac_duplex_none = -1,
sbmac_duplex_half = DUPLEX_HALF,
sbmac_duplex_full = DUPLEX_FULL
} |
|
enum | sbmac_fc {
sbmac_fc_none,
sbmac_fc_disabled,
sbmac_fc_frame,
sbmac_fc_collision,
sbmac_fc_carrier
} |
|
enum | sbmac_state { sbmac_state_uninit,
sbmac_state_off,
sbmac_state_on,
sbmac_state_broken
} |
|
|
| MODULE_AUTHOR ("Mitch Lichtenberg (Broadcom Corp.)") |
|
| MODULE_DESCRIPTION ("Broadcom SiByte SOC GB Ethernet driver") |
|
| module_param (debug, int, S_IRUGO) |
|
| MODULE_PARM_DESC (debug,"Debug messages") |
|
| module_param (int_pktcnt_tx, int, S_IRUGO) |
|
| MODULE_PARM_DESC (int_pktcnt_tx,"TX packet count") |
|
| module_param (int_timeout_tx, int, S_IRUGO) |
|
| MODULE_PARM_DESC (int_timeout_tx,"TX timeout value") |
|
| module_param (int_pktcnt_rx, int, S_IRUGO) |
|
| MODULE_PARM_DESC (int_pktcnt_rx,"RX packet count") |
|
| module_param (int_timeout_rx, int, S_IRUGO) |
|
| MODULE_PARM_DESC (int_timeout_rx,"RX timeout value") |
|
| module_platform_driver (sbmac_driver) |
|
#define CONFIG_SBMAC_COALESCE |
#define ENET_PACKET_SIZE 1518 |
#define M_MAC_MDIO_DIR_OUTPUT 0 /* for clarity */ |
#define MII_COMMAND_ACK 0x02 |
#define MII_COMMAND_READ 0x02 |
#define MII_COMMAND_START 0x01 |
#define MII_COMMAND_WRITE 0x01 |
#define SBDMA_NEXTBUF |
( |
|
d, |
|
|
|
f |
|
) |
| |
Value:((((
d)->
f+1) == (
d)->sbdma_dscrtable_end) ? \
(
d)->sbdma_dscrtable : (
d)->f+1)
Definition at line 157 of file sb1250-mac.c.
#define SBMAC_MAX_RXDESCR 256 |
#define SBMAC_MAX_TXDESCR 256 |
#define TX_TIMEOUT (2*HZ) |
- Enumerator:
sbmac_duplex_none |
|
sbmac_duplex_half |
|
sbmac_duplex_full |
|
Definition at line 130 of file sb1250-mac.c.
- Enumerator:
sbmac_fc_none |
|
sbmac_fc_disabled |
|
sbmac_fc_frame |
|
sbmac_fc_collision |
|
sbmac_fc_carrier |
|
Definition at line 136 of file sb1250-mac.c.
- Enumerator:
sbmac_speed_none |
|
sbmac_speed_10 |
|
sbmac_speed_100 |
|
sbmac_speed_1000 |
|
Definition at line 123 of file sb1250-mac.c.
- Enumerator:
sbmac_state_uninit |
|
sbmac_state_off |
|
sbmac_state_on |
|
sbmac_state_broken |
|
Definition at line 144 of file sb1250-mac.c.
MODULE_AUTHOR |
( |
"Mitch Lichtenberg (Broadcom Corp.)" |
| ) |
|
MODULE_DESCRIPTION |
( |
"Broadcom SiByte SOC GB Ethernet driver" |
| ) |
|
MODULE_PARM_DESC |
( |
debug |
, |
|
|
"Debug messages" |
|
|
) |
| |
module_platform_driver |
( |
sbmac_driver |
| ) |
|