Source code to accompany my post "Runtime Negotiation of Xlinks". These routines allow you to configure 2-wire and 5-wire xlinks between devices that don't need to "know" about each other in advance. Such systems are boot-time configurable, allowing communication between devices that may connect via cables or plug-in cards, and thus unknowable in advance. This also illustrates the usage of Static Forwarding mode.
Update: Revision 1.1 adds a few defines that were missing from xlink.h, and adds a simple Wait() function that is needed by these routines.