Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
tifm_core.c File Reference
#include <linux/tifm.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/idr.h>
#include <linux/module.h>

Go to the source code of this file.

Macros

#define DRIVER_NAME   "tifm_core"
 
#define DRIVER_VERSION   "0.8"
 
#define tifm_device_suspend   NULL
 
#define tifm_device_resume   NULL
 

Functions

struct tifm_adaptertifm_alloc_adapter (unsigned int num_sockets, struct device *dev)
 
 EXPORT_SYMBOL (tifm_alloc_adapter)
 
int tifm_add_adapter (struct tifm_adapter *fm)
 
 EXPORT_SYMBOL (tifm_add_adapter)
 
void tifm_remove_adapter (struct tifm_adapter *fm)
 
 EXPORT_SYMBOL (tifm_remove_adapter)
 
void tifm_free_adapter (struct tifm_adapter *fm)
 
 EXPORT_SYMBOL (tifm_free_adapter)
 
void tifm_free_device (struct device *dev)
 
 EXPORT_SYMBOL (tifm_free_device)
 
struct tifm_devtifm_alloc_device (struct tifm_adapter *fm, unsigned int id, unsigned char type)
 
 EXPORT_SYMBOL (tifm_alloc_device)
 
void tifm_eject (struct tifm_dev *sock)
 
 EXPORT_SYMBOL (tifm_eject)
 
int tifm_has_ms_pif (struct tifm_dev *sock)
 
 EXPORT_SYMBOL (tifm_has_ms_pif)
 
int tifm_map_sg (struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction)
 
 EXPORT_SYMBOL (tifm_map_sg)
 
void tifm_unmap_sg (struct tifm_dev *sock, struct scatterlist *sg, int nents, int direction)
 
 EXPORT_SYMBOL (tifm_unmap_sg)
 
void tifm_queue_work (struct work_struct *work)
 
 EXPORT_SYMBOL (tifm_queue_work)
 
int tifm_register_driver (struct tifm_driver *drv)
 
 EXPORT_SYMBOL (tifm_register_driver)
 
void tifm_unregister_driver (struct tifm_driver *drv)
 
 EXPORT_SYMBOL (tifm_unregister_driver)
 
 subsys_initcall (tifm_init)
 
 module_exit (tifm_exit)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Alex Dubov")
 
 MODULE_DESCRIPTION ("TI FlashMedia core driver")
 
 MODULE_VERSION (DRIVER_VERSION)
 

Macro Definition Documentation

#define DRIVER_NAME   "tifm_core"

Definition at line 18 of file tifm_core.c.

#define DRIVER_VERSION   "0.8"

Definition at line 19 of file tifm_core.c.

#define tifm_device_resume   NULL

Definition at line 138 of file tifm_core.c.

#define tifm_device_suspend   NULL

Definition at line 137 of file tifm_core.c.

Function Documentation

EXPORT_SYMBOL ( tifm_alloc_adapter  )
EXPORT_SYMBOL ( tifm_add_adapter  )
EXPORT_SYMBOL ( tifm_remove_adapter  )
EXPORT_SYMBOL ( tifm_free_adapter  )
EXPORT_SYMBOL ( tifm_free_device  )
EXPORT_SYMBOL ( tifm_alloc_device  )
EXPORT_SYMBOL ( tifm_eject  )
EXPORT_SYMBOL ( tifm_has_ms_pif  )
EXPORT_SYMBOL ( tifm_map_sg  )
EXPORT_SYMBOL ( tifm_unmap_sg  )
EXPORT_SYMBOL ( tifm_queue_work  )
EXPORT_SYMBOL ( tifm_register_driver  )
EXPORT_SYMBOL ( tifm_unregister_driver  )
MODULE_AUTHOR ( "Alex Dubov"  )
MODULE_DESCRIPTION ( "TI FlashMedia core driver )
module_exit ( tifm_exit  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRIVER_VERSION  )
subsys_initcall ( tifm_init  )
int tifm_add_adapter ( struct tifm_adapter fm)

Definition at line 195 of file tifm_core.c.

struct tifm_adapter* tifm_alloc_adapter ( unsigned int  num_sockets,
struct device dev 
)
read

Definition at line 177 of file tifm_core.c.

struct tifm_dev* tifm_alloc_device ( struct tifm_adapter fm,
unsigned int  id,
unsigned char  type 
)
read

Definition at line 250 of file tifm_core.c.

void tifm_eject ( struct tifm_dev sock)

Definition at line 281 of file tifm_core.c.

void tifm_free_adapter ( struct tifm_adapter fm)

Definition at line 237 of file tifm_core.c.

void tifm_free_device ( struct device dev)

Definition at line 243 of file tifm_core.c.

int tifm_has_ms_pif ( struct tifm_dev sock)

Definition at line 288 of file tifm_core.c.

int tifm_map_sg ( struct tifm_dev sock,
struct scatterlist sg,
int  nents,
int  direction 
)

Definition at line 295 of file tifm_core.c.

void tifm_queue_work ( struct work_struct work)

Definition at line 309 of file tifm_core.c.

int tifm_register_driver ( struct tifm_driver drv)

Definition at line 315 of file tifm_core.c.

void tifm_remove_adapter ( struct tifm_adapter fm)

Definition at line 220 of file tifm_core.c.

void tifm_unmap_sg ( struct tifm_dev sock,
struct scatterlist sg,
int  nents,
int  direction 
)

Definition at line 302 of file tifm_core.c.

void tifm_unregister_driver ( struct tifm_driver drv)

Definition at line 323 of file tifm_core.c.