sys7.1-doc-wip/Interfaces/AIncludes/ENetEqu.a

88 lines
2.4 KiB
Plaintext
Raw Normal View History

2019-07-27 14:37:48 +00:00
;
; File: ENetEqu.a
;
; Contains: xxx put contents here xxx
;
; Written by: xxx put writers here xxx
;
; Copyright: © 1991 by Apple Computer, Inc., all rights reserved.
;
; Change History (most recent first):
;
; <3> 8/15/91 MH Add conditional assembly wrapper
; <2> 1/30/91 gbm sab, #38: Change the already including this file variable to
; all uppercase (for security reasons)
;
; To Do:
;
;
; File: ENETEqu.a - equates for the Ethernet driver
;
; Version 1.1a1
;
; Copyright 1987 Apple Computer, Inc. All Rights Reserved
;
; Control codes.
IF &TYPE('__INCLUDINGENETEQU__') = 'UNDEFINED' THEN
__INCLUDINGENETEQU__ SET 1
ENetSetGeneral EQU 253 ; Set "general" mode
ENetGetInfo EQU 252 ; Get info
ENetRdCancel EQU 251 ; Cancel read
ENetRead EQU 250 ; Read
ENetWrite EQU 249 ; Write
ENetDetachPH EQU 248 ; Detach protocol handler
ENetAttachPH EQU 247 ; Attach protocol handler
ENetAddMulti EQU 246 ; Add a multicast address
ENetDelMulti EQU 245 ; Delete a multicast address
FirstENET EQU ENetDelMulti ; First ENET command
LastENET EQU ENetSetGeneral ; Last ENET command
; ENET queue element standard structure: arguments passed in the CSParam area
EProtType EQU $1C ; Offset to protocol type code {csParam}
EMultiAddr EQU $1C ; Multicast address (EAddMulti,EDelMulti) {csParam}
EHandler EQU EProtType+2 ; Offset to protocol handler
EWDSPointer EQU EHandler ; WDS pointer (EWrite)
EBuffPtr EQU EHandler ; Buffer pointer (ERead,EGetInfo)
EKillQEl EQU EHandler ; QEl pointer (ERdCancel)
EBuffSize EQU EBuffPtr+4 ; Buffer size (ERead,EGetInfo)
EDataSize EQU EBuffSize+2 ; Actual data size (Eread)
;---------------------------------------
; Ethernet packet header
;---------------------------------------
EDestAddr EQU 0 ; Offset to destination address
ESrcAddr EQU 6 ; Offset to source address
EType EQU 12 ; Offset to data link type
EHdrSize EQU 14 ; Ethernet header size
EMinDataSz EQU 46 ; Minimum data size
EMaxDataSz EQU 1500 ; Maximum data size
EAddrSz EQU 6 ; Size of an ethernet node address
;
; Errors and misc.
;
eLenErr EQU -92 ; Length error ddpLenErr
eMultiErr EQU -91 ; Multicast address error ddpSktErr
EAddrRType EQU 'eadr' ; Alternate address resource type
;
; Link specific 'atlk' AGetInfo call
;
ESpeed EQU 10000000 ; Link speed in bits/sec
ENDIF ; ...already included