Sync to trunk (r44371)
[reactos.git] / reactos / drivers / video / videoprt / interrupt.c
index 54a5b95..254eedc 100644 (file)
@@ -110,11 +110,12 @@ VP_STATUS
 NTAPI
 VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
 {
-    PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
+#ifndef _M_AMD64
+   PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
     BOOLEAN InterruptValid;
 
     /* Get the device extension */
-    DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
+   DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
 
     /* Fail if the driver didn't register an ISR */
     if (!DeviceExtension->DriverExtension->InitializationData.HwInterrupt)
@@ -125,14 +126,19 @@ VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
 
     /* Re-enable the interrupt and return */
     InterruptValid = HalEnableSystemInterrupt(DeviceExtension->InterruptVector,
-                                              0,
-                                              DeviceExtension->InterruptLevel);
+      0,
+      DeviceExtension->InterruptLevel);
 
     /* Make sure the interrupt was valid */
     ASSERT(InterruptValid == TRUE);
 
     /* Return to caller */
     return NO_ERROR;
+#else
+    /* FIXME: Function still present? If so what to use instead of HalEnableSystemInterrupt? */
+    UNIMPLEMENTED;
+    return ERROR_INVALID_FUNCTION;
+#endif
 }
 
 /*
@@ -142,10 +148,11 @@ VP_STATUS
 NTAPI
 VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
 {
-    PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
+#ifndef _M_AMD64
+   PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
 
     /* Get the device extension */
-    DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
+   DeviceExtension = VIDEO_PORT_GET_DEVICE_EXTENSION(HwDeviceExtension);
 
     /* Fail if the driver didn't register an ISR */
     if (!DeviceExtension->DriverExtension->InitializationData.HwInterrupt)
@@ -156,6 +163,11 @@ VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
 
     /* Disable the interrupt and return */
     HalDisableSystemInterrupt(DeviceExtension->InterruptVector,
-                              0);
+      0);
     return NO_ERROR;
+#else
+    /* FIXME: Function still present? If so what to use instead of HalDisableSystemInterrupt? */
+    UNIMPLEMENTED;
+    return ERROR_INVALID_FUNCTION;
+#endif
 }