Important: The information in this document is obsolete and should not be used for new development.
L802Detach
TheL802Detach
routine detaches from the LAP Manager a protocol handler for a specific IEEE 802.2 protocol type.DESCRIPTION
You use theL802Detach
routine to remove a protocol handler that you have written and attached using theL802Attach
routine. You call theL802Detach
routine from assembly language by placing the routine selector of 22 in the D0 register and the reference number of the Ethernet, token ring, or FDDI driver in the D2 register that theOpenSlot
orOpenDriver
function returns. Then, you execute a JSR instruction to an offset 2 bytes past the start of the LAP Manager. The start of the LAP Manager is contained in the global variableLAPMgrPtr
($B18).Here are the register contents that you supply on entry and the value that is returned
to you.
Registers on entry D0 22 D2 Reference number of the hardware device driver A1 Pointer to protocol specification
Registers on exit D0 Nonzero if error You must put a pointer to the protocol-type specification for this protocol handler in the A1 register. You must specify exactly the same protocol type as you specified for the
L802Attach
routine when you attached the protocol handler.RESULT CODES
L802Detach
routine returns a nonzero value in the D0 register if there is an error.SEE ALSO
See Inside Macintosh: Devices for information on theOpenSlot
andOpenDriver
functions.