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
rewrite the device subsystem interfaces (#48)
[lunaix-os.git]
/
lunaix-os
/
arch
/
x86
/
hal
/
ps2kbd.c
diff --git
a/lunaix-os/arch/x86/hal/ps2kbd.c
b/lunaix-os/arch/x86/hal/ps2kbd.c
index 02e98d1d8532afc8254fd5ba8be66c6d0a1f05a5..ee4a67e0f99855acb884cd8fc5b87fe386ddcea6 100644
(file)
--- a/
lunaix-os/arch/x86/hal/ps2kbd.c
+++ b/
lunaix-os/arch/x86/hal/ps2kbd.c
@@
-215,7
+215,7
@@
ps2_device_post_cmd(char cmd, char arg)
}
static int
}
static int
-ps2_kbd_
init(struct device_def* devdef
)
+ps2_kbd_
create(struct device_def* devdef, morph_t* obj
)
{
memset(&cmd_q, 0, sizeof(cmd_q));
{
memset(&cmd_q, 0, sizeof(cmd_q));
@@
-569,8
+569,8
@@
ps2_issue_dev_cmd(char cmd, u16_t arg)
}
static struct device_def devrtc_i8042kbd = {
}
static struct device_def devrtc_i8042kbd = {
-
.name = "i8042 Keyboard"
,
-
.class = DEVCLASS(DEVIF_SOC, DEVFN_INPUT, DEV_KBD
),
- .init = ps2_kbd_init
+
def_device_class(INTEL, INPUT, KBD)
,
+
def_device_name("i8042 Keyboard"
),
+ def_on_create(ps2_kbd_create)
};
EXPORT_DEVICE(i8042_kbd, &devrtc_i8042kbd, load_onboot);
};
EXPORT_DEVICE(i8042_kbd, &devrtc_i8042kbd, load_onboot);