patch-2.1.92 linux/drivers/block/ide.h
Next file: linux/drivers/block/ll_rw_blk.c
Previous file: linux/drivers/block/ide.c
Back to the patch index
Back to the overall index
- Lines: 45
- Date:
Wed Apr 1 17:30:46 1998
- Orig file:
v2.1.91/linux/drivers/block/ide.h
- Orig date:
Fri Feb 6 15:33:06 1998
diff -u --recursive --new-file v2.1.91/linux/drivers/block/ide.h linux/drivers/block/ide.h
@@ -405,14 +405,17 @@
* /proc/ide interface
*/
typedef struct {
- const char *name;
- read_proc_t *read_proc;
- write_proc_t *write_proc;
+ const char *name;
+ mode_t mode;
+ read_proc_t *read_proc;
+ write_proc_t *write_proc;
} ide_proc_entry_t;
-void proc_ide_init(void);
-void ide_add_proc_entries(ide_drive_t *drive, ide_proc_entry_t *p);
-void ide_remove_proc_entries(ide_drive_t *drive, ide_proc_entry_t *p);
+#ifdef CONFIG_PROC_FS
+void proc_ide_create(void);
+void proc_ide_destroy(void);
+void ide_add_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p, void *data);
+void ide_remove_proc_entries(struct proc_dir_entry *dir, ide_proc_entry_t *p);
read_proc_t proc_ide_read_capacity;
read_proc_t proc_ide_read_geometry;
@@ -431,6 +434,7 @@
*start = page + off; \
return len; \
}
+#endif
/*
* Subdrivers support.
@@ -672,6 +676,12 @@
#endif
#if MAX_HWIFS > 3
void do_ide3_request (void);
+#endif
+#if MAX_HWIFS > 4
+void do_ide4_request (void);
+#endif
+#if MAX_HWIFS > 5
+void do_ide5_request (void);
#endif
void ide_init_subdrivers (void);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov