I was thinking "this looks awfully familiar", and was going to link http://dmitry.gr/?r=05.Projects&proj=33.%20LinuxCard, but it turns out that the code is directly based on that!
For anyone interested, it's still very worth visiting that link, as it describes the whole journey and technical details about how the original DECstation emulation code came to be.