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

Go to the source code of this file.

Macros

#define MTDRAM_TOTAL_SIZE   (total_size * 1024)
 
#define MTDRAM_ERASE_SIZE   (erase_size * 1024)
 

Functions

int mtdram_init_device (struct mtd_info *mtd, void *mapped_address, unsigned long size, char *name)
 
 module_init (init_mtdram)
 
 module_exit (cleanup_mtdram)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_AUTHOR ("Alexander Larsson <[email protected]>")
 
 MODULE_DESCRIPTION ("Simulated MTD driver for testing")
 

Macro Definition Documentation

#define MTDRAM_ERASE_SIZE   (erase_size * 1024)

Definition at line 23 of file mtdram.c.

#define MTDRAM_TOTAL_SIZE   (total_size * 1024)

Definition at line 22 of file mtdram.c.

Function Documentation

MODULE_AUTHOR ( "Alexander Larsson <[email protected]>"  )
MODULE_DESCRIPTION ( "Simulated MTD driver for testing"  )
module_exit ( cleanup_mtdram  )
module_init ( init_mtdram  )
MODULE_LICENSE ( "GPL"  )
int mtdram_init_device ( struct mtd_info mtd,
void mapped_address,
unsigned long  size,
char name 
)

Definition at line 94 of file mtdram.c.