Make a #define for the highest legal disk unit (0x1ff)
This commit is contained in:
parent
18d87306fd
commit
e6c8667208
@ -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))
|
||||
|
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user