created register_interrupt_handler and data structures for handler types