summaryrefslogtreecommitdiff
path: root/sys/scsi/scsi_all.h
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-07-08 08:13:20 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-07-08 08:13:20 +0000
commit5ae8e0668d830e899658d77175a095af6fba4117 (patch)
tree3ce440b00e53ac22c4cd662c2be06b36deb5e93d /sys/scsi/scsi_all.h
parent006f80ddd867332fa17abb144429f1e5f533997f (diff)
describe the ata vpd page
Diffstat (limited to 'sys/scsi/scsi_all.h')
-rw-r--r--sys/scsi/scsi_all.h17
1 files changed, 16 insertions, 1 deletions
diff --git a/sys/scsi/scsi_all.h b/sys/scsi/scsi_all.h
index f8399c40652..6205394aa20 100644
--- a/sys/scsi/scsi_all.h
+++ b/sys/scsi/scsi_all.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: scsi_all.h,v 1.52 2010/12/24 02:45:33 krw Exp $ */
+/* $OpenBSD: scsi_all.h,v 1.53 2011/07/08 08:13:19 dlg Exp $ */
/* $NetBSD: scsi_all.h,v 1.10 1996/09/12 01:57:17 thorpej Exp $ */
/*
@@ -309,6 +309,21 @@ struct scsi_vpd_devid_hdr {
u_int8_t len;
};
+struct scsi_vpd_ata {
+ struct scsi_vpd_hdr hdr;
+
+ u_int8_t _reserved1[4];
+ u_int8_t sat_vendor[8];
+ u_int8_t sat_product[16];
+ u_int8_t sat_revision[4];
+ u_int8_t device_signature[20];
+ u_int8_t command_code;
+#define VPD_ATA_COMMAND_CODE_ATA 0xec
+#define VPD_ATA_COMMAND_CODE_ATAPI 0xa1
+ u_int8_t _reserved2[3];
+ u_int8_t identify[512];
+};
+
struct scsi_sense_data_unextended {
/* 1*/ u_int8_t error_code;
/* 4*/ u_int8_t block[3];