summaryrefslogtreecommitdiffstats
path: root/include/scsi
diff options
context:
space:
mode:
authorMatthew Wilcox <matthew@wil.cx>2008-12-31 19:12:46 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2009-03-12 18:57:54 +0100
commit881a256d84e658d14ca1c162fe56e9cbbb1cdd49 (patch)
tree76f77b27d87f823b6a2429a04ff925bee6c3107d /include/scsi
parent[SCSI] qla2xxx: Update version number to 8.03.00-k4. (diff)
downloadlinux-881a256d84e658d14ca1c162fe56e9cbbb1cdd49.tar.xz
linux-881a256d84e658d14ca1c162fe56e9cbbb1cdd49.zip
[SCSI] Add VPD helper
Based on prior work by Martin Petersen and James Bottomley, this patch adds a generic helper for retrieving VPD pages from SCSI devices. Signed-off-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'include/scsi')
-rw-r--r--include/scsi/scsi_device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h
index 01a4c58f8bad..9576690901dd 100644
--- a/include/scsi/scsi_device.h
+++ b/include/scsi/scsi_device.h
@@ -340,6 +340,7 @@ extern int scsi_mode_select(struct scsi_device *sdev, int pf, int sp,
struct scsi_sense_hdr *);
extern int scsi_test_unit_ready(struct scsi_device *sdev, int timeout,
int retries, struct scsi_sense_hdr *sshdr);
+extern unsigned char *scsi_get_vpd_page(struct scsi_device *, u8 page);
extern int scsi_device_set_state(struct scsi_device *sdev,
enum scsi_device_state state);
extern struct scsi_event *sdev_evt_alloc(enum scsi_device_event evt_type,