Author: akhaldi
Date: Sat May 2 10:15:37 2015
New Revision: 67508
URL:
http://svn.reactos.org/svn/reactos?rev=67508&view=rev
Log:
[PARPORT] Introduce a skeleton that will serve as base for implementing the parallel port
function driver. Brought to you by The ReactOS Printing Group. CORE-9644
Added:
trunk/reactos/drivers/parallel/parport/CMakeLists.txt (with props)
trunk/reactos/drivers/parallel/parport/parport.c (with props)
trunk/reactos/drivers/parallel/parport/parport.h (with props)
trunk/reactos/drivers/parallel/parport/parport.rc (with props)
Modified:
trunk/reactos/drivers/parallel/CMakeLists.txt
trunk/reactos/media/inf/ports.inf
Modified: trunk/reactos/drivers/parallel/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/CMakeList…
==============================================================================
--- trunk/reactos/drivers/parallel/CMakeLists.txt [iso-8859-1] (original)
+++ trunk/reactos/drivers/parallel/CMakeLists.txt [iso-8859-1] Sat May 2 10:15:37 2015
@@ -1,2 +1,2 @@
-add_subdirectory(parallel)
+add_subdirectory(parport)
Added: trunk/reactos/drivers/parallel/parport/CMakeLists.txt
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/C…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/CMakeLists.txt (added)
+++ trunk/reactos/drivers/parallel/parport/CMakeLists.txt [iso-8859-1] Sat May 2 10:15:37
2015
@@ -0,0 +1,5 @@
+
+add_library(parport SHARED parport.c parport.rc)
+set_module_type(parport kernelmodedriver)
+add_importlibs(parport ntoskrnl hal)
+add_cd_file(TARGET parport DESTINATION reactos/system32/drivers FOR all)
Propchange: trunk/reactos/drivers/parallel/parport/CMakeLists.txt
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/parallel/parport/parport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/p…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/parport.c (added)
+++ trunk/reactos/drivers/parallel/parport/parport.c [iso-8859-1] Sat May 2 10:15:37
2015
@@ -0,0 +1,30 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: Parallel Port Function Driver
+ * PURPOSE: Parport driver loading/unloading
+ */
+
+#include "parport.h"
+
+static DRIVER_UNLOAD DriverUnload;
+DRIVER_INITIALIZE DriverEntry;
+
+static
+VOID
+NTAPI
+DriverUnload(IN PDRIVER_OBJECT DriverObject)
+{
+ DPRINT("Parport DriverUnload\n");
+}
+
+NTSTATUS
+NTAPI
+DriverEntry(IN PDRIVER_OBJECT DriverObject,
+ IN PUNICODE_STRING RegPath)
+{
+ DPRINT("Parport DriverEntry\n");
+
+ DriverObject->DriverUnload = DriverUnload;
+
+ return STATUS_SUCCESS;
+}
Propchange: trunk/reactos/drivers/parallel/parport/parport.c
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/parallel/parport/parport.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/p…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/parport.h (added)
+++ trunk/reactos/drivers/parallel/parport/parport.h [iso-8859-1] Sat May 2 10:15:37
2015
@@ -0,0 +1,16 @@
+/*
+ * COPYRIGHT: See COPYING in the top level directory
+ * PROJECT: Parallel Port Function Driver
+ * PURPOSE: Parport driver header
+ */
+
+#ifndef _PARPORT_PCH_
+#define _PARPORT_PCH_
+
+#include <ntddk.h>
+#include <ntddser.h>
+
+//#define NDEBUG
+#include <debug.h>
+
+#endif /* _PARPORT_PCH_ */
Propchange: trunk/reactos/drivers/parallel/parport/parport.h
------------------------------------------------------------------------------
svn:eol-style = native
Added: trunk/reactos/drivers/parallel/parport/parport.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/parallel/parport/p…
==============================================================================
--- trunk/reactos/drivers/parallel/parport/parport.rc (added)
+++ trunk/reactos/drivers/parallel/parport/parport.rc [iso-8859-1] Sat May 2 10:15:37
2015
@@ -0,0 +1,5 @@
+#define REACTOS_VERSION_DLL
+#define REACTOS_STR_FILE_DESCRIPTION "Parallel Port Function Driver"
+#define REACTOS_STR_INTERNAL_NAME "parport"
+#define REACTOS_STR_ORIGINAL_FILENAME "parport.sys"
+#include <reactos/version.rc>
Propchange: trunk/reactos/drivers/parallel/parport/parport.rc
------------------------------------------------------------------------------
svn:eol-style = native
Modified: trunk/reactos/media/inf/ports.inf
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/media/inf/ports.inf?rev=67…
==============================================================================
--- trunk/reactos/media/inf/ports.inf [iso-8859-1] (original)
+++ trunk/reactos/media/inf/ports.inf [iso-8859-1] Sat May 2 10:15:37 2015
@@ -34,18 +34,18 @@
;---------------------------- LPT PORT DRIVER ---------------------------
[LptPort_Inst.NT]
-;CopyFiles = LptPort_CopyFiles.NT
+CopyFiles = LptPort_CopyFiles.NT
AddReg = LptPort_AddReg.NT
[LptPort_CopyFiles.NT]
parport.sys
[LptPort_AddReg.NT]
-;HKR, , "EnumPropPages32", 0,
"msports.dll,ParallelPortPropPageProvider"
+HKR, , "EnumPropPages32", 0,
"msports.dll,ParallelPortPropPageProvider"
HKR, , "PortSubClass", 1, 00
[LptPort_Inst.NT.Services]
-;AddService = parport, 0x00000002, parport_Service_Inst
+AddService = parport, 0x00000002, parport_Service_Inst
[parport_Service_Inst]
ServiceType = 1