#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.
|
| 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") |
|
#define DEBUG_BATTERY_POLLING 0x02 |
#define DEBUG_LED_ON_TRANSFER 0x01 |
#define DRIVER_AUTHOR "San Mehat, Johannes Erdfelt, NeilBrown" |
#define DRIVER_NAME "umem" |
#define DRIVER_VERSION "v2.3" |
#define MM_BLKSIZE 1024 /* 1k blocks */ |
#define MM_RAHEAD 2 /* two sectors */ |
#define MM_SHIFT 6 /* max 64 partitions on 4 cards */ |
MODULE_DEVICE_TABLE |
( |
pci |
, |
|
|
mm_pci_ids |
|
|
) |
| |
module_exit |
( |
mm_cleanup |
| ) |
|
module_param |
( |
pci_read_cmd |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |
module_param |
( |
pci_write_cmd |
, |
|
|
int |
, |
|
|
0 |
|
|
) |
| |