]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - include/mtd/nftl-user.h
Kbuild: Use dtc's -d (dependency) option
[linux-2.6.git] / include / mtd / nftl-user.h
index 924ec0459e9c09600ce2820954cdf9b4c8b14eb4..bdeabd86ad99efb10590853a357d1088a31a38ac 100644 (file)
@@ -1,40 +1,54 @@
 /*
- * $Id: nftl-user.h,v 1.1 2004/05/05 14:44:57 dwmw2 Exp $
+ * Copyright © 1999-2010 David Woodhouse <dwmw2@infradead.org>
  *
- * Parts of NFTL headers shared with userspace 
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
 
 #ifndef __MTD_NFTL_USER_H__
 #define __MTD_NFTL_USER_H__
 
+#include <linux/types.h>
+
 /* Block Control Information */
 
 struct nftl_bci {
        unsigned char ECCSig[6];
-       uint8_t Status;
-       uint8_t Status1;
+       __u8 Status;
+       __u8 Status1;
 }__attribute__((packed));
 
 /* Unit Control Information */
 
 struct nftl_uci0 {
-       uint16_t VirtUnitNum;
-       uint16_t ReplUnitNum;
-       uint16_t SpareVirtUnitNum;
-       uint16_t SpareReplUnitNum;
+       __u16 VirtUnitNum;
+       __u16 ReplUnitNum;
+       __u16 SpareVirtUnitNum;
+       __u16 SpareReplUnitNum;
 } __attribute__((packed));
 
 struct nftl_uci1 {
-       uint32_t WearInfo;
-       uint16_t EraseMark;
-       uint16_t EraseMark1;
+       __u32 WearInfo;
+       __u16 EraseMark;
+       __u16 EraseMark1;
 } __attribute__((packed));
 
 struct nftl_uci2 {
-        uint16_t FoldMark;
-        uint16_t FoldMark1;
-       uint32_t unused;
+        __u16 FoldMark;
+        __u16 FoldMark1;
+       __u32 unused;
 } __attribute__((packed));
 
 union nftl_uci {
@@ -52,9 +66,9 @@ struct nftl_oob {
 
 struct NFTLMediaHeader {
        char DataOrgID[6];
-       uint16_t NumEraseUnits;
-       uint16_t FirstPhysicalEUN;
-       uint32_t FormattedSize;
+       __u16 NumEraseUnits;
+       __u16 FirstPhysicalEUN;
+       __u32 FormattedSize;
        unsigned char UnitSizeFactor;
 } __attribute__((packed));