mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 14:37:45 +00:00
Started VideoPortGetAgpServices, Allocate and ReleaseBuffer.
svn path=/trunk/; revision=8548
This commit is contained in:
parent
f1d20bbf54
commit
fa714393ca
|
@ -18,7 +18,7 @@
|
|||
* If not, write to the Free Software Foundation,
|
||||
* 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"
|
||||
|
@ -73,3 +73,17 @@ VideoPortQueryServices(
|
|||
|
||||
return STATUS_UNSUCCESSFUL;
|
||||
}
|
||||
|
||||
|
||||
BOOLEAN
|
||||
STDCALL
|
||||
VideoPortGetAgpServices(IN PVOID HwDeviceExtension,
|
||||
IN PVIDEO_PORT_AGP_SERVICES AgpServices)
|
||||
{
|
||||
|
||||
DPRINT("VideoPortGetAgpServices\n");
|
||||
UNIMPLEMENTED;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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.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"
|
||||
|
@ -399,7 +399,7 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
|
|||
{
|
||||
PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
|
||||
|
||||
DPRINT("VideoPortGetVgaStatus = %S \n", VgaStatus);
|
||||
DPRINT1("VideoPortGetVgaStatus = %S \n", VgaStatus);
|
||||
|
||||
DeviceExtension = CONTAINING_RECORD(HwDeviceExtension,
|
||||
VIDEO_PORT_DEVICE_EXTENSION,
|
||||
|
@ -407,11 +407,14 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
|
|||
|
||||
if(KeGetCurrentIrql() == PASSIVE_LEVEL)
|
||||
{
|
||||
DPRINT1("VideoPortGetVgaStatus1 = %S \n", VgaStatus);
|
||||
|
||||
if ( PCIBus == DeviceExtension->AdapterInterfaceType)
|
||||
{
|
||||
/*
|
||||
VgaStatus 0 == VGA not enabled, 1 == VGA enabled.
|
||||
*/
|
||||
DPRINT1("VideoPortGetVgaStatus2 = %S \n", VgaStatus);
|
||||
|
||||
/* Assumed for now */
|
||||
|
||||
|
@ -420,6 +423,8 @@ VideoPortGetVgaStatus(IN PVOID HwDeviceExtension,
|
|||
return STATUS_SUCCESS;
|
||||
}
|
||||
}
|
||||
DPRINT1("VideoPortGetVgaStatus3 = %S \n", VgaStatus);
|
||||
|
||||
return ERROR_INVALID_FUNCTION;
|
||||
}
|
||||
|
||||
|
@ -1345,3 +1350,29 @@ VideoPortDDCMonitorHelper(
|
|||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -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
|
||||
;
|
||||
EXPORTS
|
||||
ReturnCsrssAddress
|
||||
VideoPortAllocateBuffer@12
|
||||
VideoPortCompareMemory@12
|
||||
VideoPortDDCMonitorHelper@16
|
||||
VideoPortDebugPrint
|
||||
VideoPortDisableInterrupt@4
|
||||
VideoPortEnableInterrupt@4
|
||||
VideoPortFreeDeviceBase@8
|
||||
VideoPortGetAgpServices@8
|
||||
VideoPortGetBusData@24
|
||||
VideoPortGetCurrentIrql@0
|
||||
VideoPortGetDeviceBase@20
|
||||
|
@ -35,6 +37,7 @@ VideoPortReadRegisterUlong@4
|
|||
VideoPortReadRegisterBufferUchar@12
|
||||
VideoPortReadRegisterBufferUshort@12
|
||||
VideoPortReadRegisterBufferUlong@12
|
||||
VideoPortReleaseBuffer@8
|
||||
VideoPortScanRom@16
|
||||
VideoPortSetBusData@24
|
||||
VideoPortSetRegistryParameters@16
|
||||
|
|
|
@ -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
|
||||
;
|
||||
EXPORTS
|
||||
VideoPortCompareMemory=NTOSKRNL.RtlCompareMemory
|
||||
VideoPortAllocateBuffer=VideoPortAllocateBuffer@12
|
||||
VideoPortAllocatePool=VideoPortAllocatePool@16
|
||||
VideoPortDDCMonitorHelper=VideoPortDDCMonitorHelper@16
|
||||
VideoPortDebugPrint
|
||||
|
@ -12,6 +13,7 @@ VideoPortEnableInterrupt=VideoPortEnableInterrupt@4
|
|||
VideoPortFreeDeviceBase=VideoPortFreeDeviceBase@8
|
||||
VideoPortFreePool=VideoPortFreePool@8
|
||||
VideoPortGetBusData=VideoPortGetBusData@24
|
||||
VideoPortGetAgpServices=VideoPortGetAgpServices@8
|
||||
VideoPortGetCurrentIrql=VideoPortGetCurrentIrql@0
|
||||
VideoPortGetDeviceBase=VideoPortGetDeviceBase@20
|
||||
VideoPortGetDeviceData=VideoPortGetDeviceData@16
|
||||
|
@ -38,6 +40,7 @@ VideoPortReadRegisterUlong=NTOSKRNL.READ_REGISTER_ULONG
|
|||
VideoPortReadRegisterBufferUchar=NTOSKRNL.READ_REGISTER_BUFFER_UCHAR
|
||||
VideoPortReadRegisterBufferUshort=NTOSKRNL.READ_REGISTER_BUFFER_USHORT
|
||||
VideoPortReadRegisterBufferUlong=NTOSKRNL.READ_REGISTER_BUFFER_ULONG
|
||||
VideoPortReleaseBuffer=VideoPortReleaseBuffer@8
|
||||
VideoPortScanRom=VideoPortScanRom@16
|
||||
VideoPortSetBusData=VideoPortSetBusData@24
|
||||
VideoPortSetRegistryParameters=VideoPortSetRegistryParameters@16
|
||||
|
|
Loading…
Reference in a new issue