mirror of
https://github.com/reactos/reactos.git
synced 2025-04-27 17:10:22 +00:00
[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:
parent
b2311765e9
commit
25b7bb215e
6 changed files with 60 additions and 4 deletions
|
@ -1,2 +1,2 @@
|
||||||
|
|
||||||
add_subdirectory(parallel)
|
add_subdirectory(parport)
|
||||||
|
|
5
reactos/drivers/parallel/parport/CMakeLists.txt
Normal file
5
reactos/drivers/parallel/parport/CMakeLists.txt
Normal 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)
|
30
reactos/drivers/parallel/parport/parport.c
Normal file
30
reactos/drivers/parallel/parport/parport.c
Normal 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;
|
||||||
|
}
|
16
reactos/drivers/parallel/parport/parport.h
Normal file
16
reactos/drivers/parallel/parport/parport.h
Normal 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_ */
|
5
reactos/drivers/parallel/parport/parport.rc
Normal file
5
reactos/drivers/parallel/parport/parport.rc
Normal 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>
|
|
@ -34,18 +34,18 @@ HKR, , Installer32, 0, "msports.dll,PortsClassInstaller"
|
||||||
;---------------------------- LPT PORT DRIVER ---------------------------
|
;---------------------------- LPT PORT DRIVER ---------------------------
|
||||||
|
|
||||||
[LptPort_Inst.NT]
|
[LptPort_Inst.NT]
|
||||||
;CopyFiles = LptPort_CopyFiles.NT
|
CopyFiles = LptPort_CopyFiles.NT
|
||||||
AddReg = LptPort_AddReg.NT
|
AddReg = LptPort_AddReg.NT
|
||||||
|
|
||||||
[LptPort_CopyFiles.NT]
|
[LptPort_CopyFiles.NT]
|
||||||
parport.sys
|
parport.sys
|
||||||
|
|
||||||
[LptPort_AddReg.NT]
|
[LptPort_AddReg.NT]
|
||||||
;HKR, , "EnumPropPages32", 0, "msports.dll,ParallelPortPropPageProvider"
|
HKR, , "EnumPropPages32", 0, "msports.dll,ParallelPortPropPageProvider"
|
||||||
HKR, , "PortSubClass", 1, 00
|
HKR, , "PortSubClass", 1, 00
|
||||||
|
|
||||||
[LptPort_Inst.NT.Services]
|
[LptPort_Inst.NT.Services]
|
||||||
;AddService = parport, 0x00000002, parport_Service_Inst
|
AddService = parport, 0x00000002, parport_Service_Inst
|
||||||
|
|
||||||
[parport_Service_Inst]
|
[parport_Service_Inst]
|
||||||
ServiceType = 1
|
ServiceType = 1
|
||||||
|
|
Loading…
Reference in a new issue