Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
umem.c File Reference
#include <linux/fs.h>
#include <linux/bio.h>
#include <linux/kernel.h>
#include <linux/mm.h>
#include <linux/mman.h>
#include <linux/gfp.h>
#include <linux/ioctl.h>
#include <linux/module.h>
#include <linux/init.h>
#include <linux/interrupt.h>
#include <linux/timer.h>
#include <linux/pci.h>
#include <linux/dma-mapping.h>
#include <linux/fcntl.h>
#include <linux/hdreg.h>
#include "umem.h"
#include <asm/uaccess.h>
#include <asm/io.h>
#include <linux/blkdev.h>
#include <linux/blkpg.h>

Go to the source code of this file.

Data Structures

struct  cardinfo
 
struct  cardinfo::mm_page
 

Macros

#define MM_MAXCARDS   4
 
#define MM_RAHEAD   2 /* two sectors */
 
#define MM_BLKSIZE   1024 /* 1k blocks */
 
#define MM_HARDSECT   512 /* 512-byte hardware sectors */
 
#define MM_SHIFT   6 /* max 64 partitions on 4 cards */
 
#define DRIVER_NAME   "umem"
 
#define DRIVER_VERSION   "v2.3"
 
#define DRIVER_AUTHOR   "San Mehat, Johannes Erdfelt, NeilBrown"
 
#define DRIVER_DESC   "Micro Memory(tm) PCI memory board block driver"
 
#define HW_TRACE(x)
 
#define DEBUG_LED_ON_TRANSFER   0x01
 
#define DEBUG_BATTERY_POLLING   0x02
 
#define DESC_PER_PAGE   ((PAGE_SIZE*2)/sizeof(struct mm_dma_desc))
 

Functions

 module_param (debug, int, 0644)
 
 MODULE_PARM_DESC (debug,"Debug bitmask")
 
 module_param (pci_read_cmd, int, 0)
 
 MODULE_PARM_DESC (pci_read_cmd,"PCI read command")
 
 module_param (pci_write_cmd, int, 0)
 
 MODULE_PARM_DESC (pci_write_cmd,"PCI write command")
 
 MODULE_DEVICE_TABLE (pci, mm_pci_ids)
 
 module_init (mm_init)
 
 module_exit (mm_cleanup)
 
 MODULE_AUTHOR (DRIVER_AUTHOR)
 
 MODULE_DESCRIPTION (DRIVER_DESC)
 
 MODULE_LICENSE ("GPL")
 

Variables

struct cardinfo __attribute__
 

Macro Definition Documentation

#define DEBUG_BATTERY_POLLING   0x02

Definition at line 80 of file umem.c.

#define DEBUG_LED_ON_TRANSFER   0x01

Definition at line 79 of file umem.c.

#define DESC_PER_PAGE   ((PAGE_SIZE*2)/sizeof(struct mm_dma_desc))

Definition at line 123 of file umem.c.

#define DRIVER_AUTHOR   "San Mehat, Johannes Erdfelt, NeilBrown"

Definition at line 72 of file umem.c.

#define DRIVER_DESC   "Micro Memory(tm) PCI memory board block driver"

Definition at line 73 of file umem.c.

#define DRIVER_NAME   "umem"

Definition at line 70 of file umem.c.

#define DRIVER_VERSION   "v2.3"

Definition at line 71 of file umem.c.

#define HW_TRACE (   x)

Definition at line 77 of file umem.c.

#define MM_BLKSIZE   1024 /* 1k blocks */

Definition at line 62 of file umem.c.

#define MM_HARDSECT   512 /* 512-byte hardware sectors */

Definition at line 63 of file umem.c.

#define MM_MAXCARDS   4

Definition at line 60 of file umem.c.

#define MM_RAHEAD   2 /* two sectors */

Definition at line 61 of file umem.c.

#define MM_SHIFT   6 /* max 64 partitions on 4 cards */

Definition at line 64 of file umem.c.

Function Documentation

MODULE_AUTHOR ( DRIVER_AUTHOR  )
MODULE_DESCRIPTION ( DRIVER_DESC  )
MODULE_DEVICE_TABLE ( pci  ,
mm_pci_ids   
)
module_exit ( mm_cleanup  )
module_init ( mm_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( debug  ,
int  ,
0644   
)
module_param ( pci_read_cmd  ,
int  ,
 
)
module_param ( pci_write_cmd  ,
int  ,
 
)
MODULE_PARM_DESC ( debug  ,
"Debug bitmask  
)
MODULE_PARM_DESC ( pci_read_cmd  ,
"PCI read command  
)
MODULE_PARM_DESC ( pci_write_cmd  ,
"PCI write command  
)

Variable Documentation