diff options
| author | Bartlomiej Zolnierkiewicz <b.zolnierkiewicz@elka.pw.edu.pl> | 2004-02-19 05:43:37 -0800 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-02-19 05:43:37 -0800 |
| commit | 3c35893a88406bf4f92a46403de0f57e82b73725 (patch) | |
| tree | d55a5865b5943aa7af206dc467616a1c9b0dff9a /include/linux | |
| parent | c6141a615c1bfd00c41a8c632781820b3adcde10 (diff) | |
[PATCH] fix /proc/ide/<chipset> for IDE PCI modules
Make IDE PCI drivers register /proc/ide/<chipset> entries themselves.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/ide.h | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 4fee82798cb8..d022c3ce514b 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h @@ -1087,6 +1087,8 @@ typedef struct { } ide_proc_entry_t; #ifdef CONFIG_PROC_FS +extern struct proc_dir_entry *proc_ide_root; + extern void proc_ide_create(void); extern void proc_ide_destroy(void); extern void destroy_proc_ide_device(ide_hwif_t *, ide_drive_t *); @@ -1097,6 +1099,10 @@ extern void ide_remove_proc_entries(struct proc_dir_entry *, ide_proc_entry_t *) read_proc_t proc_ide_read_capacity; read_proc_t proc_ide_read_geometry; +#ifdef CONFIG_BLK_DEV_IDEPCI +void ide_pci_create_host_proc(const char *, get_info_t *); +#endif + /* * Standard exit stuff: */ @@ -1522,18 +1528,6 @@ int ide_register_subdriver(ide_drive_t *, ide_driver_t *); int ide_unregister_subdriver (ide_drive_t *drive); int ide_replace_subdriver(ide_drive_t *drive, const char *driver); -#ifdef CONFIG_PROC_FS -typedef struct ide_pci_host_proc_s { - char *name; - u8 set; - get_info_t *get_info; - struct proc_dir_entry *parent; - struct ide_pci_host_proc_s *next; -} ide_pci_host_proc_t; - -void ide_pci_register_host_proc(ide_pci_host_proc_t *); -#endif /* CONFIG_PROC_FS */ - #define ON_BOARD 1 #define NEVER_BOARD 0 |
