|##########| |#MAGIC #|CLABLNKG |#PROJECT #|"" |#PATHS #|"StdProject" |#FLAGS #|xx-x-x--xx----x----------------- |#USERSW #|-------------------------------- |#USERMASK#|-------------------------------- |#SWITCHES#|x----xxxxx-xx--- |##########| DEFINITION MODULE BattMemResource; (* $A- *) |S. Herr, 01.10.1992 FROM Exec IMPORT LibraryPtr; FROM System IMPORT Regs; |Bit-Offsets & Längen CONST |Amiga-spezifisch : Bits 0-31 amigaAmnesiaAddr = 0; amigaAmnesiaLen = 1; scsiTimeoutAddr = 1; scsiTimeoutLen = 1; scsiLUnsAddr = 2; scsiLUnsLen = 1; |AMIX-spezisfisch : Bits 32-63 |Shared : Bits 64 und höher sharedAmnesiaAddr = 64; sharedAmnesiaLen = 1; scsiHostIdAddr = 65; scsiHostIdLen = 3; scsiSyncXferAddr = 68; scsiSyncXferLen = 1; VAR BattMemBase : LibraryPtr; LIBRARY BattMemBase BY -6 PROCEDURE ObtainBattSemaphore(); LIBRARY BattMemBase BY -12 PROCEDURE ReleaseBattSemaphore():LONGCARD; |Achtung: ReadBattMem erfolgreich, wenn Rückgabewert FALSE ist! LIBRARY BattMemBase BY -18 PROCEDURE ReadBattMem( buffer IN A0 : ANYPTR; offset IN D0 : LONGCARD; len IN D1 : LONGCARD):LONGBOOL; LIBRARY BattMemBase BY -24 PROCEDURE WriteBattMem( buffer IN A0 : ANYPTR; offset IN D0 : LONGCARD; len IN D1 : LONGCARD):LONGBOOL; END BattMemResource.