summaryrefslogtreecommitdiff
path: root/extras/scsi_id/scsi_id.h
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2008-05-14 13:42:41 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-05-14 13:42:41 +0200
commit753417db2ba6faafa3aa30f6b15678e1557e20b8 (patch)
tree66ff27022db98002388ca3890559ba5cda751c51 /extras/scsi_id/scsi_id.h
parent838436fa328345ffb0b355e6921b6d75a9b2992f (diff)
scsi_id: remove all sysfs dependencies
Diffstat (limited to 'extras/scsi_id/scsi_id.h')
-rw-r--r--extras/scsi_id/scsi_id.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/extras/scsi_id/scsi_id.h b/extras/scsi_id/scsi_id.h
index 0e2b297d28..3b3a000dd7 100644
--- a/extras/scsi_id/scsi_id.h
+++ b/extras/scsi_id/scsi_id.h
@@ -30,13 +30,21 @@
*/
#define MAX_BUFFER_LEN 256
-extern int scsi_std_inquiry(struct sysfs_device *dev_scsi, const char *devname,
- char *vendor, char *model, char *rev, char *type);
-extern int scsi_get_serial (struct sysfs_device *dev_scsi, const char *devname,
- int page_code, char *serial, char *serial_short, int len);
+struct scsi_id_device {
+ char vendor[9];
+ char model[17];
+ char revision[5];
+ char type[33];
+ char kernel[64];
+ char serial[MAX_SERIAL_LEN];
+};
+
+extern int scsi_std_inquiry(struct scsi_id_device *dev_scsi, const char *devname);
+extern int scsi_get_serial (struct scsi_id_device *dev_scsi, const char *devname,
+ int page_code, char *serial_short, int len);
/*
- * Page code values.
+ * Page code values.
*/
enum page_code {
PAGE_83_PRE_SPC3 = -0x83,
@@ -44,3 +52,4 @@ enum page_code {
PAGE_80 = 0x80,
PAGE_83 = 0x83,
};
+