Started VideoPortGetAgpServices, Allocate and ReleaseBuffer.

svn path=/trunk/; revision=8548
This commit is contained in:
James Tabor 2004-03-06 08:39:06 +00:00
parent f1d20bbf54
commit fa714393ca
4 changed files with 56 additions and 5 deletions

View file

@ -18,7 +18,7 @@
* If not, write to the Free Software Foundation, * If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Id: services.c,v 1.1 2004/01/19 15:56:53 navaraf Exp $ * $Id: services.c,v 1.2 2004/03/06 08:39:06 jimtabor Exp $
*/ */
#include "videoprt.h" #include "videoprt.h"
@ -73,3 +73,17 @@ VideoPortQueryServices(
return STATUS_UNSUCCESSFUL; return STATUS_UNSUCCESSFUL;
} }
BOOLEAN
STDCALL
VideoPortGetAgpServices(IN PVOID HwDeviceExtension,
IN PVIDEO_PORT_AGP_SERVICES AgpServices)
{
DPRINT("VideoPortGetAgpServices\n");
UNIMPLEMENTED;
return FALSE;
}

View file

@ -18,7 +18,7 @@
* If not, write to the Free Software Foundation, * If not, write to the Free Software Foundation,
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
* *
* $Id: videoprt.c,v 1.6 2004/03/06 01:22:02 navaraf Exp $ * $Id: videoprt.c,v 1.7 2004/03/06 08:39:06 jimtabor Exp $
*/ */
#include "videoprt.h" #include "videoprt.h"
@ -399,7 +399,7 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
{ {
PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension; PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
DPRINT("VideoPortGetVgaStatus = %S \n", VgaStatus); DPRINT1("VideoPortGetVgaStatus = %S \n", VgaStatus);
DeviceExtension = CONTAINING_RECORD(HwDeviceExtension, DeviceExtension = CONTAINING_RECORD(HwDeviceExtension,
VIDEO_PORT_DEVICE_EXTENSION, VIDEO_PORT_DEVICE_EXTENSION,
@ -407,11 +407,14 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
if(KeGetCurrentIrql() == PASSIVE_LEVEL) if(KeGetCurrentIrql() == PASSIVE_LEVEL)
{ {
DPRINT1("VideoPortGetVgaStatus1 = %S \n", VgaStatus);
if ( PCIBus == DeviceExtension->AdapterInterfaceType) if ( PCIBus == DeviceExtension->AdapterInterfaceType)
{ {
/* /*
VgaStatus 0 == VGA not enabled, 1 == VGA enabled. VgaStatus 0 == VGA not enabled, 1 == VGA enabled.
*/ */
DPRINT1("VideoPortGetVgaStatus2 = %S \n", VgaStatus);
/* Assumed for now */ /* Assumed for now */
@ -420,6 +423,8 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
return STATUS_SUCCESS; return STATUS_SUCCESS;
} }
} }
DPRINT1("VideoPortGetVgaStatus3 = %S \n", VgaStatus);
return ERROR_INVALID_FUNCTION; return ERROR_INVALID_FUNCTION;
} }
@ -1345,3 +1350,29 @@ VideoPortDDCMonitorHelper(
{ {
return FALSE; return FALSE;
} }
VP_STATUS
STDCALL
VideoPortAllocateBuffer(IN PVOID HwDeviceExtension,
IN ULONG Size,
OUT PVOID *Buffer)
{
DPRINT("VideoPortAllocateBuffer\n");
Buffer = ExAllocatePool (PagedPool, Size) ;
return STATUS_SUCCESS;
}
VOID
STDCALL
VideoPortReleaseBuffer( IN PVOID HwDeviceExtension,
IN PVOID Ptr)
{
DPRINT("VideoPortReleaseBuffer\n");
ExFreePool(Ptr);
}

View file

@ -1,15 +1,17 @@
; $Id: videoprt.def,v 1.3 2004/03/06 01:22:02 navaraf Exp $ ; $Id: videoprt.def,v 1.4 2004/03/06 08:39:06 jimtabor Exp $
; ;
; vidport.def - export definition file for ReactOS ; vidport.def - export definition file for ReactOS
; ;
EXPORTS EXPORTS
ReturnCsrssAddress ReturnCsrssAddress
VideoPortAllocateBuffer@12
VideoPortCompareMemory@12 VideoPortCompareMemory@12
VideoPortDDCMonitorHelper@16 VideoPortDDCMonitorHelper@16
VideoPortDebugPrint VideoPortDebugPrint
VideoPortDisableInterrupt@4 VideoPortDisableInterrupt@4
VideoPortEnableInterrupt@4 VideoPortEnableInterrupt@4
VideoPortFreeDeviceBase@8 VideoPortFreeDeviceBase@8
VideoPortGetAgpServices@8
VideoPortGetBusData@24 VideoPortGetBusData@24
VideoPortGetCurrentIrql@0 VideoPortGetCurrentIrql@0
VideoPortGetDeviceBase@20 VideoPortGetDeviceBase@20
@ -35,6 +37,7 @@ VideoPortReadRegisterUlong@4
VideoPortReadRegisterBufferUchar@12 VideoPortReadRegisterBufferUchar@12
VideoPortReadRegisterBufferUshort@12 VideoPortReadRegisterBufferUshort@12
VideoPortReadRegisterBufferUlong@12 VideoPortReadRegisterBufferUlong@12
VideoPortReleaseBuffer@8
VideoPortScanRom@16 VideoPortScanRom@16
VideoPortSetBusData@24 VideoPortSetBusData@24
VideoPortSetRegistryParameters@16 VideoPortSetRegistryParameters@16

View file

@ -1,9 +1,10 @@
; $Id: videoprt.edf,v 1.3 2004/03/06 01:22:02 navaraf Exp $ ; $Id: videoprt.edf,v 1.4 2004/03/06 08:39:06 jimtabor Exp $
; ;
; vidport.def - export definition file for ReactOS ; vidport.def - export definition file for ReactOS
; ;
EXPORTS EXPORTS
VideoPortCompareMemory=NTOSKRNL.RtlCompareMemory VideoPortCompareMemory=NTOSKRNL.RtlCompareMemory
VideoPortAllocateBuffer=VideoPortAllocateBuffer@12
VideoPortAllocatePool=VideoPortAllocatePool@16 VideoPortAllocatePool=VideoPortAllocatePool@16
VideoPortDDCMonitorHelper=VideoPortDDCMonitorHelper@16 VideoPortDDCMonitorHelper=VideoPortDDCMonitorHelper@16
VideoPortDebugPrint VideoPortDebugPrint
@ -12,6 +13,7 @@ VideoPortEnableInterrupt=VideoPortEnableInterrupt@4
VideoPortFreeDeviceBase=VideoPortFreeDeviceBase@8 VideoPortFreeDeviceBase=VideoPortFreeDeviceBase@8
VideoPortFreePool=VideoPortFreePool@8 VideoPortFreePool=VideoPortFreePool@8
VideoPortGetBusData=VideoPortGetBusData@24 VideoPortGetBusData=VideoPortGetBusData@24
VideoPortGetAgpServices=VideoPortGetAgpServices@8
VideoPortGetCurrentIrql=VideoPortGetCurrentIrql@0 VideoPortGetCurrentIrql=VideoPortGetCurrentIrql@0
VideoPortGetDeviceBase=VideoPortGetDeviceBase@20 VideoPortGetDeviceBase=VideoPortGetDeviceBase@20
VideoPortGetDeviceData=VideoPortGetDeviceData@16 VideoPortGetDeviceData=VideoPortGetDeviceData@16
@ -38,6 +40,7 @@ VideoPortReadRegisterUlong=NTOSKRNL.READ_REGISTER_ULONG
VideoPortReadRegisterBufferUchar=NTOSKRNL.READ_REGISTER_BUFFER_UCHAR VideoPortReadRegisterBufferUchar=NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
VideoPortReadRegisterBufferUshort=NTOSKRNL.READ_REGISTER_BUFFER_USHORT VideoPortReadRegisterBufferUshort=NTOSKRNL.READ_REGISTER_BUFFER_USHORT
VideoPortReadRegisterBufferUlong=NTOSKRNL.READ_REGISTER_BUFFER_ULONG VideoPortReadRegisterBufferUlong=NTOSKRNL.READ_REGISTER_BUFFER_ULONG
VideoPortReleaseBuffer=VideoPortReleaseBuffer@8
VideoPortScanRom=VideoPortScanRom@16 VideoPortScanRom=VideoPortScanRom@16
VideoPortSetBusData=VideoPortSetBusData@24 VideoPortSetBusData=VideoPortSetBusData@24
VideoPortSetRegistryParameters=VideoPortSetRegistryParameters@16 VideoPortSetRegistryParameters=VideoPortSetRegistryParameters@16