aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_priv.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/scsi_priv.h')
-rw-r--r--drivers/scsi/scsi_priv.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/drivers/scsi/scsi_priv.h b/drivers/scsi/scsi_priv.h
index d632d9e1493c..27c48274e8cb 100644
--- a/drivers/scsi/scsi_priv.h
+++ b/drivers/scsi/scsi_priv.h
@@ -26,12 +26,6 @@ struct Scsi_Host;
26#define SCSI_SENSE_VALID(scmd) \ 26#define SCSI_SENSE_VALID(scmd) \
27 (((scmd)->sense_buffer[0] & 0x70) == 0x70) 27 (((scmd)->sense_buffer[0] & 0x70) == 0x70)
28 28
29/*
30 * Special value for scanning to specify scanning or rescanning of all
31 * possible channels, (target) ids, or luns on a given shost.
32 */
33#define SCAN_WILD_CARD ~0
34
35/* hosts.c */ 29/* hosts.c */
36extern int scsi_init_hosts(void); 30extern int scsi_init_hosts(void);
37extern void scsi_exit_hosts(void); 31extern void scsi_exit_hosts(void);
@@ -40,11 +34,11 @@ extern void scsi_exit_hosts(void);
40extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd); 34extern int scsi_dispatch_cmd(struct scsi_cmnd *cmd);
41extern int scsi_setup_command_freelist(struct Scsi_Host *shost); 35extern int scsi_setup_command_freelist(struct Scsi_Host *shost);
42extern void scsi_destroy_command_freelist(struct Scsi_Host *shost); 36extern void scsi_destroy_command_freelist(struct Scsi_Host *shost);
43extern int scsi_insert_special_req(struct scsi_request *sreq, int);
44extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd, 37extern void scsi_init_cmd_from_req(struct scsi_cmnd *cmd,
45 struct scsi_request *sreq); 38 struct scsi_request *sreq);
46extern void __scsi_release_request(struct scsi_request *sreq); 39extern void __scsi_release_request(struct scsi_request *sreq);
47extern void __scsi_done(struct scsi_cmnd *cmd); 40extern void __scsi_done(struct scsi_cmnd *cmd);
41extern int scsi_retry_command(struct scsi_cmnd *cmd);
48#ifdef CONFIG_SCSI_LOGGING 42#ifdef CONFIG_SCSI_LOGGING
49void scsi_log_send(struct scsi_cmnd *cmd); 43void scsi_log_send(struct scsi_cmnd *cmd);
50void scsi_log_completion(struct scsi_cmnd *cmd, int disposition); 44void scsi_log_completion(struct scsi_cmnd *cmd, int disposition);
@@ -57,7 +51,8 @@ static inline void scsi_log_completion(struct scsi_cmnd *cmd, int disposition)
57 51
58/* scsi_devinfo.c */ 52/* scsi_devinfo.c */
59extern int scsi_get_device_flags(struct scsi_device *sdev, 53extern int scsi_get_device_flags(struct scsi_device *sdev,
60 unsigned char *vendor, unsigned char *model); 54 const unsigned char *vendor,
55 const unsigned char *model);
61extern int __init scsi_init_devinfo(void); 56extern int __init scsi_init_devinfo(void);
62extern void scsi_exit_devinfo(void); 57extern void scsi_exit_devinfo(void);
63 58