Hardware/WinRing0.cs
changeset 14 51c2f209da6d
parent 1 361e324a0ed4
child 22 e6832d4b89d2
     1.1 --- a/Hardware/WinRing0.cs	Sun Jan 31 19:30:00 2010 +0000
     1.2 +++ b/Hardware/WinRing0.cs	Sun Jan 31 20:57:18 2010 +0000
     1.3 @@ -90,6 +90,8 @@
     1.4        ushort deviceId, byte index);
     1.5      public delegate bool ReadPciConfigDwordExDelegate(uint pciAddress, 
     1.6        uint regAddress, out uint value);
     1.7 +    public delegate bool WritePciConfigDwordExDelegate(uint pciAddress, 
     1.8 +      uint regAddress, uint value);
     1.9  
    1.10      private static InitializeOlsDelegate InitializeOls;
    1.11      private static DeinitializeOlsDelegate DeinitializeOls;
    1.12 @@ -103,6 +105,8 @@
    1.13      public static SetPciMaxBusIndexDelegate SetPciMaxBusIndex;
    1.14      public static FindPciDeviceByIdDelegate FindPciDeviceById;
    1.15      public static ReadPciConfigDwordExDelegate ReadPciConfigDwordEx;
    1.16 +    public static WritePciConfigDwordExDelegate WritePciConfigDwordEx;
    1.17 +
    1.18  
    1.19      private static void GetDelegate<T>(string entryPoint, out T newDelegate) 
    1.20        where T : class 
    1.21 @@ -127,6 +131,7 @@
    1.22        GetDelegate("SetPciMaxBusIndex", out SetPciMaxBusIndex);
    1.23        GetDelegate("FindPciDeviceById", out FindPciDeviceById);
    1.24        GetDelegate("ReadPciConfigDwordEx", out ReadPciConfigDwordEx);
    1.25 +      GetDelegate("WritePciConfigDwordEx", out WritePciConfigDwordEx);
    1.26  
    1.27        try {
    1.28          if (InitializeOls != null && InitializeOls())