Make a #define for the highest legal disk unit (0x1ff)

This commit is contained in:
Poul-Henning Kamp 2000-12-15 16:41:40 +00:00
parent 18d87306fd
commit e6c8667208
3 changed files with 9 additions and 0 deletions

View File

@ -427,6 +427,9 @@ struct dos_partition {
| TYPE |UNIT_2 | SLICE | MAJOR? | UNIT |PART |
-----------------------------------------------------------------
*/
#define DKMAXUNIT 0x1ff /* Highest disk unit number */
#define dkmakeminor(unit, slice, part) \
(((slice) << 16) | (((unit) & 0x1e0) << 16) | \
(((unit) & 0x1f) << 3) | (part))

View File

@ -427,6 +427,9 @@ struct dos_partition {
| TYPE |UNIT_2 | SLICE | MAJOR? | UNIT |PART |
-----------------------------------------------------------------
*/
#define DKMAXUNIT 0x1ff /* Highest disk unit number */
#define dkmakeminor(unit, slice, part) \
(((slice) << 16) | (((unit) & 0x1e0) << 16) | \
(((unit) & 0x1f) << 3) | (part))

View File

@ -427,6 +427,9 @@ struct dos_partition {
| TYPE |UNIT_2 | SLICE | MAJOR? | UNIT |PART |
-----------------------------------------------------------------
*/
#define DKMAXUNIT 0x1ff /* Highest disk unit number */
#define dkmakeminor(unit, slice, part) \
(((slice) << 16) | (((unit) & 0x1e0) << 16) | \
(((unit) & 0x1f) << 3) | (part))