Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ni52.c File Reference
#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")
 

Macro Definition Documentation

#define DEBUG   /* debug on */

Definition at line 126 of file ni52.c.

#define DRV_NAME   "ni52"

Definition at line 124 of file ni52.c.

#define make16 (   ptr32)
Value:
((unsigned short) ((char __iomem *)(ptr32)\
- p->memtop))

Definition at line 136 of file ni52.c.

#define make24 (   ptr32)    ((char __iomem *)(ptr32)) - p->base

Definition at line 135 of file ni52.c.

#define make32 (   ptr16)    ((void __iomem *)(p->memtop + (short) (ptr16)))

Definition at line 134 of file ni52.c.

#define NI52_ADDR0   0x02

Definition at line 164 of file ni52.c.

#define NI52_ADDR1   0x07

Definition at line 165 of file ni52.c.

#define NI52_ADDR2   0x01

Definition at line 166 of file ni52.c.

#define NI52_TOTAL_SIZE   16

Definition at line 163 of file ni52.c.

#define ni_attn586 ( )    { outb(0, dev->base_addr + NI52_ATTENTION); }

Definition at line 129 of file ni52.c.

#define ni_disint ( )    { outb(0, dev->base_addr + NI52_INTDIS); }

Definition at line 131 of file ni52.c.

#define ni_enaint ( )    { outb(0, dev->base_addr + NI52_INTENA); }

Definition at line 132 of file ni52.c.

#define ni_reset586 ( )    { outb(0, dev->base_addr + NI52_RESET); }

Definition at line 130 of file ni52.c.

#define NO_NOPCOMMANDS   /* only possible with NUM_XMIT_BUFFS=1 */

Definition at line 158 of file ni52.c.

#define NUM_RECV_BUFFS_16   9 /* config for 16K shared mem */

Definition at line 157 of file ni52.c.

#define NUM_RECV_BUFFS_8   4 /* config for 8K shared mem */

Definition at line 156 of file ni52.c.

#define NUM_XMIT_BUFFS   1 /* config for both, 8K and 16K shmem */

Definition at line 155 of file ni52.c.

#define RECV_BUFF_SIZE   1524 /* slightly oversized */

Definition at line 153 of file ni52.c.

#define SYSBUSVAL   1 /* 8 Bit */

Definition at line 127 of file ni52.c.

#define XMIT_BUFF_SIZE   1524 /* slightly oversized */

Definition at line 154 of file ni52.c.

Function Documentation

MODULE_LICENSE ( "GPL"  )
struct net_device* __init ni52_probe ( int  unit)
read

Definition at line 388 of file ni52.c.