hosts.c (bf61c8840efe60fd8f91446860b63338fb424158) hosts.c (b45620229dd67ff1daffa8adce57f37b37860f78)
1/*
2 * hosts.c Copyright (C) 1992 Drew Eckhardt
3 * Copyright (C) 1993, 1994, 1995 Eric Youngdale
4 * Copyright (C) 2002-2003 Christoph Hellwig
5 *
6 * mid to lowlevel SCSI driver interface
7 * Initial versions: Drew Eckhardt
8 * Subsequent revisions: Eric Youngdale

--- 302 unchanged lines hidden (view full) ---

311
312 kfree(shost->shost_data);
313
314 if (parent)
315 put_device(parent);
316 kfree(shost);
317}
318
1/*
2 * hosts.c Copyright (C) 1992 Drew Eckhardt
3 * Copyright (C) 1993, 1994, 1995 Eric Youngdale
4 * Copyright (C) 2002-2003 Christoph Hellwig
5 *
6 * mid to lowlevel SCSI driver interface
7 * Initial versions: Drew Eckhardt
8 * Subsequent revisions: Eric Youngdale

--- 302 unchanged lines hidden (view full) ---

311
312 kfree(shost->shost_data);
313
314 if (parent)
315 put_device(parent);
316 kfree(shost);
317}
318
319static unsigned int shost_eh_deadline;
320
321module_param_named(eh_deadline, shost_eh_deadline, uint, S_IRUGO|S_IWUSR);
322MODULE_PARM_DESC(eh_deadline,
323 "SCSI EH timeout in seconds (should be between 1 and 2^32-1)");
324
319static struct device_type scsi_host_type = {
320 .name = "scsi_host",
321 .release = scsi_host_dev_release,
322};
323
324/**
325 * scsi_host_alloc - register a scsi host adapter instance.
326 * @sht: pointer to scsi host template

--- 56 unchanged lines hidden (view full) ---

383 shost->this_id = sht->this_id;
384 shost->can_queue = sht->can_queue;
385 shost->sg_tablesize = sht->sg_tablesize;
386 shost->sg_prot_tablesize = sht->sg_prot_tablesize;
387 shost->cmd_per_lun = sht->cmd_per_lun;
388 shost->unchecked_isa_dma = sht->unchecked_isa_dma;
389 shost->use_clustering = sht->use_clustering;
390 shost->ordered_tag = sht->ordered_tag;
325static struct device_type scsi_host_type = {
326 .name = "scsi_host",
327 .release = scsi_host_dev_release,
328};
329
330/**
331 * scsi_host_alloc - register a scsi host adapter instance.
332 * @sht: pointer to scsi host template

--- 56 unchanged lines hidden (view full) ---

389 shost->this_id = sht->this_id;
390 shost->can_queue = sht->can_queue;
391 shost->sg_tablesize = sht->sg_tablesize;
392 shost->sg_prot_tablesize = sht->sg_prot_tablesize;
393 shost->cmd_per_lun = sht->cmd_per_lun;
394 shost->unchecked_isa_dma = sht->unchecked_isa_dma;
395 shost->use_clustering = sht->use_clustering;
396 shost->ordered_tag = sht->ordered_tag;
397 shost->eh_deadline = shost_eh_deadline * HZ;
391
392 if (sht->supported_mode == MODE_UNKNOWN)
393 /* means we didn't set it ... default to INITIATOR */
394 shost->active_mode = MODE_INITIATOR;
395 else
396 shost->active_mode = sht->supported_mode;
397
398 if (sht->max_host_blocked)

--- 188 unchanged lines hidden ---
398
399 if (sht->supported_mode == MODE_UNKNOWN)
400 /* means we didn't set it ... default to INITIATOR */
401 shost->active_mode = MODE_INITIATOR;
402 else
403 shost->active_mode = sht->supported_mode;
404
405 if (sht->max_host_blocked)

--- 188 unchanged lines hidden ---