flinkLinux
flink Linux Kernel Modules
 All Data Structures Files Functions Variables Macros Pages
flink_eim.c File Reference

iMX6 EIM (External Interface Module) communication module. More...

#include <linux/module.h>
#include <linux/cdev.h>
#include <linux/fs.h>
#include <linux/device.h>
#include <linux/uaccess.h>
#include <linux/slab.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/of_device.h>
#include <linux/of_address.h>
#include "../flink.h"
#include "../flink_debug.h"
Include dependency graph for flink_eim.c:

Data Structures

struct  flink_eim_bus_data
 

Macros

#define MOD_VERSION   "0.1.0"
 
#define DEBUG
 

Functions

 MODULE_DEVICE_TABLE (of, flink_eim_of_match)
 
 module_init (mod_init)
 
 module_exit (mod_exit)
 
 MODULE_DESCRIPTION ("flink EIM module for iMX6")
 
 MODULE_SUPPORTED_DEVICE ("flink EIM devices")
 
 MODULE_VERSION (MOD_VERSION)
 
 MODULE_LICENSE ("Dual BSD/GPL")
 
 MODULE_AUTHOR ("Adam Bajric <adam.bajric@ntb.ch>")
 

Variables

struct flink_bus_ops flink_eim_bus_ops
 

Detailed Description

iMX6 EIM (External Interface Module) communication module.

Implements read and write functions over EIM bus.

Author
Adam Bajric

Macro Definition Documentation

#define DEBUG
#define MOD_VERSION   "0.1.0"

Function Documentation

MODULE_AUTHOR ( "Adam Bajric <adam.bajric@ntb.ch>"  )
MODULE_DESCRIPTION ( "flink EIM module for iMX6"  )
MODULE_DEVICE_TABLE ( of  ,
flink_eim_of_match   
)
module_exit ( mod_exit  )
module_init ( mod_init  )
MODULE_LICENSE ( "Dual BSD/GPL"  )
MODULE_SUPPORTED_DEVICE ( "flink EIM devices"  )
MODULE_VERSION ( MOD_VERSION  )

Variable Documentation

struct flink_bus_ops flink_eim_bus_ops
Initial value:
=
{
.read8 = flink_eim_read8,
.read16 = flink_eim_read16,
.read32 = flink_eim_read32,
.write8 = flink_eim_write8,
.write16 = flink_eim_write16,
.write32 = flink_eim_write32,
.address_space_size = flink_eim_address_space_size
}