X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fscsi%2Fscsi_host.h;h=827992949c4bfe2b94635262483a4863aa0b2550;hb=71efa38c0eef581c69c221ceb8645f61d1e93270;hp=6cbb1982ed0320d306e136f50d6b380bbd9cbcbb;hpb=06d61cbf7c2522f43c09d5bb050acd0bd31812c0;p=powerpc.git diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 6cbb1982ed..827992949c 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -5,6 +5,7 @@ #include #include #include +#include struct block_device; struct completion; @@ -295,6 +296,12 @@ struct scsi_host_template { */ int (*proc_info)(struct Scsi_Host *, char *, char **, off_t, int, int); + /* + * suspend support + */ + int (*resume)(struct scsi_device *); + int (*suspend)(struct scsi_device *); + /* * Name of proc directory */ @@ -392,7 +399,6 @@ struct scsi_host_template { /* * ordered write support */ - unsigned ordered_flush:1; unsigned ordered_tag:1; /* @@ -464,7 +470,7 @@ struct Scsi_Host { spinlock_t default_lock; spinlock_t *host_lock; - struct semaphore scan_mutex;/* serialize scanning activity */ + struct mutex scan_mutex;/* serialize scanning activity */ struct list_head eh_cmd_q; struct task_struct * ehandler; /* Error recovery thread. */ @@ -548,7 +554,6 @@ struct Scsi_Host { /* * ordered write support */ - unsigned ordered_flush:1; unsigned ordered_tag:1; /*