forked from koniifer/ableos
minor changes
This commit is contained in:
parent
cc9337348e
commit
fcca015866
|
@ -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
|
||||
}
|
||||
|
||||
|
|
4
sysdata/programs/svga_driver/src/reg.hb
Normal file
4
sysdata/programs/svga_driver/src/reg.hb
Normal 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
|
Loading…
Reference in a new issue