#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/fs.h>
#include <linux/blkdev.h>
#include <linux/hdreg.h>
#include <linux/ata.h>
#include <linux/interrupt.h>
#include <linux/delay.h>
#include <linux/platform_device.h>
#include <linux/gpio.h>
#include <linux/mg_disk.h>
#include <linux/slab.h>
Go to the source code of this file.
#define MG_BUFF_OFFSET 0x8000 |
#define MG_BURST_LAT_4 (3 << 4) |
#define MG_BURST_LAT_5 (4 << 4) |
#define MG_BURST_LAT_6 (5 << 4) |
#define MG_BURST_LAT_7 (6 << 4) |
#define MG_BURST_LAT_8 (7 << 4) |
#define MG_BURST_LEN_16 (3 << 1) |
#define MG_BURST_LEN_32 (4 << 1) |
#define MG_BURST_LEN_4 (1 << 1) |
#define MG_BURST_LEN_8 (2 << 1) |
#define MG_BURST_LEN_CONT (0 << 1) |
#define MG_CMD_RD_CONF 0x40 |
#define MG_CMD_SLEEP 0x99 |
#define MG_CMD_WAKEUP 0xC3 |
#define MG_CMD_WR_CONF 0x3C |
#define MG_DBG |
( |
|
fmt, |
|
|
|
args... |
|
) |
| do { } while (0) |
#define MG_DISK_MAX_PART 16 |
#define MG_DISK_NAME "mgd" |
#define MG_ERR_CTRL_RST 0x103 |
#define MG_ERR_INIT_STAT 0x101 |
#define MG_ERR_INV_STAT 0x104 |
#define MG_ERR_RSTOUT 0x105 |
#define MG_ERR_TIMEOUT 0x100 |
#define MG_ERR_TRANSLATION 0x102 |
#define MG_OP_CASCADE (1 << 0) |
#define MG_OP_CASCADE_SYNC_RD (1 << 1) |
#define MG_OP_CASCADE_SYNC_WR (1 << 2) |
#define MG_OP_INTERLEAVE (1 << 3) |
#define MG_REG_OFFSET 0xC000 |
#define MG_RES_SEC (CONFIG_MG_DISK_RES << 1) |
#define MG_SECTOR_SIZE 512 |
#define MG_TMAX_CONF_TO_CMD 1 |
#define MG_TMAX_HDRST_TO_RDY 500 |
#define MG_TMAX_RST_TO_BUSY 10 |
#define MG_TMAX_RSTOUT 3000 |
#define MG_TMAX_SWRST_TO_RDY 500 |
#define MG_TMAX_WAIT_RD_DRQ 10 |
#define MG_TMAX_WAIT_WR_DRQ 500 |