diff options
| author | Anton Altaparmakov <aia21@cantab.net> | 2005-07-13 18:09:23 -0400 |
|---|---|---|
| committer | Anton Altaparmakov <aia21@cantab.net> | 2005-07-13 18:09:23 -0400 |
| commit | c514720716c7b109ff980f8b3cb93f9af872c91c (patch) | |
| tree | 490a9578995705de69712893a190b67651bddc56 /include/linux/mtd/mtd.h | |
| parent | 07929dcb963786512c760dd3ecd148d89295e7e5 (diff) | |
| parent | 1e279dd855d15b72364b4103f872d67d8592647e (diff) | |
Automatic merge with /usr/src/ntfs-2.6.git.
Diffstat (limited to 'include/linux/mtd/mtd.h')
| -rw-r--r-- | include/linux/mtd/mtd.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index b3d134392b31..c50c3f3927d9 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * $Id: mtd.h,v 1.56 2004/08/09 18:46:04 dmarlin Exp $ | 2 | * $Id: mtd.h,v 1.59 2005/04/11 10:19:02 gleixner Exp $ |
| 3 | * | 3 | * |
| 4 | * Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al. | 4 | * Copyright (C) 1999-2003 David Woodhouse <dwmw2@infradead.org> et al. |
| 5 | * | 5 | * |
| @@ -18,6 +18,7 @@ | |||
| 18 | #include <linux/types.h> | 18 | #include <linux/types.h> |
| 19 | #include <linux/module.h> | 19 | #include <linux/module.h> |
| 20 | #include <linux/uio.h> | 20 | #include <linux/uio.h> |
| 21 | #include <linux/notifier.h> | ||
| 21 | 22 | ||
| 22 | #include <linux/mtd/compatmac.h> | 23 | #include <linux/mtd/compatmac.h> |
| 23 | #include <mtd/mtd-abi.h> | 24 | #include <mtd/mtd-abi.h> |
| @@ -69,7 +70,6 @@ struct mtd_info { | |||
| 69 | 70 | ||
| 70 | u_int32_t oobblock; // Size of OOB blocks (e.g. 512) | 71 | u_int32_t oobblock; // Size of OOB blocks (e.g. 512) |
| 71 | u_int32_t oobsize; // Amount of OOB data per block (e.g. 16) | 72 | u_int32_t oobsize; // Amount of OOB data per block (e.g. 16) |
| 72 | u_int32_t oobavail; // Number of bytes in OOB area available for fs | ||
| 73 | u_int32_t ecctype; | 73 | u_int32_t ecctype; |
| 74 | u_int32_t eccsize; | 74 | u_int32_t eccsize; |
| 75 | 75 | ||
| @@ -80,6 +80,7 @@ struct mtd_info { | |||
| 80 | 80 | ||
| 81 | // oobinfo is a nand_oobinfo structure, which can be set by iotcl (MEMSETOOBINFO) | 81 | // oobinfo is a nand_oobinfo structure, which can be set by iotcl (MEMSETOOBINFO) |
| 82 | struct nand_oobinfo oobinfo; | 82 | struct nand_oobinfo oobinfo; |
| 83 | u_int32_t oobavail; // Number of bytes in OOB area available for fs | ||
| 83 | 84 | ||
| 84 | /* Data for variable erase regions. If numeraseregions is zero, | 85 | /* Data for variable erase regions. If numeraseregions is zero, |
| 85 | * it means that the whole device has erasesize as given above. | 86 | * it means that the whole device has erasesize as given above. |
| @@ -113,12 +114,12 @@ struct mtd_info { | |||
| 113 | * flash devices. The user data is one time programmable but the | 114 | * flash devices. The user data is one time programmable but the |
| 114 | * factory data is read only. | 115 | * factory data is read only. |
| 115 | */ | 116 | */ |
| 116 | int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); | 117 | int (*get_fact_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); |
| 117 | |||
| 118 | int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); | 118 | int (*read_fact_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); |
| 119 | 119 | int (*get_user_prot_info) (struct mtd_info *mtd, struct otp_info *buf, size_t len); | |
| 120 | /* This function is not yet implemented */ | 120 | int (*read_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); |
| 121 | int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); | 121 | int (*write_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf); |
| 122 | int (*lock_user_prot_reg) (struct mtd_info *mtd, loff_t from, size_t len); | ||
| 122 | 123 | ||
| 123 | /* kvec-based read/write methods. We need these especially for NAND flash, | 124 | /* kvec-based read/write methods. We need these especially for NAND flash, |
| 124 | with its limited number of write cycles per erase. | 125 | with its limited number of write cycles per erase. |
| @@ -147,6 +148,8 @@ struct mtd_info { | |||
| 147 | int (*block_isbad) (struct mtd_info *mtd, loff_t ofs); | 148 | int (*block_isbad) (struct mtd_info *mtd, loff_t ofs); |
| 148 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); | 149 | int (*block_markbad) (struct mtd_info *mtd, loff_t ofs); |
| 149 | 150 | ||
| 151 | struct notifier_block reboot_notifier; /* default mode before reboot */ | ||
| 152 | |||
| 150 | void *priv; | 153 | void *priv; |
| 151 | 154 | ||
| 152 | struct module *owner; | 155 | struct module *owner; |
