summaryrefslogtreecommitdiffstats
path: root/sys/dev/vinum/vinumvar.h
diff options
context:
space:
mode:
authorgrog <grog@FreeBSD.org>2003-09-29 08:19:06 +0000
committergrog <grog@FreeBSD.org>2003-09-29 08:19:06 +0000
commit1e8036f807bc6bb952385dac744fab0c52054f0e (patch)
treedab6603b5bbacacb82ebe61bdd9dbd2f1ae0ed86 /sys/dev/vinum/vinumvar.h
parent9e3e052c167f43bc18eb06f9a36fe8e286f9991b (diff)
downloadFreeBSD-src-1e8036f807bc6bb952385dac744fab0c52054f0e.zip
FreeBSD-src-1e8036f807bc6bb952385dac744fab0c52054f0e.tar.gz
Revert last commit. It built the kernel module just fine, but broke
world in /sbin. Reported by: erwin Pointy hat to: grog
Diffstat (limited to 'sys/dev/vinum/vinumvar.h')
-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 6130391..12986e04 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)
OpenPOWER on IntegriCloud