* Sync up to trunk head (r65147).
[reactos.git] / drivers / usb / usbuhci / usbuhci.cpp
1 /*
2 * PROJECT: ReactOS Universal Serial Bus Host Controller Interface
3 * LICENSE: GPL - See COPYING in the top level directory
4 * FILE: drivers/usb/usbuhci/usbohci.cpp
5 * PURPOSE: USB UHCI device driver.
6 * PROGRAMMERS:
7 * Michael Martin (michael.martin@reactos.org)
8 * Johannes Anderwald (johannes.anderwald@reactos.org)
9 */
10
11 #include "usbuhci.h"
12
13 #define NDEBUG
14 #include <debug.h>
15
16 extern
17 "C"
18 NTSTATUS
19 NTAPI
20 DriverEntry(
21 PDRIVER_OBJECT DriverObject,
22 PUNICODE_STRING RegistryPath)
23 {
24
25 /* initialize driver object */
26 DriverObject->DriverExtension->AddDevice = USBLIB_AddDevice;
27
28 DriverObject->MajorFunction[IRP_MJ_CREATE] = USBLIB_Dispatch;
29 DriverObject->MajorFunction[IRP_MJ_CLOSE] = USBLIB_Dispatch;
30 DriverObject->MajorFunction[IRP_MJ_CLEANUP] = USBLIB_Dispatch;
31 DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = USBLIB_Dispatch;
32 DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = USBLIB_Dispatch;
33 DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = USBLIB_Dispatch;
34 DriverObject->MajorFunction[IRP_MJ_POWER] = USBLIB_Dispatch;
35 DriverObject->MajorFunction[IRP_MJ_PNP] = USBLIB_Dispatch;
36 return STATUS_SUCCESS;
37 }
38
39 extern "C" {
40 void free(void * ptr)
41 {
42 ExFreePool(ptr);
43 }
44 }