summaryrefslogtreecommitdiff
path: root/sys/dev/firewire/firewire.h
diff options
context:
space:
mode:
authorHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-08-05 03:11:39 +0000
committerHidetoshi Shimokawa <simokawa@FreeBSD.org>2003-08-05 03:11:39 +0000
commita160e00e41cea0bee365630583cd5d2a8ce38f84 (patch)
tree81db5c0e4e301186eeff7bc59b7528f40cd8f284 /sys/dev/firewire/firewire.h
parentc357858ad71c0ee0bdaa2eec3148cf64e05c0b22 (diff)
Notes
Diffstat (limited to 'sys/dev/firewire/firewire.h')
-rw-r--r--sys/dev/firewire/firewire.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/firewire.h b/sys/dev/firewire/firewire.h
index b3ff16928ca0..b5f6573d6623 100644
--- a/sys/dev/firewire/firewire.h
+++ b/sys/dev/firewire/firewire.h
@@ -393,7 +393,8 @@ struct fw_crom_buf {
#define unit2minor(x) (((x) & 0xff) | (((x) << 8) & ~0xffff))
#endif
-#define UNIT2MIN(x) (((x) & 0xff) << 8)
+#define MAKEMINOR(f, u, s) \
+ unit2minor((f) | (((u) & 0xff) << 8) | (s & 0xff))
#define DEV2UNIT(x) ((dev2unit(x) & 0xff00) >> 8)
#define DEV2SUB(x) (dev2unit(x) & 0xff)