Add PBSyncStatus() and its serial status commands

This commit is contained in:
Laurent Vivier 2005-08-31 23:35:08 +00:00
parent 2c6363842c
commit 38e3d2758f
2 changed files with 18 additions and 0 deletions

View File

@ -393,6 +393,16 @@ PBControlSync:
unlk %fp unlk %fp
rts rts
/* OSErr PBStatusSync(ParmBlkPtr paramBlock) */
.global PBStatusSync
PBStatusSync:
link %fp, #0
move.l 8(%fp), %a0
dc.w 0xA005 /* PBStatusSync */
unlk %fp
rts
/* void SysError(short errorCode) */ /* void SysError(short errorCode) */
.global SysError .global SysError

View File

@ -246,11 +246,19 @@ extern OSErr Gestalt(unsigned long selector, long * response);
extern void ReadLocation(MachineLocation * loc); extern void ReadLocation(MachineLocation * loc);
extern void* NewPtr(unsigned long byteCount); extern void* NewPtr(unsigned long byteCount);
extern void DisposePtr(void* ptr); extern void DisposePtr(void* ptr);
enum {
kSERDInputCount = 2, /* get available characters count (SerGetBuf) */
kSERDStatus = 8, /* get status information (SerStatus) */
kSERDVersion = 9, /* get driver version */
};
extern OSErr PBReadSync(ParamBlockRec_t* paramBlock); extern OSErr PBReadSync(ParamBlockRec_t* paramBlock);
extern OSErr PBWriteSync(ParamBlockRec_t* paramBlock); extern OSErr PBWriteSync(ParamBlockRec_t* paramBlock);
extern OSErr PBOpenSync(ParmBlkPtr paramBlock); extern OSErr PBOpenSync(ParmBlkPtr paramBlock);
extern OSErr PBCloseSync(ParmBlkPtr paramBlock); extern OSErr PBCloseSync(ParmBlkPtr paramBlock);
extern OSErr PBControlSync(ParmBlkPtr paramBlock); extern OSErr PBControlSync(ParmBlkPtr paramBlock);
extern OSErr PBStatusSync(ParmBlkPtr paramBlock);
extern void SysError(short errorCode); extern void SysError(short errorCode);
typedef u_int32_t KeyMap[4]; typedef u_int32_t KeyMap[4];