git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
feat: gfxm: a layer provides user space access to low level interfacing of graphic...
[lunaix-os.git]
/
lunaix-os
/
hal
/
char
/
ps2kbd.c
diff --git
a/lunaix-os/hal/char/ps2kbd.c
b/lunaix-os/hal/char/ps2kbd.c
index f59dcf30a35f96025e83954e68b5395a60b7d37c..c86350bc190576158d3b615b63f948838e8dda25 100644
(file)
--- a/
lunaix-os/hal/char/ps2kbd.c
+++ b/
lunaix-os/hal/char/ps2kbd.c
@@
-224,7
+224,7
@@
ps2_kbd_init(struct device_def* devdef)
kbd_state.translation_table = scancode_set2;
kbd_state.state = KBD_STATE_KWAIT;
kbd_state.translation_table = scancode_set2;
kbd_state.state = KBD_STATE_KWAIT;
- kbd_idev = input_add_device(
"i8042-kbd"
);
+ kbd_idev = input_add_device(
&devdef->class, devdef->name
);
/* FIXME This require systematical rework! */
// acpi_context* acpi_ctx = acpi_get_context();
/* FIXME This require systematical rework! */
// acpi_context* acpi_ctx = acpi_get_context();
@@
-575,8
+575,8
@@
ps2_issue_dev_cmd(char cmd, u16_t arg)
}
static struct device_def devrtc_i8042kbd = {
}
static struct device_def devrtc_i8042kbd = {
- .name = "
ps2 k
eyboard",
- .class = DEVCLASS(DEVIF_SOC, DEVFN_INPUT, DEV_
X86LEGACY, 0
),
+ .name = "
i8042 K
eyboard",
+ .class = DEVCLASS(DEVIF_SOC, DEVFN_INPUT, DEV_
KBD
),
.init = ps2_kbd_init
};
EXPORT_DEVICE(i8042_kbd, &devrtc_i8042kbd, load_timerstage);
.init = ps2_kbd_init
};
EXPORT_DEVICE(i8042_kbd, &devrtc_i8042kbd, load_timerstage);