minor changes

This commit is contained in:
Able 2024-09-14 04:05:40 -05:00
parent cc9337348e
commit fcca015866
2 changed files with 11 additions and 2 deletions
sysdata/programs/svga_driver/src

View file

@ -4,6 +4,8 @@ pci := @use("../../../libraries/pci/src/lib.hb")
stn := @use("../../../libraries/stn/src/lib.hb");
.{string, memory, buffer, log} := stn
reg := @use("rel:reg.hb")
PCI_VENDOR_ID_VMWARE := 0x15AD
PCI_DEVICE_ID_VMWARE_SVGA2 := 0x405
@ -16,8 +18,11 @@ init := fn(): void {
return
}
SVGA_Disable := fn(): void {
//SVGA_WriteReg(SVGA_REG_ENABLE, 0);
write_reg := fn(index: u32, value: u32): void {
}
SVGA_disable := fn(): void {
write_reg(reg.SVGA_REG_ENABLE, 0)
return
}

View file

@ -0,0 +1,4 @@
SVGA_REG_ENABLE_DISABLE := 0
SVGA_REG_ENABLE_ENABLE := 1
SVGA_REG_ENABLE_HIDE := 2
SVGA_REG_ENABLE_ENABLE_HIDE := SVGA_REG_ENABLE_ENABLE | SVGA_REG_ENABLE_HIDE