Initial code to start dispatching coprocessor events.

This code doesn't work yet.