ReactOS  0.4.14-dev-358-gbef841c
usbuhci.h
Go to the documentation of this file.
1 #ifndef USBUHCI_H__
2 #define USBUHCI_H__
3 
4 #include <libusb.h>
5 
6 #include "hardware.h"
7 #include "interfaces.h"
8 
9 //
10 // flags for handling USB_REQUEST_SET_FEATURE / USB_REQUEST_GET_FEATURE
11 //
12 #define PORT_ENABLE 1
13 #define PORT_SUSPEND 2
14 #define PORT_OVER_CURRENT 3
15 #define PORT_RESET 4
16 #define PORT_POWER 8
17 #define C_PORT_CONNECTION 16
18 #define C_PORT_ENABLE 17
19 #define C_PORT_SUSPEND 18
20 #define C_PORT_OVER_CURRENT 19
21 #define C_PORT_RESET 20
22 
23 //
24 // tag for allocations
25 //
26 #define TAG_USBUHCI 'ICHU'
27 
28 //
29 // assert for c++ - taken from portcls
30 //
31 #define PC_ASSERT(exp) \
32  (VOID)((!(exp)) ? \
33  RtlAssert((PVOID) #exp, (PVOID)__FILE__, __LINE__, NULL ), FALSE : TRUE)
34 
35 //
36 // hardware.cpp
37 //
39 
40 //
41 // usb_queue.cpp
42 //
44 
45 //
46 // usb_request.cpp
47 //
49 
50 #endif /* USBUHCI_H__ */
NTSTATUS NTAPI CreateUSBQueue(PUSBQUEUE *OutUsbQueue)
Definition: usb_queue.cpp:1204
NTSTATUS NTAPI CreateUSBHardware(PUSBHARDWAREDEVICE *OutHardware)
Definition: hardware.cpp:1474
IUSBHardwareDevice * PUSBHARDWAREDEVICE
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest)
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
IUSBQueue * PUSBQUEUE
IUSBRequest * PUSBREQUEST