ReactOS  0.4.14-dev-50-g13bb5e2
usbehci.h File Reference
#include <libusb.h>
#include "hardware.h"
#include "interfaces.h"
Include dependency graph for usbehci.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define TAG_USBEHCI   'ICHE'
 
#define PC_ASSERT(exp)
 

Functions

NTSTATUS NTAPI CreateUSBHardware (PUSBHARDWAREDEVICE *OutHardware)
 
NTSTATUS NTAPI CreateUSBQueue (PUSBQUEUE *OutUsbQueue)
 
NTSTATUS NTAPI InternalCreateUSBRequest (PUSBREQUEST *OutRequest)
 

Macro Definition Documentation

◆ PC_ASSERT

#define PC_ASSERT (   exp)
Value:
(VOID)((!(exp)) ? \
RtlAssert((PVOID) #exp, (PVOID)__FILE__, __LINE__, NULL ), FALSE : TRUE)
#define TRUE
Definition: types.h:120
smooth NULL
Definition: ftsmooth.c:416
#define VOID
Definition: acefi.h:82
DWORD exp
Definition: msg.c:15681

Definition at line 17 of file usbehci.h.

◆ TAG_USBEHCI

#define TAG_USBEHCI   'ICHE'

Definition at line 12 of file usbehci.h.

Function Documentation

◆ CreateUSBHardware()

NTSTATUS NTAPI CreateUSBHardware ( PUSBHARDWAREDEVICE OutHardware)

Definition at line 1474 of file hardware.cpp.

1476 {
1478 
1480 
1481  if (!This)
1483 
1484  This->AddRef();
1485 
1486  // return result
1487  *OutHardware = (PUSBHARDWAREDEVICE)This;
1488 
1489  return STATUS_SUCCESS;
1490 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
IUSBHardwareDevice * PUSBHARDWAREDEVICE
#define TAG_USBEHCI
Definition: usbehci.h:12
return STATUS_SUCCESS
Definition: btrfs.c:2966

◆ CreateUSBQueue()

NTSTATUS NTAPI CreateUSBQueue ( PUSBQUEUE OutUsbQueue)

Definition at line 1204 of file usb_queue.cpp.

1206 {
1207  PUSBQUEUE This;
1208 
1209  //
1210  // allocate controller
1211  //
1213  if (!This)
1214  {
1215  //
1216  // failed to allocate
1217  //
1219  }
1220 
1221  //
1222  // add reference count
1223  //
1224  This->AddRef();
1225 
1226  //
1227  // return result
1228  //
1229  *OutUsbQueue = (PUSBQUEUE)This;
1230 
1231  //
1232  // done
1233  //
1234  return STATUS_SUCCESS;
1235 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_USBEHCI
Definition: usbehci.h:12
IUSBQueue * PUSBQUEUE
return STATUS_SUCCESS
Definition: btrfs.c:2966

◆ InternalCreateUSBRequest()

NTSTATUS NTAPI InternalCreateUSBRequest ( PUSBREQUEST OutRequest)

Definition at line 1821 of file usb_request.cpp.

1823 {
1824  PUSBREQUEST This;
1825 
1826  //
1827  // allocate requests
1828  //
1830  if (!This)
1831  {
1832  //
1833  // failed to allocate
1834  //
1836  }
1837 
1838  //
1839  // add reference count
1840  //
1841  This->AddRef();
1842 
1843  //
1844  // return result
1845  //
1846  *OutRequest = (PUSBREQUEST)This;
1847 
1848  //
1849  // done
1850  //
1851  return STATUS_SUCCESS;
1852 }
#define STATUS_INSUFFICIENT_RESOURCES
Definition: udferr_usr.h:158
#define TAG_USBEHCI
Definition: usbehci.h:12
IUSBRequest * PUSBREQUEST
return STATUS_SUCCESS
Definition: btrfs.c:2966