tcmode: consolidate event handlers, use eventmask

Signed-off-by: Christopher Larson <chris_larson@mentor.com>