Linux Kernel
3.7.1
|
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/ioport.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/init.h>
#include <linux/bitops.h>
#include <asm/io.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include "ni52.h"
Go to the source code of this file.
Data Structures | |
struct | priv |
Macros | |
#define | DRV_NAME "ni52" |
#define | DEBUG /* debug on */ |
#define | SYSBUSVAL 1 /* 8 Bit */ |
#define | ni_attn586() { outb(0, dev->base_addr + NI52_ATTENTION); } |
#define | ni_reset586() { outb(0, dev->base_addr + NI52_RESET); } |
#define | ni_disint() { outb(0, dev->base_addr + NI52_INTDIS); } |
#define | ni_enaint() { outb(0, dev->base_addr + NI52_INTENA); } |
#define | make32(ptr16) ((void __iomem *)(p->memtop + (short) (ptr16))) |
#define | make24(ptr32) ((char __iomem *)(ptr32)) - p->base |
#define | make16(ptr32) |
#define | RECV_BUFF_SIZE 1524 /* slightly oversized */ |
#define | XMIT_BUFF_SIZE 1524 /* slightly oversized */ |
#define | NUM_XMIT_BUFFS 1 /* config for both, 8K and 16K shmem */ |
#define | NUM_RECV_BUFFS_8 4 /* config for 8K shared mem */ |
#define | NUM_RECV_BUFFS_16 9 /* config for 16K shared mem */ |
#define | NO_NOPCOMMANDS /* only possible with NUM_XMIT_BUFFS=1 */ |
#define | NI52_TOTAL_SIZE 16 |
#define | NI52_ADDR0 0x02 |
#define | NI52_ADDR1 0x07 |
#define | NI52_ADDR2 0x01 |
Functions | |
struct net_device *__init | ni52_probe (int unit) |
MODULE_LICENSE ("GPL") | |
#define make16 | ( | ptr32 | ) |
#define ni_attn586 | ( | ) | { outb(0, dev->base_addr + NI52_ATTENTION); } |
#define ni_disint | ( | ) | { outb(0, dev->base_addr + NI52_INTDIS); } |
#define ni_enaint | ( | ) | { outb(0, dev->base_addr + NI52_INTENA); } |
#define ni_reset586 | ( | ) | { outb(0, dev->base_addr + NI52_RESET); } |
#define NO_NOPCOMMANDS /* only possible with NUM_XMIT_BUFFS=1 */ |
MODULE_LICENSE | ( | "GPL" | ) |