forked from AbleOS/ableos
28 lines
569 B
Plaintext
28 lines
569 B
Plaintext
|
device := @use("rel:device.hb")
|
||
|
pci := @use("../../../libraries/pci/src/lib.hb")
|
||
|
|
||
|
stn := @use("../../../libraries/stn/src/lib.hb");
|
||
|
.{string, memory, buffer, log} := stn
|
||
|
|
||
|
PCI_VENDOR_ID_VMWARE := 0x15AD
|
||
|
PCI_DEVICE_ID_VMWARE_SVGA2 := 0x405
|
||
|
|
||
|
init := fn(): void {
|
||
|
svga_struct := device.svga_device()
|
||
|
|
||
|
if pci.find_device(PCI_VENDOR_ID_VMWARE, PCI_DEVICE_ID_VMWARE_SVGA2, svga_struct.pciAddr) {
|
||
|
log.error("No VMware SVGA device found.\0")
|
||
|
}
|
||
|
return
|
||
|
}
|
||
|
|
||
|
SVGA_Disable := fn(): void {
|
||
|
//SVGA_WriteReg(SVGA_REG_ENABLE, 0);
|
||
|
return
|
||
|
}
|
||
|
|
||
|
main := fn(): int {
|
||
|
init()
|
||
|
|
||
|
return 0
|
||
|
}
|