Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
mac8390.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/types.h>
#include <linux/fcntl.h>
#include <linux/interrupt.h>
#include <linux/ptrace.h>
#include <linux/ioport.h>
#include <linux/nubus.h>
#include <linux/in.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/bitops.h>
#include <linux/io.h>
#include <asm/dma.h>
#include <asm/hwtest.h>
#include <asm/macints.h>
#include "lib8390.c"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define EI_SHIFT(x)   (ei_local->reg_offset[x])
 
#define ei_inb(port)   in_8(port)
 
#define ei_outb(val, port)   out_8(port, val)
 
#define ei_inb_p(port)   in_8(port)
 
#define ei_outb_p(val, port)   out_8(port, val)
 
#define WD_START_PG   0x00 /* First page of TX buffer */
 
#define CABLETRON_RX_START_PG   0x00 /* First page of RX buffer */
 
#define CABLETRON_RX_STOP_PG   0x30 /* Last page +1 of RX ring */
 
#define CABLETRON_TX_START_PG   CABLETRON_RX_STOP_PG
 
#define DAYNA_8390_BASE   0x80000
 
#define DAYNA_8390_MEM   0x00000
 
#define CABLETRON_8390_BASE   0x90000
 
#define CABLETRON_8390_MEM   0x00000
 
#define INTERLAN_8390_BASE   0xE0000
 
#define INTERLAN_8390_MEM   0xD0000
 
#define memcpy_fromio(a, b, c)   memcpy((a), (void *)(b), (c))
 
#define memcpy_toio(a, b, c)   memcpy((void *)(a), (b), (c))
 
#define memcmp_withio(a, b, c)   memcmp((a), (void *)(b), (c))
 

Enumerations

enum  mac8390_type {
  MAC8390_NONE = -1, MAC8390_APPLE, MAC8390_ASANTE, MAC8390_FARALLON,
  MAC8390_CABLETRON, MAC8390_DAYNA, MAC8390_INTERLAN, MAC8390_KINETICS
}
 
enum  mac8390_access { ACCESS_UNKNOWN = 0, ACCESS_32, ACCESS_16 }
 

Functions

int mac8390_memtest (struct net_device *dev)
 
struct net_device *__init mac8390_probe (int unit)
 

Macro Definition Documentation

#define CABLETRON_8390_BASE   0x90000

Definition at line 71 of file mac8390.c.

#define CABLETRON_8390_MEM   0x00000

Definition at line 72 of file mac8390.c.

#define CABLETRON_RX_START_PG   0x00 /* First page of RX buffer */

Definition at line 56 of file mac8390.c.

#define CABLETRON_RX_STOP_PG   0x30 /* Last page +1 of RX ring */

Definition at line 57 of file mac8390.c.

#define CABLETRON_TX_START_PG   CABLETRON_RX_STOP_PG

Definition at line 58 of file mac8390.c.

#define DAYNA_8390_BASE   0x80000

Definition at line 68 of file mac8390.c.

#define DAYNA_8390_MEM   0x00000

Definition at line 69 of file mac8390.c.

#define ei_inb (   port)    in_8(port)

Definition at line 48 of file mac8390.c.

#define ei_inb_p (   port)    in_8(port)

Definition at line 50 of file mac8390.c.

#define ei_outb (   val,
  port 
)    out_8(port, val)

Definition at line 49 of file mac8390.c.

#define ei_outb_p (   val,
  port 
)    out_8(port, val)

Definition at line 51 of file mac8390.c.

#define EI_SHIFT (   x)    (ei_local->reg_offset[x])

Definition at line 47 of file mac8390.c.

#define INTERLAN_8390_BASE   0xE0000

Definition at line 74 of file mac8390.c.

#define INTERLAN_8390_MEM   0xD0000

Definition at line 75 of file mac8390.c.

#define memcmp_withio (   a,
  b,
  c 
)    memcmp((a), (void *)(b), (c))

Definition at line 159 of file mac8390.c.

#define memcpy_fromio (   a,
  b,
  c 
)    memcpy((a), (void *)(b), (c))

Definition at line 156 of file mac8390.c.

#define memcpy_toio (   a,
  b,
  c 
)    memcpy((void *)(a), (b), (c))

Definition at line 157 of file mac8390.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 20 of file mac8390.c.

#define WD_START_PG   0x00 /* First page of TX buffer */

Definition at line 55 of file mac8390.c.

Enumeration Type Documentation

Enumerator:
ACCESS_UNKNOWN 
ACCESS_32 
ACCESS_16 

Definition at line 119 of file mac8390.c.

Enumerator:
MAC8390_NONE 
MAC8390_APPLE 
MAC8390_ASANTE 
MAC8390_FARALLON 
MAC8390_CABLETRON 
MAC8390_DAYNA 
MAC8390_INTERLAN 
MAC8390_KINETICS 

Definition at line 77 of file mac8390.c.

Function Documentation

int mac8390_memtest ( struct net_device dev)
struct net_device* __init mac8390_probe ( int  unit)
read

Definition at line 400 of file mac8390.c.