supermario/base/SuperMarioProj.1994-02-09/Interfaces/AIncludes/ENetEqu.a
2019-06-29 23:17:50 +08:00

88 lines
2.4 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: 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