mtd/include/linux/mtd blktrans.h,1.1,1.2

David Woodhouse dwmw2 at infradead.org
Tue May 20 09:43:00 EDT 2003


Update of /home/cvs/mtd/include/linux/mtd
In directory phoenix.infradead.org:/tmp/cvs-serv15386

Modified Files:
	blktrans.h 
Log Message:
include cleanups, readonly

Index: blktrans.h
===================================================================
RCS file: /home/cvs/mtd/include/linux/mtd/blktrans.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- blktrans.h	18 May 2003 13:10:21 -0000	1.1
+++ blktrans.h	20 May 2003 13:42:57 -0000	1.2
@@ -10,9 +10,12 @@
 #ifndef __MTD_TRANS_H__
 #define __MTD_TRANS_H__
 
+#include <asm/semaphore.h>
+
 struct mtd_info;
-struct semaphore;
 struct mtd_blktrans_ops;
+struct file;
+struct inode;
 
 struct mtd_blktrans_dev {
 	struct mtd_blktrans_ops *tr;
@@ -23,7 +26,7 @@
 	int devnum;
 	int blksize;
 	unsigned long size;
-	/* readonly? */
+	int readonly;
 };
 
 struct blkcore_priv; /* Differs for 2.4 and 2.5 kernels; private */
@@ -38,6 +41,9 @@
 		    unsigned long block, char *buffer);
 	int (*writesect)(struct mtd_blktrans_dev *dev,
 		     unsigned long block, char *buffer);
+
+	/* HDIO_GETGEO and HDIO_GETGEO_BIG are the only non-private
+	   ioctls which are expected to be passed through */
 	int (*ioctl)(struct mtd_blktrans_dev *dev,
 		     struct inode * inode, struct file * file, 
 		     unsigned int cmd, unsigned long arg);




More information about the linux-mtd-cvs mailing list