2019-06-20 18:13:06 +02:00
|
|
|
// The OS/K Team licenses this file to you under the MIT license.
|
|
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
|
2019-06-21 22:19:55 +02:00
|
|
|
#include <pc/device.h>
|
2019-06-20 18:13:06 +02:00
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
long keybdev_poweron(ctx_t *ctx, dev_t *dev)
|
|
|
|
{
|
|
|
|
dev->state = DEVGOOD;
|
|
|
|
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
//----------------------------------------------------------------------------//
|
|
|
|
|
|
|
|
dev_t keybdev =
|
|
|
|
{
|
|
|
|
.type = "keyboard",
|
|
|
|
.name = "keyboard device",
|
|
|
|
.modl = "",
|
|
|
|
.vend = "The OS/K Team",
|
|
|
|
|
|
|
|
.major = KARCH_MAJOR,
|
|
|
|
.minor = KARCH_MINOR,
|
|
|
|
.revis = KARCH_REVIS,
|
|
|
|
|
|
|
|
.fpwon = keybdev_poweron,
|
|
|
|
};
|
|
|
|
|
|
|
|
|