diff options
author | Holger Macht <holger@homac.de> | 2012-06-25 04:13:02 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2012-06-29 11:38:09 -0400 |
commit | de50ada55b6b83b54b817911ec42dc590e1c1738 (patch) | |
tree | a01be5907effa3e64cf3b9b65b963a8785f42889 /include/scsi/scsi.h | |
parent | 9acc7bde23ebb19a704395f76490685e1513e422 (diff) |
[SCSI] add wrapper to access and set scsi_bus_type in struct acpi_bus_type
For being able to bind ata devices against acpi devices, scsi_bus_type
needs to be set as bus in struct acpi_bus_type. So add wrapper to
scsi_lib to accomplish that.
Signed-off-by: Holger Macht <holger@homac.de>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Diffstat (limited to 'include/scsi/scsi.h')
-rw-r--r-- | include/scsi/scsi.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/scsi/scsi.h b/include/scsi/scsi.h index f34a5a87af38..4527b3a13321 100644 --- a/include/scsi/scsi.h +++ b/include/scsi/scsi.h | |||
@@ -214,6 +214,16 @@ scsi_command_size(const unsigned char *cmnd) | |||
214 | scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); | 214 | scsi_varlen_cdb_length(cmnd) : COMMAND_SIZE(cmnd[0]); |
215 | } | 215 | } |
216 | 216 | ||
217 | #ifdef CONFIG_ACPI | ||
218 | struct acpi_bus_type; | ||
219 | |||
220 | extern int | ||
221 | scsi_register_acpi_bus_type(struct acpi_bus_type *bus); | ||
222 | |||
223 | extern void | ||
224 | scsi_unregister_acpi_bus_type(struct acpi_bus_type *bus); | ||
225 | #endif | ||
226 | |||
217 | /* | 227 | /* |
218 | * SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft | 228 | * SCSI Architecture Model (SAM) Status codes. Taken from SAM-3 draft |
219 | * T10/1561-D Revision 4 Draft dated 7th November 2002. | 229 | * T10/1561-D Revision 4 Draft dated 7th November 2002. |