mirror of
https://github.com/vivier/EMILE.git
synced 2024-12-23 01:29:34 +00:00
Add PBSyncStatus() and its serial status commands
This commit is contained in:
parent
2c6363842c
commit
38e3d2758f
@ -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
|
||||||
|
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user