- Implemented VideoPortEnableInterrupt and VideoPortDisableInterrupt.

svn path=/trunk/; revision=8532
This commit is contained in:
Filip Navara 2004-03-04 18:51:58 +00:00
parent eab00ba2a1
commit 499908b04f
3 changed files with 83 additions and 32 deletions

View file

@ -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

View file

@ -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;
}

View file

@ -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;
}