mirror of
https://github.com/reactos/reactos.git
synced 2024-10-31 11:56:26 +00:00
4f0b8d3db0
svn path=/branches/ntvdm/; revision=59241
40 lines
1.1 KiB
C++
40 lines
1.1 KiB
C++
/*
|
|
* PROJECT: ReactOS Universal Serial Bus Host Controller Interface
|
|
* LICENSE: GPL - See COPYING in the top level directory
|
|
* FILE: drivers/usb/usbuhci/usbohci.cpp
|
|
* PURPOSE: USB UHCI device driver.
|
|
* PROGRAMMERS:
|
|
* Michael Martin (michael.martin@reactos.org)
|
|
* Johannes Anderwald (johannes.anderwald@reactos.org)
|
|
*/
|
|
|
|
#include "usbuhci.h"
|
|
|
|
extern
|
|
"C"
|
|
NTSTATUS
|
|
NTAPI
|
|
DriverEntry(
|
|
PDRIVER_OBJECT DriverObject,
|
|
PUNICODE_STRING RegistryPath)
|
|
{
|
|
|
|
/* initialize driver object*/
|
|
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;
|
|
DriverObject->MajorFunction[IRP_MJ_PNP] = USBLIB_Dispatch;
|
|
return STATUS_SUCCESS;
|
|
}
|
|
|
|
extern "C" {
|
|
void free(void * ptr)
|
|
{
|
|
ExFreePool(ptr);
|
|
}
|
|
}
|