ReactOS 0.4.16-dev-197-g92996da
serial.c File Reference
#include "serial.h"
Include dependency graph for serial.c:

Go to the source code of this file.

Functions

static VOID NTAPI DriverUnload (IN PDRIVER_OBJECT DriverObject)
 
NTSTATUS NTAPI DriverEntry (IN PDRIVER_OBJECT DriverObject, IN PUNICODE_STRING RegPath)
 

Variables

static DRIVER_UNLOAD DriverUnload
 
DRIVER_INITIALIZE DriverEntry
 

Function Documentation

◆ DriverEntry()

NTSTATUS NTAPI DriverEntry ( IN PDRIVER_OBJECT  DriverObject,
IN PUNICODE_STRING  RegPath 
)

Definition at line 25 of file serial.c.

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}
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
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
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

◆ DriverUnload()

static VOID NTAPI DriverUnload ( IN PDRIVER_OBJECT  DriverObject)
static

Definition at line 16 of file serial.c.

17{
18 // nothing to do here yet
19}

Variable Documentation

◆ DriverEntry

DRIVER_INITIALIZE DriverEntry

Definition at line 13 of file serial.c.

◆ DriverUnload

DRIVER_UNLOAD DriverUnload
static

Definition at line 12 of file serial.c.

Referenced by DriverEntry().