Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hd64572.c File Reference
#include <linux/bitops.h>
#include <linux/errno.h>
#include <linux/fcntl.h>
#include <linux/hdlc.h>
#include <linux/in.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/ioport.h>
#include <linux/jiffies.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/string.h>
#include <linux/types.h>
#include <asm/io.h>
#include <asm/uaccess.h>
#include "hd64572.h"

Go to the source code of this file.

Macros

#define NAPI_WEIGHT   16
 
#define get_msci(port)   (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET)
 
#define get_dmac_rx(port)   (port->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)
 
#define get_dmac_tx(port)   (port->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)
 
#define sca_in(reg, card)   readb(card->scabase + (reg))
 
#define sca_out(value, reg, card)   writeb(value, card->scabase + (reg))
 
#define sca_inw(reg, card)   readw(card->scabase + (reg))
 
#define sca_outw(value, reg, card)   writew(value, card->scabase + (reg))
 
#define sca_inl(reg, card)   readl(card->scabase + (reg))
 
#define sca_outl(value, reg, card)   writel(value, card->scabase + (reg))
 

Macro Definition Documentation

#define get_dmac_rx (   port)    (port->chan ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)

Definition at line 49 of file hd64572.c.

#define get_dmac_tx (   port)    (port->chan ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)

Definition at line 50 of file hd64572.c.

#define get_msci (   port)    (port->chan ? MSCI1_OFFSET : MSCI0_OFFSET)

Definition at line 48 of file hd64572.c.

#define NAPI_WEIGHT   16

Definition at line 46 of file hd64572.c.

#define sca_in (   reg,
  card 
)    readb(card->scabase + (reg))

Definition at line 52 of file hd64572.c.

#define sca_inl (   reg,
  card 
)    readl(card->scabase + (reg))

Definition at line 56 of file hd64572.c.

#define sca_inw (   reg,
  card 
)    readw(card->scabase + (reg))

Definition at line 54 of file hd64572.c.

#define sca_out (   value,
  reg,
  card 
)    writeb(value, card->scabase + (reg))

Definition at line 53 of file hd64572.c.

#define sca_outl (   value,
  reg,
  card 
)    writel(value, card->scabase + (reg))

Definition at line 57 of file hd64572.c.

#define sca_outw (   value,
  reg,
  card 
)    writew(value, card->scabase + (reg))

Definition at line 55 of file hd64572.c.