2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: AllocUnit() function.
9 #include <proto/disk.h>
10 #include <resources/disk.h>
12 AROS_LH1(BOOL
, AllocUnit
,
13 AROS_LHA(LONG
, unitNum
, D0
),
14 struct DiscResource
*, DiskBase
, 1, Disk
)
18 if (DiskBase
->dr_Flags
& (1 << unitNum
))
20 DiskBase
->dr_Flags
|= 1 << unitNum
;