Peeking at Darwin's header files gives some ideas of what we are doing here. We know understand most of the stuff called by XDarwin and WindowServer before mapping the framebuffer.