All of the C/C++ code for the shared libraries is in pynq/lib/_pynq in our repository. The displayport code specifically is here. It’s a very thin wrapper around libdrm
pynq/lib/_pynq
Peter