Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
dwmac_lib.c File Reference
#include <linux/io.h>
#include "common.h"
#include "dwmac_dma.h"

Go to the source code of this file.

Macros

#define DWMAC_LIB_DBG(fmt, args...)   do { } while (0)
 
#define GMAC_HI_REG_AE   0x80000000
 

Functions

void dwmac_enable_dma_transmission (void __iomem *ioaddr)
 
void dwmac_enable_dma_irq (void __iomem *ioaddr)
 
void dwmac_disable_dma_irq (void __iomem *ioaddr)
 
void dwmac_dma_start_tx (void __iomem *ioaddr)
 
void dwmac_dma_stop_tx (void __iomem *ioaddr)
 
void dwmac_dma_start_rx (void __iomem *ioaddr)
 
void dwmac_dma_stop_rx (void __iomem *ioaddr)
 
int dwmac_dma_interrupt (void __iomem *ioaddr, struct stmmac_extra_stats *x)
 
void dwmac_dma_flush_tx_fifo (void __iomem *ioaddr)
 
void stmmac_set_mac_addr (void __iomem *ioaddr, u8 addr[6], unsigned int high, unsigned int low)
 
void stmmac_set_mac (void __iomem *ioaddr, bool enable)
 
void stmmac_get_mac_addr (void __iomem *ioaddr, unsigned char *addr, unsigned int high, unsigned int low)
 

Macro Definition Documentation

#define DWMAC_LIB_DBG (   fmt,
  args... 
)    do { } while (0)

Definition at line 31 of file dwmac_lib.c.

#define GMAC_HI_REG_AE   0x80000000

Definition at line 34 of file dwmac_lib.c.

Function Documentation

void dwmac_disable_dma_irq ( void __iomem ioaddr)

Definition at line 47 of file dwmac_lib.c.

void dwmac_dma_flush_tx_fifo ( void __iomem ioaddr)

Definition at line 224 of file dwmac_lib.c.

int dwmac_dma_interrupt ( void __iomem ioaddr,
struct stmmac_extra_stats x 
)

Definition at line 150 of file dwmac_lib.c.

void dwmac_dma_start_rx ( void __iomem ioaddr)

Definition at line 66 of file dwmac_lib.c.

void dwmac_dma_start_tx ( void __iomem ioaddr)

Definition at line 52 of file dwmac_lib.c.

void dwmac_dma_stop_rx ( void __iomem ioaddr)

Definition at line 73 of file dwmac_lib.c.

void dwmac_dma_stop_tx ( void __iomem ioaddr)

Definition at line 59 of file dwmac_lib.c.

void dwmac_enable_dma_irq ( void __iomem ioaddr)

Definition at line 42 of file dwmac_lib.c.

void dwmac_enable_dma_transmission ( void __iomem ioaddr)

Definition at line 37 of file dwmac_lib.c.

void stmmac_get_mac_addr ( void __iomem ioaddr,
unsigned char addr,
unsigned int  high,
unsigned int  low 
)

Definition at line 260 of file dwmac_lib.c.

void stmmac_set_mac ( void __iomem ioaddr,
bool  enable 
)

Definition at line 248 of file dwmac_lib.c.

void stmmac_set_mac_addr ( void __iomem ioaddr,
u8  addr[6],
unsigned int  high,
unsigned int  low 
)

Definition at line 232 of file dwmac_lib.c.