- Update to r53061
[reactos.git] / drivers / video / videoprt / videoprt.h
index 870092c..1bf794e 100644 (file)
@@ -4,19 +4,18 @@
  * 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
+ * modify it under the terms of the GNU Lesser General Public
  * License as published by the Free Software Foundation; either
- * version 2 of the License, or (at your option) any later version.
+ * version 2.1 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.
+ * Lesser 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.
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
  *
  */
 
 
 #include <stdio.h>
 #include <ntddk.h>
+#define __BROKEN__
 #include <miniport.h>
 #include <video.h>
 #include <ntddvdeo.h>
 #include <ntagp.h>
 #include <ntifs.h>
 #include <ndk/ntndk.h>
-#include <reactos/helper.h>
+#include <dderror.h>
+#include <windef.h>
+
+#include <initguid.h>
+#include <wdmguid.h>
 
 #include <debug.h>
 
-#define TAG_VIDEO_PORT  TAG('V', 'I', 'D', 'P')
-#define TAG_VIDEO_PORT_BUFFER  TAG('V', 'p', 'm', '\0' )
+#define TAG_VIDEO_PORT  'PDIV'
+#define TAG_VIDEO_PORT_BUFFER  '\0mpV'
 
 typedef struct _VIDEO_PORT_ADDRESS_MAPPING
 {
@@ -94,6 +98,7 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
    ULONG DeviceOpened;
    AGP_BUS_INTERFACE_STANDARD AgpInterface;
    KMUTEX DeviceLock;
+   LIST_ENTRY DmaAdapterList;
    CHAR MiniPortDeviceExtension[1];
 } VIDEO_PORT_DEVICE_EXTENSION, *PVIDEO_PORT_DEVICE_EXTENSION;
 
@@ -103,13 +108,18 @@ typedef struct _VIDEO_PORT_DEVICE_EXTENSTION
       VIDEO_PORT_DEVICE_EXTENSION, \
       MiniPortDeviceExtension)
 
+typedef struct _VIDEO_PORT_EVENT
+{
+    ENG_EVENT;
+} VIDEO_PORT_EVENT, *PVIDEO_PORT_EVENT;
+
 /* agp.c */
 
 NTSTATUS
 IopInitiatePnpIrp(
   PDEVICE_OBJECT DeviceObject,
   PIO_STATUS_BLOCK IoStatusBlock,
-  ULONG MinorFunction,
+  UCHAR MinorFunction,
   PIO_STACK_LOCATION Stack OPTIONAL);
 
 NTSTATUS NTAPI