Synchronize up to trunk's revision r57756.
[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 extern
14 "C"
15 NTSTATUS
16 NTAPI
17 DriverEntry(
18 PDRIVER_OBJECT DriverObject,
19 PUNICODE_STRING RegistryPath)
20 {
21
22 /* initialize driver object*/
23 DriverObject->DriverExtension->AddDevice = USBLIB_AddDevice;
24
25 DriverObject->MajorFunction[IRP_MJ_CREATE] = USBLIB_Dispatch;
26 DriverObject->MajorFunction[IRP_MJ_CLOSE] = USBLIB_Dispatch;
27 DriverObject->MajorFunction[IRP_MJ_CLEANUP] = USBLIB_Dispatch;
28 DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = USBLIB_Dispatch;
29 DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = USBLIB_Dispatch;
30 DriverObject->MajorFunction[IRP_MJ_PNP] = USBLIB_Dispatch;
31 return STATUS_SUCCESS;
32 }
33
34 extern "C" {
35 void free(void * ptr)
36 {
37 ExFreePool(ptr);
38 }
39 }