summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMarco Peereboom <marco@cvs.openbsd.org>2005-08-09 14:27:57 +0000
committerMarco Peereboom <marco@cvs.openbsd.org>2005-08-09 14:27:57 +0000
commit579885057a3e8bd9b15cdf9d4c1d5c40fa81a868 (patch)
tree56aa088616dc2d780351c3c1a8cdcd6a71a3234c /sys
parent47882fd51678f228b0f83dcaedf7a621500752ea (diff)
Add Vital Product Data structure. Requested deraadt@ ok dlg@
Diffstat (limited to 'sys')
-rw-r--r--sys/scsi/scsi_all.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index 422553f4240..f140592777b 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.30 2005/08/05 00:25:15 dlg Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.31 2005/08/09 14:27:56 marco Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -80,6 +80,7 @@ struct scsi_sense {
struct scsi_inquiry {
u_int8_t opcode;
u_int8_t byte2;
+#define SI_EVPD 0x01
u_int8_t unused[2];
u_int8_t length;
u_int8_t control;
@@ -242,6 +243,14 @@ struct scsi_inquiry_data {
u_int8_t reserved;
};
+struct scsi_inquiry_vpd {
+ u_int8_t device;
+ u_int8_t page_code;
+ u_int8_t reserved;
+ u_int8_t page_length;
+ char serial[32];
+};
+
struct scsi_sense_data_unextended {
/* 1*/ u_int8_t error_code;
/* 4*/ u_int8_t block[3];