1 added + 2 modified, total 3 files
reactos/drivers/video/videoprt
diff -N interrupt.c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ interrupt.c 4 Mar 2004 18:51:58 -0000 1.1
@@ -0,0 +1,73 @@
+/*
+ * VideoPort driver
+ *
+ * Copyright (C) 2002, 2003, 2004 ReactOS Team
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; see the file COPYING.LIB.
+ * If not, write to the Free Software Foundation,
+ * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id: interrupt.c,v 1.1 2004/03/04 18:51:58 navaraf Exp $
+ */
+
+#include "videoprt.h"
+
+/*
+ * @implemented
+ */
+
+VP_STATUS STDCALL
+VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
+{
+ PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
+ BOOLEAN Status;
+
+ DPRINT("VideoPortEnableInterrupt\n");
+
+ DeviceExtension = CONTAINING_RECORD(
+ HwDeviceExtension,
+ VIDEO_PORT_DEVICE_EXTENSION,
+ MiniPortDeviceExtension);
+
+ Status = HalEnableSystemInterrupt(
+ DeviceExtension->InterruptVector,
+ 0,
+ DeviceExtension->InterruptLevel);
+
+ return Status ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
+}
+
+/*
+ * @implemented
+ */
+
+VP_STATUS STDCALL
+VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
+{
+ PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
+ BOOLEAN Status;
+
+ DPRINT("VideoPortDisableInterrupt\n");
+
+ DeviceExtension = CONTAINING_RECORD(
+ HwDeviceExtension,
+ VIDEO_PORT_DEVICE_EXTENSION,
+ MiniPortDeviceExtension);
+
+ Status = HalDisableSystemInterrupt(
+ DeviceExtension->InterruptVector,
+ 0);
+
+ return Status ? STATUS_SUCCESS : STATUS_UNSUCCESSFUL;
+}
reactos/drivers/video/videoprt
diff -u -r1.1 -r1.2
--- Makefile 19 Jan 2004 15:56:53 -0000 1.1
+++ Makefile 4 Mar 2004 18:51:58 -0000 1.2
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.1 2004/01/19 15:56:53 navaraf Exp $
+# $Id: Makefile,v 1.2 2004/03/04 18:51:58 navaraf Exp $
PATH_TO_TOP = ../../..
@@ -8,7 +8,11 @@
TARGET_CFLAGS += -Wall -Werror -D__USE_W32API -I$(PATH_TO_TOP)/ntoskrnl/include
-TARGET_OBJECTS = videoprt.o int10.o services.o
+TARGET_OBJECTS = \
+ int10.o \
+ interrupt.o \
+ videoprt.o \
+ services.o
include $(PATH_TO_TOP)/rules.mak
reactos/drivers/video/videoprt
diff -u -r1.4 -r1.5
--- videoprt.c 25 Feb 2004 05:38:33 -0000 1.4
+++ videoprt.c 4 Mar 2004 18:51:58 -0000 1.5
@@ -18,7 +18,7 @@
* If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
- * $Id: videoprt.c,v 1.4 2004/02/25 05:38:33 jimtabor Exp $
+ * $Id: videoprt.c,v 1.5 2004/03/04 18:51:58 navaraf Exp $
*/
#include "videoprt.h"
@@ -77,32 +77,6 @@
/*
- * @unimplemented
- */
-VP_STATUS
-STDCALL
-VideoPortDisableInterrupt(IN PVOID HwDeviceExtension)
-{
- DPRINT("VideoPortDisableInterrupt\n");
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-
-/*
- * @unimplemented
- */
-VP_STATUS
-STDCALL
-VideoPortEnableInterrupt(IN PVOID HwDeviceExtension)
-{
- DPRINT("VideoPortEnableInterrupt\n");
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
-}
-
-
-/*
* @implemented
*/
VOID
@@ -720,9 +694,9 @@
IN PBANKED_SECTION_ROUTINE BankRoutine,
IN PVOID Context)
{
- DPRINT("VideoPortMapBankedMemory\n");
- UNIMPLEMENTED;
- return STATUS_NOT_IMPLEMENTED;
+ DPRINT("VideoPortMapBankedMemory\n");
+ UNIMPLEMENTED;
+ return STATUS_NOT_IMPLEMENTED;
}
CVSspam 0.2.8