Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cycx_drv.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/stddef.h>
#include <linux/errno.h>
#include <linux/cycx_drv.h>
#include <linux/cycx_cfm.h>
#include <linux/delay.h>
#include <asm/io.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MOD_VERSION   0
 
#define MOD_RELEASE   6
 
#define wait_cyc(addr)   cycx_exec(addr + CMD_OFFSET)
 

Functions

 MODULE_AUTHOR ("Arnaldo Carvalho de Melo")
 
 MODULE_DESCRIPTION ("Cyclom 2x Sync Card Driver")
 
 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL (cycx_setup)
 
int cycx_setup (struct cycx_hw *hw, void *cfm, u32 len, unsigned long dpmbase)
 
 EXPORT_SYMBOL (cycx_down)
 
int cycx_down (struct cycx_hw *hw)
 
 EXPORT_SYMBOL (cycx_intr)
 
void cycx_intr (struct cycx_hw *hw)
 
 EXPORT_SYMBOL (cycx_exec)
 
int cycx_exec (void __iomem *addr)
 
 EXPORT_SYMBOL (cycx_peek)
 
int cycx_peek (struct cycx_hw *hw, u32 addr, void *buf, u32 len)
 
 EXPORT_SYMBOL (cycx_poke)
 
int cycx_poke (struct cycx_hw *hw, u32 addr, void *buf, u32 len)
 
 module_init (cycx_drv_init)
 
 module_exit (cycx_drv_cleanup)
 

Macro Definition Documentation

#define MOD_RELEASE   6

Definition at line 64 of file cycx_drv.c.

#define MOD_VERSION   0

Definition at line 63 of file cycx_drv.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 51 of file cycx_drv.c.

#define wait_cyc (   addr)    cycx_exec(addr + CMD_OFFSET)

Definition at line 81 of file cycx_drv.c.

Function Documentation

int cycx_down ( struct cycx_hw hw)

Definition at line 177 of file cycx_drv.c.

int cycx_exec ( void __iomem addr)

Definition at line 200 of file cycx_drv.c.

void cycx_intr ( struct cycx_hw hw)

Definition at line 191 of file cycx_drv.c.

int cycx_peek ( struct cycx_hw hw,
u32  addr,
void buf,
u32  len 
)

Definition at line 218 of file cycx_drv.c.

int cycx_poke ( struct cycx_hw hw,
u32  addr,
void buf,
u32  len 
)

Definition at line 231 of file cycx_drv.c.

int cycx_setup ( struct cycx_hw hw,
void cfm,
u32  len,
unsigned long  dpmbase 
)

Definition at line 137 of file cycx_drv.c.

EXPORT_SYMBOL ( cycx_setup  )
EXPORT_SYMBOL ( cycx_down  )
EXPORT_SYMBOL ( cycx_intr  )
EXPORT_SYMBOL ( cycx_exec  )
EXPORT_SYMBOL ( cycx_peek  )
EXPORT_SYMBOL ( cycx_poke  )
MODULE_AUTHOR ( "Arnaldo Carvalho de Melo"  )
MODULE_DESCRIPTION ( "Cyclom 2x Sync Card Driver"  )
module_exit ( cycx_drv_cleanup  )
module_init ( cycx_drv_init  )
MODULE_LICENSE ( "GPL"  )