mirror of
https://github.com/vivier/EMILE.git
synced 2025-01-03 12:31:57 +00:00
Add DrvrRemove()
This commit is contained in:
parent
39af084fed
commit
4d96dcd5a7
@ -116,6 +116,16 @@ static inline OSErr PBWriteSync(ParamBlockRec_t* paramBlock)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static inline OSErr DrvrRemove(int refNum)
|
||||
{
|
||||
register OSErr ret asm("%%d0");
|
||||
asm("move.l %1, %%d0\n"
|
||||
Trap(_DrvrRemove)
|
||||
: "=d" (ret) : "g" (refNum) : UNPRESERVED_REGS);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
extern OSErr OpenDriver(ConstStr255Param name, short *drvrRefNum);
|
||||
extern OSErr CloseDriver(short refNum);
|
||||
extern OSErr SerGetBuf(short refNum, long *count);
|
||||
|
@ -23,6 +23,7 @@
|
||||
#define _PBReadSync 0xA002
|
||||
#define _PBWriteSync 0xA003
|
||||
#define _PBStatusSync 0xA005
|
||||
#define _DvrRemove 0xA03E
|
||||
#define _ReadXPRam 0xA051
|
||||
#define _SlotManager 0xA06E
|
||||
#define _SCSIDispatch 0xA815
|
||||
|
Loading…
Reference in New Issue
Block a user