summaryrefslogtreecommitdiffstats
path: root/sys/sys/disklabel.h
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-03-19 13:54:15 +0000
committerphk <phk@FreeBSD.org>2002-03-19 13:54:15 +0000
commit4106fb634928e1b6d3744c3b8317083f2c780bfc (patch)
tree045a98068ab44510351eedb7469fd082579845d3 /sys/sys/disklabel.h
parent6718ce496e665b6c2204043dd44f4412da8aebd1 (diff)
downloadFreeBSD-src-4106fb634928e1b6d3744c3b8317083f2c780bfc.zip
FreeBSD-src-4106fb634928e1b6d3744c3b8317083f2c780bfc.tar.gz
Add five GEOM oriented ioctls to get basic information about a geom device.
Diffstat (limited to 'sys/sys/disklabel.h')
-rw-r--r--sys/sys/disklabel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/sys/disklabel.h b/sys/sys/disklabel.h
index a3b927f..4cf1223 100644
--- a/sys/sys/disklabel.h
+++ b/sys/sys/disklabel.h
@@ -418,6 +418,12 @@ struct dos_partition {
#define DIOCWLABEL _IOW('d', 109, int) /* write en/disable label */
+#define DIOCGSECTORSIZE _IOR('d', 128, u_int) /* Get sector size in bytes */
+#define DIOCGMEDIASIZE _IOR('d', 129, off_t) /* Get media size in bytes */
+#define DIOCGFWSECTORS _IOR('d', 130, u_int) /* Get firmware sectorcount */
+#define DIOCGFWHEADS _IOR('d', 131, u_int) /* Get firmware headcount */
+#define DIOCGFWCYLINDERS _IOR('d', 132, u_int) /* Get firmware cyl'scount */
+
#ifdef _KERNEL
/*
OpenPOWER on IntegriCloud