2012-02-21 15:49:08 +00:00
|
|
|
/*
|
2012-02-23 01:27:19 +00:00
|
|
|
* PROJECT: ReactOS Universal Serial Bus Host Controller Interface
|
2012-02-21 15:49:08 +00:00
|
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
2012-02-23 01:27:19 +00:00
|
|
|
* FILE: drivers/usb/usbuhci/usbohci.cpp
|
|
|
|
* PURPOSE: USB UHCI device driver.
|
2012-02-21 15:49:08 +00:00
|
|
|
* PROGRAMMERS:
|
|
|
|
* Michael Martin (michael.martin@reactos.org)
|
|
|
|
* Johannes Anderwald (johannes.anderwald@reactos.org)
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "usbuhci.h"
|
|
|
|
|
2013-12-24 20:54:29 +00:00
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
|
2012-02-21 15:49:08 +00:00
|
|
|
extern
|
|
|
|
"C"
|
|
|
|
NTSTATUS
|
|
|
|
NTAPI
|
|
|
|
DriverEntry(
|
|
|
|
PDRIVER_OBJECT DriverObject,
|
|
|
|
PUNICODE_STRING RegistryPath)
|
|
|
|
{
|
|
|
|
|
2014-06-29 12:53:11 +00:00
|
|
|
/* initialize driver object */
|
2012-02-28 22:09:57 +00:00
|
|
|
DriverObject->DriverExtension->AddDevice = USBLIB_AddDevice;
|
|
|
|
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_CREATE] = USBLIB_Dispatch;
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_CLOSE] = USBLIB_Dispatch;
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_CLEANUP] = USBLIB_Dispatch;
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_DEVICE_CONTROL] = USBLIB_Dispatch;
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_INTERNAL_DEVICE_CONTROL] = USBLIB_Dispatch;
|
2014-06-29 12:53:11 +00:00
|
|
|
DriverObject->MajorFunction[IRP_MJ_SYSTEM_CONTROL] = USBLIB_Dispatch;
|
|
|
|
DriverObject->MajorFunction[IRP_MJ_POWER] = USBLIB_Dispatch;
|
2012-02-28 22:09:57 +00:00
|
|
|
DriverObject->MajorFunction[IRP_MJ_PNP] = USBLIB_Dispatch;
|
2012-02-21 15:49:08 +00:00
|
|
|
return STATUS_SUCCESS;
|
|
|
|
}
|
2012-02-28 22:09:57 +00:00
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
void free(void * ptr)
|
|
|
|
{
|
|
|
|
ExFreePool(ptr);
|
|
|
|
}
|
|
|
|
}
|