MiniEthernetDefs.mesa
Copyright © 1985 by Xerox Corporation. All rights reserved.
HGM April 20, 1980 6:23 PM
Andrew Birrell October 28, 1983 3:51 pm
Russ Atkinson (RRA) February 13, 1985 4:46:49 pm PST
Hal Murray, May 24, 1986 4:02:10 pm PDT
DIRECTORY
Endian USING [FWORD],
Pup USING [Address, Socket],
PupType USING [Type];
MiniEthernetDefs: DEFINITIONS = BEGIN
ActivateDriver: PROC [iocb: LONG POINTER] RETURNS [ok: BOOL];
iocb must be 16 word block in first 64k, quad word aligned
KillDriver: PROC;
BorrowTheBuffer: PROC RETURNS [p: LONG POINTER, bytes: CARDINAL];
DriverNotActive: ERROR;
BufferOverflow: ERROR;
SendPacket: PROC [dest: Pup.Address, me: Pup.Socket, type: PupType.Type, id: Endian.FWORD, data: LONG POINTER, bytes: CARDINAL];
ReturnPacket: PROC [type: PupType.Type, id: Endian.FWORD, data: LONG POINTER, bytes: CARDINAL];
RecvPacket: PROC [source: LONG POINTER TO Pup.Address, me: Pup.Socket, data: LONG POINTER, maxBytes: CARDINAL, timeout: PROC RETURNS [BOOL]] RETURNS [bytes: CARDINAL, id: Endian.FWORD, type: PupType.Type];
returns bytes = LAST[CARDINAL] if timeout ?
timedOut: CARDINAL = LAST[CARDINAL];
END.