dcpu16_interrupt(hw->vm, keyboard->interrupt_message);
}
}
-
-void keyboard_vnc_associate(struct dcpu16_hw *hw, rfbScreenInfoPtr rfbScreen) {
- rfbScreen->screenData = hw;
- rfbScreen->kbdAddEvent = keyboard_rfbevent_;
-}
#endif /* HAVE_LIBVNCSERVER */
static
return -EINVAL;
}
-static struct dcpu16_hw hw_ = {
- .vm = NULL,
+
+struct dcpu16_hw_module dcpu16_hw_module_keyboard = {
.name_ = "Generic Keyboard (compatible)",
+
.id_l = 0x7406,
.id_h = 0x30cf,
.ver = 0x0001,
.hwi = keyboard_hwi_,
.cycle = keyboard_cycle_,
.reset = keyboard_reset_,
- .data = (struct keyboard_ *)NULL
-};
-struct dcpu16_hw_module dcpu16_hw_module_keyboard = {
- .template = &hw_,
.data_init = keyboard_data_init_,
.data_free = keyboard_data_free_,
.ctl = keyboard_data_ctl_,