diff options
author | simokawa <simokawa@FreeBSD.org> | 2003-08-05 03:11:39 +0000 |
---|---|---|
committer | simokawa <simokawa@FreeBSD.org> | 2003-08-05 03:11:39 +0000 |
commit | 2e2a46ee2995da8f9ae6127ae115b29c2fab3db4 (patch) | |
tree | 81db5c0e4e301186eeff7bc59b7528f40cd8f284 /sys/dev/firewire/firewire.h | |
parent | 8e8a7cd92a57f9aec2866f861b8e4a6e3a6153cb (diff) | |
download | FreeBSD-src-2e2a46ee2995da8f9ae6127ae115b29c2fab3db4.zip FreeBSD-src-2e2a46ee2995da8f9ae6127ae115b29c2fab3db4.tar.gz |
Change device name notation.
- /dev/fw{,mem}X.Y represents the Y'th unit on the X'th bus.
- /dev/fw{,mem}X is an alias of fw{,mem}X.0 for compatibility.
- Clone devices.
Diffstat (limited to 'sys/dev/firewire/firewire.h')
-rw-r--r-- | sys/dev/firewire/firewire.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/firewire/firewire.h b/sys/dev/firewire/firewire.h index b3ff169..b5f6573 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) |