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_,