From fcca015866e6de1c89ff2b1c3c5f9bff44e844b5 Mon Sep 17 00:00:00 2001 From: Able Date: Sat, 14 Sep 2024 04:05:40 -0500 Subject: [PATCH] minor changes --- sysdata/programs/svga_driver/src/main.hb | 9 +++++++-- sysdata/programs/svga_driver/src/reg.hb | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 sysdata/programs/svga_driver/src/reg.hb diff --git a/sysdata/programs/svga_driver/src/main.hb b/sysdata/programs/svga_driver/src/main.hb index 34a9f1e8f..dfd1dd241 100644 --- a/sysdata/programs/svga_driver/src/main.hb +++ b/sysdata/programs/svga_driver/src/main.hb @@ -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 } diff --git a/sysdata/programs/svga_driver/src/reg.hb b/sysdata/programs/svga_driver/src/reg.hb new file mode 100644 index 000000000..c166c261c --- /dev/null +++ b/sysdata/programs/svga_driver/src/reg.hb @@ -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 \ No newline at end of file