| Michel,
The EA interface has changed from Version 1.1 to 1.2.
From DECmcc Developer's Toolkit Version V1.1.0 Release Notes
Dated February 1991. I extracted the pertinent information
regarding the EA. I have also included a piece of code that calls
mcc_ea_request_xid for 1.1 and 1.2.
Starting on page 2-7.
.
.
.
2.2.6 Ethernet Access Routines
The Ethernet Access routines provide controlled and
distributed access to the VMS Ethernet device drivers for
Ethernet related DECmcc access modules.
2.2.7 Restrictions -
The current Ethernet Access Routine (V1.1) implementation does
not match what is documented in the MCC SRM V1.1 (pages 578 -
608).
The current implementation differs in the following way: ALL
ARGUMENTS have another "level of indirection" inserted. For
example, if an argument is described as:
"MCC usage: LAN_Address,
mechanism: by reference",
SOFTWARE NOTES FOR DEVELOPMENT ROUTINES AND TOOLS Page 2-8
the current code actually implements:
"MCC usage: pointer to LAN_Address,
mechanism: by reference".
Affected routines are:
- mcc_ea_request_802_packet()
- mcc_ea_request_enet_packet()
- mcc_ea_request_xid()
- mcc_ea_show_enet_device_id()
- mcc_ea_show_enet_devices()
- mcc_ea_test_802_loopback()
In the next available version of the Ethernet Access Routines,
the implementation will be changed to match the MCC SRM V1.1.
If these routines are needed before the next DECmcc version is
available, isolate them in a separate module for easy porting.
.
.
.
MCC_T_ID802 *p_target_addr;
MCC_T_Descriptor *p_rcv_desc;
MCC_T_Descriptor *p_time_stamp;
MCC_T_Unsigned32 *p_io_status;
MCC_T_Descriptor *p_hpd,host_port_used_desc;
MCC_T_Unsigned32 *p_rc,*p_rt;
MCC_T_Descriptor ,
#ifdef MCC_V11
MCC_T_Descriptor *p_hpud = &host_port_used_desc;
#endif
.
.
.
#ifdef MCC_V11
/* Need to use OLD mcc_ea routine interface. */
/* Request 802 XID */
stat = mcc_ea_request_xid(&p_target_addr,&p_hpd,&p_rc,
&p_rt,&p_time_stamp,&p_rcv_desc,&p_hpud,
&p_io_status);
#else
/* Request 802 XID */
stat = mcc_ea_request_xid(p_target_addr,p_hpd,p_rc,p_rt,
p_time_stamp,p_rcv_desc,&host_port_used_desc,
p_io_status);
#endif
|