[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

svn path=/trunk/; revision=67508
This commit is contained in:
Amine Khaldi 2015-05-02 10:15:37 +00:00
parent b2311765e9
commit 25b7bb215e
6 changed files with 60 additions and 4 deletions

View file

@ -1,2 +1,2 @@
add_subdirectory(parallel)
add_subdirectory(parport)

View file

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

View file

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

View file

@ -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_ */

View file

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

View file

@ -34,18 +34,18 @@ HKR, , Installer32, 0, "msports.dll,PortsClassInstaller"
;---------------------------- 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