mirror of
https://gitlab.os-k.eu/os-k-team/kvisc.git
synced 2023-08-25 14:05:46 +02:00
40 lines
620 B
C
40 lines
620 B
C
// The OS/K Team licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
#include <dv/dev.h>
|
|
|
|
long cpudev_testfn(ctx_t *ctx, dev_t *dev)
|
|
{
|
|
assert(dev == &cpudev);
|
|
|
|
rax = 4;
|
|
rdx = 3;
|
|
|
|
return 0;
|
|
}
|
|
|
|
long cpudev_poweron(ctx_t *ctx, dev_t *dev)
|
|
{
|
|
assert(dev == &cpudev);
|
|
|
|
dev->fslots[0] = cpudev_testfn;
|
|
dev->state = DEVGOOD;
|
|
|
|
return 0;
|
|
}
|
|
|
|
dev_t cpudev =
|
|
{
|
|
.type = "cpu",
|
|
.name = "K-CPU",
|
|
.modl = "Prisma 1",
|
|
.vend = "The OS/K Team",
|
|
|
|
.major = 0,
|
|
.minor = 1,
|
|
.revis = 0,
|
|
|
|
.fpwon = cpudev_poweron,
|
|
};
|
|
|