diff options
Diffstat (limited to 'include/scsi/scsi_host.h')
-rw-r--r-- | include/scsi/scsi_host.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 69313ba7505b..6cbb1982ed03 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
@@ -7,6 +7,7 @@ | |||
7 | #include <linux/workqueue.h> | 7 | #include <linux/workqueue.h> |
8 | 8 | ||
9 | struct block_device; | 9 | struct block_device; |
10 | struct completion; | ||
10 | struct module; | 11 | struct module; |
11 | struct scsi_cmnd; | 12 | struct scsi_cmnd; |
12 | struct scsi_device; | 13 | struct scsi_device; |
@@ -467,10 +468,8 @@ struct Scsi_Host { | |||
467 | 468 | ||
468 | struct list_head eh_cmd_q; | 469 | struct list_head eh_cmd_q; |
469 | struct task_struct * ehandler; /* Error recovery thread. */ | 470 | struct task_struct * ehandler; /* Error recovery thread. */ |
470 | struct semaphore * eh_action; /* Wait for specific actions on the | 471 | struct completion * eh_action; /* Wait for specific actions on the |
471 | host. */ | 472 | host. */ |
472 | unsigned int eh_active:1; /* Indicates the eh thread is awake and active if | ||
473 | this is true. */ | ||
474 | wait_queue_head_t host_wait; | 473 | wait_queue_head_t host_wait; |
475 | struct scsi_host_template *hostt; | 474 | struct scsi_host_template *hostt; |
476 | struct scsi_transport_template *transportt; | 475 | struct scsi_transport_template *transportt; |
@@ -609,6 +608,10 @@ struct Scsi_Host { | |||
609 | #define class_to_shost(d) \ | 608 | #define class_to_shost(d) \ |
610 | container_of(d, struct Scsi_Host, shost_classdev) | 609 | container_of(d, struct Scsi_Host, shost_classdev) |
611 | 610 | ||
611 | #define shost_printk(prefix, shost, fmt, a...) \ | ||
612 | dev_printk(prefix, &(shost)->shost_gendev, fmt, ##a) | ||
613 | |||
614 | |||
612 | int scsi_is_host_device(const struct device *); | 615 | int scsi_is_host_device(const struct device *); |
613 | 616 | ||
614 | static inline struct Scsi_Host *dev_to_shost(struct device *dev) | 617 | static inline struct Scsi_Host *dev_to_shost(struct device *dev) |
@@ -634,8 +637,6 @@ extern void scsi_flush_work(struct Scsi_Host *); | |||
634 | extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int); | 637 | extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int); |
635 | extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *); | 638 | extern int __must_check scsi_add_host(struct Scsi_Host *, struct device *); |
636 | extern void scsi_scan_host(struct Scsi_Host *); | 639 | extern void scsi_scan_host(struct Scsi_Host *); |
637 | extern void scsi_scan_single_target(struct Scsi_Host *, unsigned int, | ||
638 | unsigned int); | ||
639 | extern void scsi_rescan_device(struct device *); | 640 | extern void scsi_rescan_device(struct device *); |
640 | extern void scsi_remove_host(struct Scsi_Host *); | 641 | extern void scsi_remove_host(struct Scsi_Host *); |
641 | extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *); | 642 | extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *); |