add mapping between event and fence

As we could not use a scratch register, we need to life with the 30
events we can place in the cmd stream. In theory this should work.
Compile tested only as there are some parts missing to see this
in action.

Signed-off-by: Christian Gmeiner <christian.gmeiner@gmail.com>