sys7.1-doc-wip/Interfaces/AIncludes/CommResources.a
2019-07-27 22:37:48 +08:00

236 lines
4.6 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

;_____________________________________________
; File: CommResources.a
;
; Contains: Assembler Interface to the Communications Resource Manager
;
; Written by: Byron Han
;
; Copyright: © 1988-1991, 1993 by Apple Computer, Inc.
; All rights reserved.
;
; Change History (most recent first):
;
; <SM2> 9/28/93 PN Adding two new calls AddStdPort and RemoveStdPort to the
; CommResourceManager from DBLite gibbly.
; <13> 10/10/91 MH Remove erroneous _ from in front of the selector in the macro
; _CRMReserveRF.
; <12> 8/27/91 CH Updated interface header for consistency.
; <11> 8/20/91 BH move CRMReserveRF into public interfaces
; <10> 8/9/91 JNG Moved CRMReleaseRF into main interfaces
; <9> 7/30/91 MH removed outer parens from conditional assembly directives to
; match other files and Data Base output
; <8> 7/9/91 BH add CRMGetToolNamedResource
; <7> 7/3/91 BH add CRMParseCAPSResource
; <6> 6/25/91 JNG Add CRMIsDriverOpen
; <5> 6/24/91 BH change wrapper to conform to standard
; <4> 1/30/91 gbm sab, #38: Change the already including this file variable to
; all uppercase (for security reasons)
; <3> 4/27/90 gbm DID NOT INCLUDE A CHECKIN COMMENT - BAD BAD BAD!!!!!
; <2> 4/27/90 gbm DID NOT USE CHECKIN ACTIVE SCRIPT - BAD BAD BAD!!!!
; was going to prevent redefinition warnings by avoiding multiple
; inclusions, but some really smart engineer already did that
; <1> 3/13/90 BBH first checked in
;
; To Do:
;_____________________________________________
IF &TYPE('__INCLUDINGCOMMRESOURCES__') = 'UNDEFINED' THEN
__INCLUDINGCOMMRESOURCES__ SET 1
IF &TYPE('__INCLUDINGCTBUTILITIES__') = 'UNDEFINED' THEN
INCLUDE 'CTBUtilities.a'
ENDIF
; current version of the CRM
curCRMVersion EQU 2
; local/real resource ID mapping
classCM EQU 'cbnd'
classFT EQU 'fbnd'
classTM EQU 'tbnd'
; constants general to the use of the Communications Resource Manager
crmType EQU 9
crmRecVersion EQU 1
; error codes
crmGenericError EQU -1
crmNoErr EQU 0
CRMRec RECORD 0
qLink ds.l 1
qType ds.w 1
crmVersion ds.w 1
crmPrivate ds.l 1
crmReserved ds.w 1
crmDeviceType ds.l 1
crmDeviceID ds.l 1
crmAttributes ds.l 1
crmStatus ds.l 1
crmRefCon ds.l 1
EndR
InitCRM EQU $501
CRMGetHeader EQU $502
CRMInstall EQU $503
CRMRemove EQU $504
CRMSearch EQU $505
CRMGetCRMVersion EQU $506
CRMGetResource EQU $507
CRMGet1Resource EQU $508
CRMGetIndResource EQU $509
CRMGet1IndResource EQU $50A
CRMGetNamedResource EQU $50B
CRMGet1NamedResource EQU $50C
CRMReleaseResource EQU $50D
CRMGetIndex EQU $50E
CRMLocalToRealID EQU $50F
CRMRealToLocalID EQU $510
CRMGetIndToolName EQU $511
CRMReserveRF EQU $513
CRMReleaseRF EQU $514
CRMFindCommunications EQU $51A
CRMIsDriverOpen EQU $521
CRMGetToolResource EQU $523
CRMReleaseToolResource EQU $524
CRMParseCAPSResource EQU $525
CRMGetToolNamedResource EQU $526
CRMAddStdPort EQU $527
CRMRemoveStdPort EQU $528
MACRO
_InitCRM
_CTBCall #InitCRM
ENDM
MACRO
_CRMGetHeader
_CTBCall #CRMGetHeader
ENDM
MACRO
_CRMInstall
_CTBCall #CRMInstall
ENDM
MACRO
_CRMRemove
_CTBCall #CRMRemove
ENDM
MACRO
_CRMSearch
_CTBCall #CRMSearch
ENDM
MACRO
_CRMGetCRMVersion
_CTBCall #CRMGetCRMVersion
ENDM
MACRO
_CRMGetResource
_CTBCall #CRMGetResource
ENDM
MACRO
_CRMGet1Resource
_CTBCall #CRMGet1Resource
ENDM
MACRO
_CRMGetIndResource
_CTBCall #CRMGetIndResource
ENDM
MACRO
_CRMGet1IndResource
_CTBCall #CRMGet1IndResource
ENDM
MACRO
_CRMGetNamedResource
_CTBCall #CRMGetNamedResource
ENDM
MACRO
_CRMGet1NamedResource
_CTBCall #CRMGet1NamedResource
ENDM
MACRO
_CRMReleaseResource
_CTBCall #CRMReleaseResource
ENDM
MACRO
_CRMGetIndex
_CTBCall #CRMGetIndex
ENDM
MACRO
_CRMLocalToRealID
_CTBCall #CRMLocalToRealID
ENDM
MACRO
_CRMRealToLocalID
_CTBCall #CRMRealToLocalID
ENDM
MACRO
_CRMGetIndToolName
_CTBCall #CRMGetIndToolName
ENDM
MACRO
_CRMFindCommunications
_CTBCall #CRMFindCommunications
ENDM
MACRO
_CRMIsDriverOpen
_CTBCall #CRMIsDriverOpen
ENDM
MACRO
_CRMGetToolResource
_CTBCall #CRMGetToolResource
ENDM
MACRO
_CRMReleaseToolResource
_CTBCall #CRMReleaseToolResource
ENDM
MACRO
_CRMParseCAPSResource
_CTBCall #CRMParseCAPSResource
ENDM
MACRO
_CRMReserveRF
_CTBCall #CRMReserveRF
ENDM
MACRO
_CRMReleaseRF
_CTBCall #CRMReleaseRF
ENDM
MACRO
_CRMGetToolNamedResource
_CTBCall #CRMGetToolNamedResource
ENDM
MACRO
_CRMAddStdPort
_CTBCall #CRMAddStdPort
ENDM
MACRO
_CRMRemoveStdPort
_CTBCall #CRMRemoveStdPort
ENDM
ENDIF ; already included