home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
221.lha
/
drinc
/
resources
/
disk.g
< prev
next >
Wrap
Text File
|
1996-02-15
|
1KB
|
61 lines
/*requirespriorinclusionof"exec/libraries.g"*/
type
List_t=unknown14,
Message_t=unknown20,
Interrupt_t=unknown22,
Library_t=unknown34,
DiscResourceUnit_t=struct{
Message_tdru_Message;
Interrupt_tdru_DiscBlock,dru_DiscSync,dru_Index;
},
DiscResource_t=struct{
Library_tdr_Library;
*DiscResourceUnitdr_Current;
ushortdr_Flags,dr_pad;
*Library_tdr_SysLib,dr_CiaResource;
[4]ulongdr_UnitID;
List_tdr_Waiting;
Interrupt_tdr_DiscBlock,dr_DiscSync,dr_Index;
};
ushort
DRB_ALLOC0=0,
DRB_ALLOC1=1,
DRB_ALLOC2=2,
DRB_ALLOC3=3,
DRB_ACTIVE=7,
DRF_ALLOC0=1<<DRB_ALLOC0,
DRF_ALLOC1=1<<DRB_ALLOC1,
DRF_ALLOC2=1<<DRB_ALLOC2,
DRF_ALLOC3=1<<DRB_ALLOC3,
DRF_ACTIVE=1<<DRB_ACTIVE;
uintDSKDMAOFF=0x4000;
*charDISKNAME="disk.resource";
int
DR_ALLOCUNIT=LIB_BASE-0*LIB_VECTSIZE,
DR_FREEUNIT=LIB_BASE-1*LIB_VECTSIZE,
DR_GETUNIT=LIB_BASE-2*LIB_VECTSIZE,
DR_GIVEUNIT=LIB_BASE-3*LIB_VECTSIZE,
DR_GETUNITID=LIB_BASE-4*LIB_VECTSIZE,
DR_LASTCOM=DR_GIVEUNIT;
ulong
DRT_AMIGA=0x00000000,
DRT_37422D2S=0x55555555,
DRT_EMPTY=0xFFFFFFFF;
extern
AllocUnit(ulongunitNum)bool,
FreeUnit(ulongunitNum)void,
GetUnit(*DiskResourceUnit_tunitPointer)*DiskResourceUnit,
GetUnitId(ulongunitNum)ulong,
GiveUnit()void;