Logo Search packages:      
Sourcecode: linux version File versions

sdma_malloc.c File Reference


Detailed Description

This file contains functions for SDMA non-cacheable buffers allocation.

SDMA (Smart DMA) is used for transferring data between MCU and peripherals

Definition in file sdma_malloc.c.

#include <linux/init.h>
#include <linux/types.h>
#include <linux/mm.h>
#include <asm/dma.h>
#include <asm/mach/dma.h>
#include <mach/hardware.h>
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/dmapool.h>

Go to the source code of this file.

Classes

struct  virt_phys_struct

Defines

#define DEBUG   0
#define DPRINTK(fmt, args...)
#define SDMA_POOL_SIZE   1024

Functions

static int add_entry (virt_phys_struct *vf)
static int delete_entry (void *buf)
void __init init_sdma_pool (void)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("MXC Linux SDMA API")
 MODULE_LICENSE ("GPL")
void sdma_free (void *buf)
void * sdma_malloc (size_t size)
void * sdma_phys_to_virt (unsigned long buf)
unsigned long sdma_virt_to_phys (void *buf)

Variables

static struct list_head buf_map
static struct dma_pool * pool


Generated by  Doxygen 1.6.0   Back to index