Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros
hd64570.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 "hd64570.h"

Go to the source code of this file.

Macros

#define get_msci(port)   (phy_node(port) ? MSCI1_OFFSET : MSCI0_OFFSET)
 
#define get_dmac_rx(port)   (phy_node(port) ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)
 
#define get_dmac_tx(port)   (phy_node(port) ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)
 
#define SCA_INTR_MSCI(node)   (node ? 0x10 : 0x01)
 
#define SCA_INTR_DMAC_RX(node)   (node ? 0x20 : 0x02)
 
#define SCA_INTR_DMAC_TX(node)   (node ? 0x40 : 0x04)
 

Macro Definition Documentation

#define get_dmac_rx (   port)    (phy_node(port) ? DMAC1RX_OFFSET : DMAC0RX_OFFSET)

Definition at line 47 of file hd64570.c.

#define get_dmac_tx (   port)    (phy_node(port) ? DMAC1TX_OFFSET : DMAC0TX_OFFSET)

Definition at line 48 of file hd64570.c.

#define get_msci (   port)    (phy_node(port) ? MSCI1_OFFSET : MSCI0_OFFSET)

Definition at line 46 of file hd64570.c.

#define SCA_INTR_DMAC_RX (   node)    (node ? 0x20 : 0x02)

Definition at line 51 of file hd64570.c.

#define SCA_INTR_DMAC_TX (   node)    (node ? 0x40 : 0x04)

Definition at line 52 of file hd64570.c.

#define SCA_INTR_MSCI (   node)    (node ? 0x10 : 0x01)

Definition at line 50 of file hd64570.c.