diff options
Diffstat (limited to 'include/linux/mtd/doc2000.h')
| -rw-r--r-- | include/linux/mtd/doc2000.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/include/linux/mtd/doc2000.h b/include/linux/mtd/doc2000.h index 953e64fb8ac5..386a52cf8b1b 100644 --- a/include/linux/mtd/doc2000.h +++ b/include/linux/mtd/doc2000.h | |||
| @@ -1,12 +1,12 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * Linux driver for Disk-On-Chip devices | 2 | * Linux driver for Disk-On-Chip devices |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 1999 Machine Vision Holdings, Inc. | 4 | * Copyright (C) 1999 Machine Vision Holdings, Inc. |
| 5 | * Copyright (C) 2001-2003 David Woodhouse <dwmw2@infradead.org> | 5 | * Copyright (C) 2001-2003 David Woodhouse <dwmw2@infradead.org> |
| 6 | * Copyright (C) 2002-2003 Greg Ungerer <gerg@snapgear.com> | 6 | * Copyright (C) 2002-2003 Greg Ungerer <gerg@snapgear.com> |
| 7 | * Copyright (C) 2002-2003 SnapGear Inc | 7 | * Copyright (C) 2002-2003 SnapGear Inc |
| 8 | * | 8 | * |
| 9 | * $Id: doc2000.h,v 1.24 2005/01/05 12:40:38 dwmw2 Exp $ | 9 | * $Id: doc2000.h,v 1.25 2005/11/07 11:14:54 gleixner Exp $ |
| 10 | * | 10 | * |
| 11 | * Released under GPL | 11 | * Released under GPL |
| 12 | */ | 12 | */ |
| @@ -75,10 +75,10 @@ | |||
| 75 | #define DoC_Mplus_CtrlConfirm 0x1076 | 75 | #define DoC_Mplus_CtrlConfirm 0x1076 |
| 76 | #define DoC_Mplus_Power 0x1fff | 76 | #define DoC_Mplus_Power 0x1fff |
| 77 | 77 | ||
| 78 | /* How to access the device? | 78 | /* How to access the device? |
| 79 | * On ARM, it'll be mmap'd directly with 32-bit wide accesses. | 79 | * On ARM, it'll be mmap'd directly with 32-bit wide accesses. |
| 80 | * On PPC, it's mmap'd and 16-bit wide. | 80 | * On PPC, it's mmap'd and 16-bit wide. |
| 81 | * Others use readb/writeb | 81 | * Others use readb/writeb |
| 82 | */ | 82 | */ |
| 83 | #if defined(__arm__) | 83 | #if defined(__arm__) |
| 84 | #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)))) | 84 | #define ReadDOC_(adr, reg) ((unsigned char)(*(volatile __u32 *)(((unsigned long)adr)+((reg)<<2)))) |
| @@ -172,7 +172,7 @@ struct DiskOnChip { | |||
| 172 | unsigned long totlen; | 172 | unsigned long totlen; |
| 173 | unsigned char ChipID; /* Type of DiskOnChip */ | 173 | unsigned char ChipID; /* Type of DiskOnChip */ |
| 174 | int ioreg; | 174 | int ioreg; |
| 175 | 175 | ||
| 176 | unsigned long mfr; /* Flash IDs - only one type of flash per device */ | 176 | unsigned long mfr; /* Flash IDs - only one type of flash per device */ |
| 177 | unsigned long id; | 177 | unsigned long id; |
| 178 | int chipshift; | 178 | int chipshift; |
| @@ -180,10 +180,10 @@ struct DiskOnChip { | |||
| 180 | char pageadrlen; | 180 | char pageadrlen; |
| 181 | char interleave; /* Internal interleaving - Millennium Plus style */ | 181 | char interleave; /* Internal interleaving - Millennium Plus style */ |
| 182 | unsigned long erasesize; | 182 | unsigned long erasesize; |
| 183 | 183 | ||
| 184 | int curfloor; | 184 | int curfloor; |
| 185 | int curchip; | 185 | int curchip; |
| 186 | 186 | ||
| 187 | int numchips; | 187 | int numchips; |
| 188 | struct Nand *chips; | 188 | struct Nand *chips; |
| 189 | struct mtd_info *nextdoc; | 189 | struct mtd_info *nextdoc; |
