Can't sleep so write more source codes! add scan bus functions to get power caps...
[reactos.git] / reactos / drivers / bus / pcix / pci / config.c
index e5382bf..51b9998 100644 (file)
@@ -24,7 +24,7 @@ PciGetAdjustedInterruptLine(IN PPCI_PDO_EXTENSION PdoExtension)
 {
     UCHAR InterruptLine = 0, PciInterruptLine;
     ULONG Length;
-    
+
     /* Does the device have an interrupt pin? */
     if (PdoExtension->InterruptPin)
     {
@@ -102,6 +102,22 @@ PciWriteDeviceConfig(IN PPCI_PDO_EXTENSION DeviceExtension,
                             FALSE);
 }
 
+VOID
+NTAPI
+PciReadDeviceConfig(IN PPCI_PDO_EXTENSION DeviceExtension,
+                    IN PVOID Buffer,
+                    IN ULONG Offset,
+                    IN ULONG Length)
+{
+    /* Call the generic worker function */
+    PciReadWriteConfigSpace(DeviceExtension->ParentFdoExtension,
+                            DeviceExtension->Slot,
+                            Buffer,
+                            Offset,
+                            Length,
+                            TRUE);
+}
+
 VOID
 NTAPI
 PciReadSlotConfig(IN PPCI_FDO_EXTENSION DeviceExtension,