merge ROS Shell without integrated explorer part into trunk
[reactos.git] / reactos / drivers / dd / green / green.c
1 /* $Id:
2 *
3 * COPYRIGHT: See COPYING in the top level directory
4 * PROJECT: ReactOS VT100 emulator
5 * FILE: drivers/dd/green/green.c
6 * PURPOSE: Driver entry point
7 *
8 * PROGRAMMERS: Hervé Poussineau (hpoussin@reactos.com)
9 */
10
11 //#define NDEBUG
12 #include "green.h"
13
14 VOID STDCALL
15 DriverUnload(IN PDRIVER_OBJECT DriverObject)
16 {
17 // nothing to do here yet
18 }
19
20 /*
21 * Standard DriverEntry method.
22 */
23 NTSTATUS STDCALL
24 DriverEntry(
25 IN PDRIVER_OBJECT DriverObject,
26 IN PUNICODE_STRING RegPath)
27 {
28 ULONG i;
29
30 DriverObject->DriverUnload = DriverUnload;
31 DriverObject->DriverExtension->AddDevice = GreenAddDevice;
32
33 for (i = 0; i < IRP_MJ_MAXIMUM_FUNCTION; i++)
34 DriverObject->MajorFunction[i] = GreenDispatch;
35
36 /* keyboard only */
37 //DriverObject->DriverStartIo = GreenStartIo;
38
39 /* keyboard and screen */
40 DriverObject->MajorFunction[IRP_MJ_CREATE] = GreenCreate;
41 DriverObject->MajorFunction[IRP_MJ_CLOSE] = GreenClose;
42
43 return STATUS_SUCCESS;
44 }