ReactOS 0.4.15-dev-8109-gd7be748
serial.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: Serial driver
4 * FILE: drivers/dd/serial/serial.c
5 * PURPOSE: Serial driver loading/unloading
6 *
7 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.org)
8 */
9
10#include "serial.h"
11
12static DRIVER_UNLOAD DriverUnload;
13DRIVER_INITIALIZE DriverEntry;
14
15static VOID NTAPI
17{
18 // nothing to do here yet
19}
20
21/*
22 * Standard DriverEntry method.
23 */
27 IN PUNICODE_STRING RegPath)
28{
29 ULONG i;
30
31 DriverObject->DriverUnload = DriverUnload;
32 DriverObject->DriverExtension->AddDevice = SerialAddDevice;
33
34 for (i = 0; i <= IRP_MJ_MAXIMUM_FUNCTION; i++)
35 DriverObject->MajorFunction[i] = ForwardIrpAndForget;
36 DriverObject->MajorFunction[IRP_MJ_CREATE] = SerialCreate;
37 DriverObject->MajorFunction[IRP_MJ_CLOSE] = SerialClose;
39 DriverObject->MajorFunction[IRP_MJ_READ] = SerialRead;
40 DriverObject->MajorFunction[IRP_MJ_WRITE] = SerialWrite;
43 DriverObject->MajorFunction[IRP_MJ_PNP] = SerialPnp;
44 DriverObject->MajorFunction[IRP_MJ_POWER] = SerialPower;
45
46 return STATUS_SUCCESS;
47}
LONG NTSTATUS
Definition: precomp.h:26
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
DRIVER_INITIALIZE DriverEntry
Definition: serial.c:13
static DRIVER_UNLOAD DriverUnload
Definition: serial.c:12
DRIVER_DISPATCH SerialDeviceControl
Definition: serial.h:221
DRIVER_DISPATCH SerialCleanup
Definition: serial.h:209
DRIVER_DISPATCH SerialClose
Definition: serial.h:213
DRIVER_DISPATCH SerialPnp
Definition: serial.h:288
DRIVER_DISPATCH SerialCreate
Definition: serial.h:217
DRIVER_ADD_DEVICE SerialAddDevice
Definition: serial.h:280
DRIVER_DISPATCH SerialPower
Definition: serial.h:292
DRIVER_DISPATCH SerialRead
Definition: serial.h:296
DRIVER_DISPATCH SerialWrite
Definition: serial.h:297
DRIVER_DISPATCH SerialQueryInformation
Definition: serial.h:235
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
DRIVER_DISPATCH ForwardIrpAndForget
Definition: i8042prt.h:341
#define IRP_MJ_CLOSE
Definition: rdpdr.c:45
#define IRP_MJ_READ
Definition: rdpdr.c:46
#define IRP_MJ_DEVICE_CONTROL
Definition: rdpdr.c:52
#define IRP_MJ_WRITE
Definition: rdpdr.c:47
#define IRP_MJ_CREATE
Definition: rdpdr.c:44
#define IRP_MJ_QUERY_INFORMATION
Definition: rdpdr.c:48
#define STATUS_SUCCESS
Definition: shellext.h:65
#define NTAPI
Definition: typedefs.h:36
#define IN
Definition: typedefs.h:39
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ PDRIVER_OBJECT DriverObject
Definition: wdfdriver.h:213
#define IRP_MJ_POWER
#define IRP_MJ_CLEANUP
#define IRP_MJ_MAXIMUM_FUNCTION