Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
bestcomm.c File Reference
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_device.h>
#include <linux/of_platform.h>
#include <asm/io.h>
#include <asm/irq.h>
#include <asm/mpc52xx.h>
#include "sram.h"
#include "bestcomm_priv.h"
#include "bestcomm.h"

Go to the source code of this file.

Macros

#define DRIVER_NAME   "bestcomm-core"
 

Functions

 EXPORT_SYMBOL_GPL (bcom_eng)
 
struct bcom_taskbcom_task_alloc (int bd_count, int bd_size, int priv_size)
 
 EXPORT_SYMBOL_GPL (bcom_task_alloc)
 
void bcom_task_free (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_task_free)
 
int bcom_load_image (int task, u32 *task_image)
 
 EXPORT_SYMBOL_GPL (bcom_load_image)
 
void bcom_set_initiator (int task, int initiator)
 
 EXPORT_SYMBOL_GPL (bcom_set_initiator)
 
void bcom_enable (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_enable)
 
void bcom_disable (struct bcom_task *tsk)
 
 EXPORT_SYMBOL_GPL (bcom_disable)
 
 MODULE_DEVICE_TABLE (of, mpc52xx_bcom_of_match)
 
 subsys_initcall (mpc52xx_bcom_init)
 
 module_exit (mpc52xx_bcom_exit)
 
 MODULE_DESCRIPTION ("Freescale MPC52xx BestComm DMA")
 
 MODULE_AUTHOR ("Sylvain Munaut <tnt@246tNt.com>")
 
 MODULE_AUTHOR ("Andrey Volkov <[email protected]>")
 
 MODULE_AUTHOR ("Dale Farnsworth <[email protected]>")
 
 MODULE_LICENSE ("GPL v2")
 

Variables

struct bcom_enginebcom_eng = NULL
 

Macro Definition Documentation

#define DRIVER_NAME   "bestcomm-core"

Definition at line 30 of file bestcomm.c.

Function Documentation

void bcom_disable ( struct bcom_task tsk)

bcom_disable - Disable a BestComm task : The BestComm task structure

This function disable a given task, making sure it's not executed by the BestComm engine.

Definition at line 243 of file bestcomm.c.

void bcom_enable ( struct bcom_task tsk)

bcom_enable - Enable a BestComm task : The BestComm task structure

This function makes sure the given task is enabled and can be run by the BestComm engine as needed

Definition at line 236 of file bestcomm.c.

int bcom_load_image ( int  task,
u32 task_image 
)

Definition at line 139 of file bestcomm.c.

void bcom_set_initiator ( int  task,
int  initiator 
)

Definition at line 204 of file bestcomm.c.

struct bcom_task* bcom_task_alloc ( int  bd_count,
int  bd_size,
int  priv_size 
)
read

Definition at line 50 of file bestcomm.c.

void bcom_task_free ( struct bcom_task tsk)

Definition at line 121 of file bestcomm.c.

EXPORT_SYMBOL_GPL ( bcom_eng  )
EXPORT_SYMBOL_GPL ( bcom_task_alloc  )
EXPORT_SYMBOL_GPL ( bcom_task_free  )
EXPORT_SYMBOL_GPL ( bcom_load_image  )
EXPORT_SYMBOL_GPL ( bcom_set_initiator  )
EXPORT_SYMBOL_GPL ( bcom_enable  )
EXPORT_SYMBOL_GPL ( bcom_disable  )
MODULE_AUTHOR ( "Sylvain Munaut <tnt@246tNt.com>"  )
MODULE_AUTHOR ( "Andrey Volkov <[email protected]>"  )
MODULE_AUTHOR ( "Dale Farnsworth <[email protected]>"  )
MODULE_DESCRIPTION ( "Freescale MPC52xx BestComm DMA )
MODULE_DEVICE_TABLE ( of  ,
mpc52xx_bcom_of_match   
)
module_exit ( mpc52xx_bcom_exit  )
MODULE_LICENSE ( "GPL v2 )
subsys_initcall ( mpc52xx_bcom_init  )

Variable Documentation

struct bcom_engine* bcom_eng = NULL

Definition at line 40 of file bestcomm.c.