forked from AbleOS/ableos
29 lines
608 B
Plaintext
29 lines
608 B
Plaintext
device := @use("device.hb")
|
|
pci := @use("../../../libraries/pci/src/lib.hb")
|
|
|
|
stn := @use("../../../libraries/stn/src/lib.hb");
|
|
.{string, memory, buffer, log} := stn
|
|
|
|
reg := @use("reg.hb")
|
|
PCI_VENDOR_ID_VMWARE := 0x15AD
|
|
PCI_DEVICE_ID_VMWARE_SVGA2 := 0x405
|
|
|
|
write_reg := fn(index: u32, value: u32): void {
|
|
}
|
|
|
|
SVGA_disable := fn(): void {
|
|
write_reg(reg.SVGA_REG_ENABLE, 0)
|
|
return
|
|
}
|
|
|
|
main := fn(): int {
|
|
svga_dev := device.svga_device()
|
|
|
|
device.setup_device(&svga_dev)
|
|
device.setup_framebuffer(&svga_dev)
|
|
|
|
device.clear_screen(&svga_dev, 0xFF)
|
|
|
|
device.draw_pixel(&svga_dev, 100, 100, 0xFF0000)
|
|
return 0
|
|
} |