public static int AcpiOsWritePciConfiguration(PciID *PciId, uint Register, ulong Value, uint Width) { Pci.Write(PciId->Bus, PciId->Device, PciId->Function, (ushort)Register, (uint)Value, Width / 8); return(AE_OK); }
public static int AcpiOsReadPciConfiguration(PciID *PciId, uint Register, ulong *Value, uint Width) { *Value = Pci.Read(PciId->Bus, PciId->Device, PciId->Function, (ushort)Register, Width / 8); return(AE_OK); }