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

Go to the source code of this file.

Macros

#define PORT_ENABLE   1
 
#define PORT_SUSPEND   2
 
#define PORT_OVER_CURRENT   3
 
#define PORT_RESET   4
 
#define PORT_POWER   8
 
#define C_PORT_CONNECTION   16
 
#define C_PORT_ENABLE   17
 
#define C_PORT_SUSPEND   18
 
#define C_PORT_OVER_CURRENT   19
 
#define C_PORT_RESET   20
 
#define TAG_USBUHCI   'ICHU'
 
#define PC_ASSERT(exp)
 

Functions

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

Macro Definition Documentation

◆ C_PORT_CONNECTION

#define C_PORT_CONNECTION   16

Definition at line 17 of file usbuhci.h.

◆ C_PORT_ENABLE

#define C_PORT_ENABLE   17

Definition at line 18 of file usbuhci.h.

◆ C_PORT_OVER_CURRENT

#define C_PORT_OVER_CURRENT   19

Definition at line 20 of file usbuhci.h.

◆ C_PORT_RESET

#define C_PORT_RESET   20

Definition at line 21 of file usbuhci.h.

◆ C_PORT_SUSPEND

#define C_PORT_SUSPEND   18

Definition at line 19 of file usbuhci.h.

◆ 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 31 of file usbuhci.h.

◆ PORT_ENABLE

#define PORT_ENABLE   1

Definition at line 12 of file usbuhci.h.

◆ PORT_OVER_CURRENT

#define PORT_OVER_CURRENT   3

Definition at line 14 of file usbuhci.h.

◆ PORT_POWER

#define PORT_POWER   8

Definition at line 16 of file usbuhci.h.

◆ PORT_RESET

#define PORT_RESET   4

Definition at line 15 of file usbuhci.h.

◆ PORT_SUSPEND

#define PORT_SUSPEND   2

Definition at line 13 of file usbuhci.h.

◆ TAG_USBUHCI

#define TAG_USBUHCI   'ICHU'

Definition at line 26 of file usbuhci.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:2938

◆ 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:2938

◆ 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:2938