aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/devices/docg3.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/devices/docg3.h')
-rw-r--r--drivers/mtd/devices/docg3.h18
1 files changed, 16 insertions, 2 deletions
diff --git a/drivers/mtd/devices/docg3.h b/drivers/mtd/devices/docg3.h
index db0da436b493..642e60667cfd 100644
--- a/drivers/mtd/devices/docg3.h
+++ b/drivers/mtd/devices/docg3.h
@@ -22,6 +22,8 @@
22#ifndef _MTD_DOCG3_H 22#ifndef _MTD_DOCG3_H
23#define _MTD_DOCG3_H 23#define _MTD_DOCG3_H
24 24
25#include <linux/mtd/mtd.h>
26
25/* 27/*
26 * Flash memory areas : 28 * Flash memory areas :
27 * - 0x0000 .. 0x07ff : IPL 29 * - 0x0000 .. 0x07ff : IPL
@@ -267,9 +269,21 @@
267#define DOC_LAYOUT_DPS_KEY_LENGTH 8 269#define DOC_LAYOUT_DPS_KEY_LENGTH 8
268 270
269/** 271/**
272 * struct docg3_cascade - Cascade of 1 to 4 docg3 chips
273 * @floors: floors (ie. one physical docg3 chip is one floor)
274 * @base: IO space to access all chips in the cascade
275 * @bch: the BCH correcting control structure
276 */
277struct docg3_cascade {
278 struct mtd_info *floors[DOC_MAX_NBFLOORS];
279 void __iomem *base;
280 struct bch_control *bch;
281};
282
283/**
270 * struct docg3 - DiskOnChip driver private data 284 * struct docg3 - DiskOnChip driver private data
271 * @dev: the device currently under control 285 * @dev: the device currently under control
272 * @base: mapped IO space 286 * @cascade: the cascade this device belongs to
273 * @device_id: number of the cascaded DoCG3 device (0, 1, 2 or 3) 287 * @device_id: number of the cascaded DoCG3 device (0, 1, 2 or 3)
274 * @if_cfg: if true, reads are on 16bits, else reads are on 8bits 288 * @if_cfg: if true, reads are on 16bits, else reads are on 8bits
275 289
@@ -287,7 +301,7 @@
287 */ 301 */
288struct docg3 { 302struct docg3 {
289 struct device *dev; 303 struct device *dev;
290 void __iomem *base; 304 struct docg3_cascade *cascade;
291 unsigned int device_id:4; 305 unsigned int device_id:4;
292 unsigned int if_cfg:1; 306 unsigned int if_cfg:1;
293 unsigned int reliable:2; 307 unsigned int reliable:2;