Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions
dma.h File Reference
#include <linux/delay.h>
#include <linux/skbuff.h>
#include "types.h"

Go to the source code of this file.

Data Structures

struct  dma32diag
 
struct  dma64regs
 
struct  dma_pub
 

Macros

#define DMA_TX   1 /* TX direction for DMA */
 
#define DMA_RX   2 /* RX direction for DMA */
 

Enumerations

enum  txd_range { DMA_RANGE_ALL = 1, DMA_RANGE_TRANSMITTED, DMA_RANGE_TRANSFERED }
 

Functions

struct dma_pubdma_attach (char *name, struct si_pub *sih, struct bcma_device *d11core, uint txregbase, uint rxregbase, uint ntxd, uint nrxd, uint rxbufsize, int rxextheadroom, uint nrxpost, uint rxoffset, uint *msg_level)
 
void dma_rxinit (struct dma_pub *pub)
 
int dma_rx (struct dma_pub *pub, struct sk_buff_head *skb_list)
 
bool dma_rxfill (struct dma_pub *pub)
 
bool dma_rxreset (struct dma_pub *pub)
 
bool dma_txreset (struct dma_pub *pub)
 
void dma_txinit (struct dma_pub *pub)
 
int dma_txfast (struct dma_pub *pub, struct sk_buff *p0, bool commit)
 
void dma_txsuspend (struct dma_pub *pub)
 
bool dma_txsuspended (struct dma_pub *pub)
 
void dma_txresume (struct dma_pub *pub)
 
void dma_txreclaim (struct dma_pub *pub, enum txd_range range)
 
void dma_rxreclaim (struct dma_pub *pub)
 
void dma_detach (struct dma_pub *pub)
 
unsigned long dma_getvar (struct dma_pub *pub, const char *name)
 
struct sk_buffdma_getnexttxp (struct dma_pub *pub, enum txd_range range)
 
void dma_counterreset (struct dma_pub *pub)
 
void dma_walk_packets (struct dma_pub *dmah, void(*callback_fnc)(void *pkt, void *arg_a), void *arg_a)
 

Macro Definition Documentation

#define DMA_RX   2 /* RX direction for DMA */

Definition at line 26 of file dma.h.

#define DMA_TX   1 /* TX direction for DMA */

Definition at line 25 of file dma.h.

Enumeration Type Documentation

enum txd_range
Enumerator:
DMA_RANGE_ALL 
DMA_RANGE_TRANSMITTED 
DMA_RANGE_TRANSFERED 

Definition at line 56 of file dma.h.

Function Documentation

struct dma_pub* dma_attach ( char name,
struct si_pub sih,
struct bcma_device d11core,
uint  txregbase,
uint  rxregbase,
uint  ntxd,
uint  nrxd,
uint  rxbufsize,
int  rxextheadroom,
uint  nrxpost,
uint  rxoffset,
uint msg_level 
)
read

Definition at line 567 of file dma.c.

void dma_counterreset ( struct dma_pub pub)

Definition at line 1116 of file dma.c.

void dma_detach ( struct dma_pub pub)

Definition at line 762 of file dma.c.

struct sk_buff* dma_getnexttxp ( struct dma_pub pub,
enum txd_range  range 
)
read

Definition at line 1350 of file dma.c.

unsigned long dma_getvar ( struct dma_pub pub,
const char name 
)

Definition at line 1125 of file dma.c.

int dma_rx ( struct dma_pub pub,
struct sk_buff_head skb_list 
)

Definition at line 940 of file dma.c.

bool dma_rxfill ( struct dma_pub pub)

Definition at line 1025 of file dma.c.

void dma_rxinit ( struct dma_pub pub)

Definition at line 858 of file dma.c.

void dma_rxreclaim ( struct dma_pub pub)

Definition at line 1105 of file dma.c.

bool dma_rxreset ( struct dma_pub pub)

Definition at line 1251 of file dma.c.

int dma_txfast ( struct dma_pub pub,
struct sk_buff p0,
bool  commit 
)

Definition at line 1273 of file dma.c.

void dma_txinit ( struct dma_pub pub)

Definition at line 1136 of file dma.c.

void dma_txreclaim ( struct dma_pub pub,
enum txd_range  range 
)

Definition at line 1203 of file dma.c.

bool dma_txreset ( struct dma_pub pub)

Definition at line 1224 of file dma.c.

void dma_txresume ( struct dma_pub pub)

Definition at line 1181 of file dma.c.

void dma_txsuspend ( struct dma_pub pub)

Definition at line 1169 of file dma.c.

bool dma_txsuspended ( struct dma_pub pub)

Definition at line 1193 of file dma.c.

void dma_walk_packets ( struct dma_pub dmah,
void(*)(void *pkt, void *arg_a)  callback_fnc,
void arg_a 
)

Definition at line 1431 of file dma.c.