ReactOS  0.4.14-dev-384-g5b37caa
usbehci.cpp
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Universal Serial Bus Bulk Enhanced Host Controller Interface
3  * LICENSE: GPL - See COPYING in the top level directory
4  * FILE: drivers/usb/usbehci/usbehci.cpp
5  * PURPOSE: USB EHCI device driver.
6  * PROGRAMMERS:
7  * Michael Martin (michael.martin@reactos.org)
8  * Johannes Anderwald (johannes.anderwald@reactos.org)
9  */
10 
11 #include "usbehci.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 extern
17 "C"
19 NTAPI
23 {
24 
25  /* initialize driver object */
27 
36  return STATUS_SUCCESS;
37 }
38 
39 extern "C" {
40  void
42  {
43  // put error handling here
44 
45  DbgBreakPoint();
46 
47  }
48 }
49 
50 extern "C" {
51  void free(void * ptr)
52  {
53  ExFreePool(ptr);
54  }
55 }
56 
57 
#define IRP_MJ_CREATE
Definition: rdpdr.c:44
#define IRP_MJ_PNP
Definition: cdrw_usr.h:52
LONG NTSTATUS
Definition: precomp.h:26
void DbgBreakPoint()
Definition: mach.c:553
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
PDRIVER_EXTENSION DriverExtension
Definition: iotypes.h:2174
static PVOID ptr
Definition: dispmode.c:27
static PDRIVER_OBJECT DriverObject
Definition: template.c:42
void free(void *ptr)
Definition: usbehci.cpp:51
DRIVER_ADD_DEVICE USBLIB_AddDevice
Definition: libusb.cpp:19
NTSTATUS NTAPI USBLIB_Dispatch(PDEVICE_OBJECT DeviceObject, PIRP Irp)
Definition: libusb.cpp:99
void __cxa_pure_virtual()
Definition: usbehci.cpp:41
#define IRP_MJ_INTERNAL_DEVICE_CONTROL
NTSTATUS NTAPI DriverEntry(PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
Definition: usbehci.cpp:20
#define IRP_MJ_POWER
#define IRP_MJ_CLOSE
Definition: rdpdr.c:45
#define IRP_MJ_SYSTEM_CONTROL
PDRIVER_ADD_DEVICE AddDevice
Definition: iotypes.h:2112
#define IRP_MJ_CLEANUP
PDRIVER_DISPATCH MajorFunction[IRP_MJ_MAXIMUM_FUNCTION+1]
Definition: iotypes.h:2181
_In_ PUNICODE_STRING RegistryPath
Definition: wmip.h:27
return STATUS_SUCCESS
Definition: btrfs.c:2938
#define ExFreePool(addr)
Definition: env_spec_w32.h:352
#define IRP_MJ_DEVICE_CONTROL
Definition: rdpdr.c:52