forked from AbleOS/ableos
38 lines
636 B
Plaintext
38 lines
636 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
|
|
|
|
init := fn(): void {
|
|
svga_struct := device.svga_device()
|
|
|
|
pci_dev := pci.check_device(0, 2)
|
|
|
|
return
|
|
}
|
|
|
|
write_reg := fn(index: u32, value: u32): void {
|
|
}
|
|
|
|
SVGA_disable := fn(): void {
|
|
write_reg(reg.SVGA_REG_ENABLE, 0)
|
|
return
|
|
}
|
|
|
|
main := fn(): int {
|
|
a := pci.config_read32(0, 2, 0, 0x8)
|
|
b := "\0\0\0\0\0\0\0"
|
|
|
|
string.display_int(a, b)
|
|
stn.log.info(b)
|
|
|
|
init()
|
|
|
|
return 0
|
|
} |