aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/vinum
diff options
context:
space:
mode:
authorGreg Lehey <grog@FreeBSD.org>2003-09-29 08:19:06 +0000
committerGreg Lehey <grog@FreeBSD.org>2003-09-29 08:19:06 +0000
commit692db2e5c9ff94af76feb2bedfe7de5b3ddbfb82 (patch)
treedab6603b5bbacacb82ebe61bdd9dbd2f1ae0ed86 /sys/dev/vinum
parent5774cead7a1697dd5c9a9c289791193d9e2690d9 (diff)
Notes
Diffstat (limited to 'sys/dev/vinum')
-rw-r--r--sys/dev/vinum/vinumvar.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/dev/vinum/vinumvar.h b/sys/dev/vinum/vinumvar.h
index 61303915444a2..12986e04c4366 100644
--- a/sys/dev/vinum/vinumvar.h
+++ b/sys/dev/vinum/vinumvar.h
@@ -126,6 +126,16 @@ enum constants {
#define OBJTYPE(x) ((minor(x) >> VINUM_TYPE_SHIFT) & 3)
+ /* Create device minor numbers */
+#define VINUMDEV(o, t) makedev (VINUM_CDEV_MAJOR, VINUMMINOR (o, t))
+
+#define VINUM_VOL(v) makedev (VINUM_CDEV_MAJOR, \
+ VINUMMINOR (v, VINUM_VOLUME_TYPE))
+#define VINUM_PLEX(p) makedev (VINUM_CDEV_MAJOR, \
+ VINUMMINOR (p, VINUM_PLEX_TYPE))
+#define VINUM_SD(s) makedev (VINUM_CDEV_MAJOR, \
+ VINUMMINOR (s, VINUM_SD_TYPE))
+
/* extract device type */
#define DEVTYPE(x) ((minor (x) >> VINUM_TYPE_SHIFT) & 3)