#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/string.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/in.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/inet.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <asm/io.h>
#include "de620.h"
Go to the source code of this file.
|
| module_param (bnc, int, 0) |
|
| module_param (utp, int, 0) |
|
| module_param (io, int, 0) |
|
| module_param (irq, int, 0) |
|
| module_param (clone, int, 0) |
|
| MODULE_PARM_DESC (bnc,"DE-620 set BNC medium (0-1)") |
|
| MODULE_PARM_DESC (utp,"DE-620 set UTP medium (0-1)") |
|
| MODULE_PARM_DESC (io,"DE-620 I/O base address,required") |
|
| MODULE_PARM_DESC (irq,"DE-620 IRQ number,required") |
|
| MODULE_PARM_DESC (clone,"Check also for non-D-Link DE-620 clones (0-1)") |
|
struct net_device *__init | de620_probe (int unit) |
|
| MODULE_LICENSE ("GPL") |
|
#define CHECK_OK ( 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 ) |
#define COMMAND_PORT (dev->base_addr + 2) |
#define DATA_PORT (dev->base_addr) |
#define DE620_RX_START_PAGE 12 /* 12 pages (=3k) reserved for tx */ |
#define RUNT 60 /* Too small Ethernet packet */ |
#define STATUS_PORT (dev->base_addr + 1) |
module_param |
( |
bnc |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
utp |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
io |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
irq |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
clone |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
MODULE_PARM_DESC |
( |
utp |
, |
|
|
"DE-620 set UTP medium (0-1)" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
io |
, |
|
|
"DE-620 I/O base |
address, |
|
|
required" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
irq |
, |
|
|
"DE-620 IRQ |
number, |
|
|
required" |
|
|
) |
| |
MODULE_PARM_DESC |
( |
clone |
, |
|
|
"Check also for non-D-Link DE-620 clones (0-1)" |
|
|
) |
| |