summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2007-04-03 04:51:08 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2007-04-03 04:51:08 +0000
commit4009ee205ad3466ddeb955570446919946fccbe5 (patch)
tree909c72db9ba7af6d26c04be6ce2be63e532e2c76 /sys
parent73f32de5767f24510fa9dd7f5ffead92d2228847 (diff)
provide an ioctl interface for userland to ask disk drivers about various
product details.
Diffstat (limited to 'sys')
-rw-r--r--sys/sys/dkio.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sys/sys/dkio.h b/sys/sys/dkio.h
index 7fad8f13628..8c0638c47ff 100644
--- a/sys/sys/dkio.h
+++ b/sys/sys/dkio.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dkio.h,v 1.5 2003/06/02 23:28:21 millert Exp $ */
+/* $OpenBSD: dkio.h,v 1.6 2007/04/03 04:51:07 dlg Exp $ */
/* $NetBSD: dkio.h,v 1.1 1996/01/30 18:21:48 thorpej Exp $ */
/*
@@ -59,4 +59,13 @@
#define DIOCGPDINFO _IOR('d', 114, struct disklabel)/* get physical */
#define DIOCRLDINFO _IO('d', 115) /* reload disklabel */
+struct dk_inquiry {
+ char vendor[64];
+ char product[128];
+ char revision[64];
+ char serial[64];
+};
+
+#define DIOCINQ _IOR('d', 116, struct dk_inquiry)
+
#endif /* _SYS_DKIO_H_ */