*/
extern void scan_scsis(struct Scsi_Host *, uint, uint, uint, uint);
- extern void scsi_mark_host_reset(struct Scsi_Host *);
-
- #define BLANK_HOST {"", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}
-
struct Scsi_Device_Template
{
- struct Scsi_Device_Template * next;
+ struct list_head list;
const char * name;
const char * tag;
struct module * module; /* Used for loadable modules */
generic = create_proc_info_entry ("scsi/scsi", 0, 0, scsi_proc_info);
if (!generic) {
printk (KERN_ERR "cannot init /proc/scsi/scsi\n");
- remove_proc_entry("scsi", 0);
- return -ENOMEM;
+ goto out_proc_error;
}
generic->write_proc = proc_scsi_gen_write;
+
+ generic = create_proc_info_entry ("scsi/device_info", 0, 0,
+ proc_scsi_dev_info_read);
+ if (!generic) {
+ printk (KERN_ERR "cannot init /proc/scsi/device_info\n");
+ remove_proc_entry("scsi/scsi", 0);
+ remove_proc_entry("scsi", 0);
+ return -ENOMEM;
+ }
+ generic->write_proc = proc_scsi_dev_info_write;
#endif
scsi_devfs_handle = devfs_mk_dir (NULL, "scsi", NULL);