diff --git a/reactos/drivers/video/videoprt/Makefile b/reactos/drivers/video/videoprt/Makefile index 377e9880a8e..01f031c07a3 100644 --- a/reactos/drivers/video/videoprt/Makefile +++ b/reactos/drivers/video/videoprt/Makefile @@ -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_NAME = videoprt 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 diff --git a/reactos/drivers/video/videoprt/interrupt.c b/reactos/drivers/video/videoprt/interrupt.c new file mode 100644 index 00000000000..248ae5e7fbf --- /dev/null +++ b/reactos/drivers/video/videoprt/interrupt.c @@ -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; +} diff --git a/reactos/drivers/video/videoprt/videoprt.c b/reactos/drivers/video/videoprt/videoprt.c index 56e9ee09dc7..3cd5e90506d 100644 --- a/reactos/drivers/video/videoprt/videoprt.c +++ b/reactos/drivers/video/videoprt/videoprt.c @@ -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" @@ -76,32 +76,6 @@ VideoPortDebugPrint(IN VIDEO_DEBUG_LEVEL DebugPrintLevel, } -/* - * @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 */ @@ -720,9 +694,9 @@ VideoPortMapBankedMemory(IN PVOID HwDeviceExtension, IN PBANKED_SECTION_ROUTINE BankRoutine, IN PVOID Context) { - DPRINT("VideoPortMapBankedMemory\n"); - UNIMPLEMENTED; - return STATUS_NOT_IMPLEMENTED; + DPRINT("VideoPortMapBankedMemory\n"); + UNIMPLEMENTED; + return STATUS_NOT_IMPLEMENTED; }