Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ether3.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/ioport.h>
#include <linux/in.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/errno.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/skbuff.h>
#include <linux/device.h>
#include <linux/init.h>
#include <linux/delay.h>
#include <linux/bitops.h>
#include <asm/ecard.h>
#include <asm/io.h>
#include "ether3.h"

Go to the source code of this file.

Macros

#define BUS_16   2
 
#define BUS_8   1
 
#define BUS_UNKNOWN   0
 
#define ether3_inb(r)   ({ unsigned int __v = readb((r)); udelay(1); __v; })
 
#define ether3_inw(r)   ({ unsigned int __v = readw((r)); udelay(1); __v; })
 
#define ether3_writebuffer(dev, data, length)   writesw(REG_BUFWIN, (data), (length) >> 1)
 
#define ether3_writeword(dev, data)   writew((data), REG_BUFWIN)
 
#define ether3_writelong(dev, data)
 
#define ether3_readbuffer(dev, data, length)   readsw(REG_BUFWIN, (data), (length) >> 1)
 
#define ether3_readword(dev)   readw(REG_BUFWIN)
 
#define ether3_readlong(dev)   readw(REG_BUFWIN) | (readw(REG_BUFWIN) << 16)
 
#define TXHDR_FLAGS   (TXHDR_TRANSMIT|TXHDR_CHAINCONTINUE|TXHDR_DATAFOLLOWS|TXHDR_ENSUCCESS)
 

Enumerations

enum  buffer_rw_t { buffer_write, buffer_read }
 

Functions

 module_init (ether3_init)
 
 module_exit (ether3_exit)
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BUS_16   2

Definition at line 86 of file ether3.c.

#define BUS_8   1

Definition at line 87 of file ether3.c.

#define BUS_UNKNOWN   0

Definition at line 88 of file ether3.c.

#define ether3_inb (   r)    ({ unsigned int __v = readb((r)); udelay(1); __v; })

Definition at line 113 of file ether3.c.

#define ether3_inw (   r)    ({ unsigned int __v = readw((r)); udelay(1); __v; })

Definition at line 114 of file ether3.c.

#define ether3_readbuffer (   dev,
  data,
  length 
)    readsw(REG_BUFWIN, (data), (length) >> 1)

Definition at line 161 of file ether3.c.

#define ether3_readlong (   dev)    readw(REG_BUFWIN) | (readw(REG_BUFWIN) << 16)

Definition at line 167 of file ether3.c.

#define ether3_readword (   dev)    readw(REG_BUFWIN)

Definition at line 164 of file ether3.c.

#define ether3_writebuffer (   dev,
  data,
  length 
)    writesw(REG_BUFWIN, (data), (length) >> 1)

Definition at line 146 of file ether3.c.

#define ether3_writelong (   dev,
  data 
)
Value:
{ \
void __iomem *reg_bufwin = REG_BUFWIN; \
writew((data), reg_bufwin); \
writew((data) >> 16, reg_bufwin); \
}

Definition at line 152 of file ether3.c.

#define ether3_writeword (   dev,
  data 
)    writew((data), REG_BUFWIN)

Definition at line 149 of file ether3.c.

Enumeration Type Documentation

Enumerator:
buffer_write 
buffer_read 

Definition at line 92 of file ether3.c.

Function Documentation

module_exit ( ether3_exit  )
module_init ( ether3_init  )
MODULE_LICENSE ( "GPL"  )