2011-05-22 19:36:13 +00:00
|
|
|
#ifndef USBOHCI_H__
|
|
|
|
#define USBOHCI_H__
|
|
|
|
|
|
|
|
#include <ntddk.h>
|
|
|
|
#define NDEBUG
|
|
|
|
#include <debug.h>
|
|
|
|
#include <hubbusif.h>
|
|
|
|
#include <usbbusif.h>
|
|
|
|
#include <usbioctl.h>
|
2012-02-03 14:47:18 +00:00
|
|
|
#include <usb100.h>
|
2011-05-25 02:11:06 +00:00
|
|
|
|
|
|
|
extern
|
|
|
|
"C"
|
|
|
|
{
|
|
|
|
#include <usbdlib.h>
|
|
|
|
}
|
|
|
|
|
2011-05-22 19:36:13 +00:00
|
|
|
//
|
|
|
|
// FIXME:
|
|
|
|
// #include <usbprotocoldefs.h>
|
|
|
|
//
|
|
|
|
#include <usb.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <wdmguid.h>
|
|
|
|
|
|
|
|
//
|
|
|
|
// FIXME:
|
|
|
|
// the following includes are required to get kcom to compile
|
|
|
|
//
|
|
|
|
#include <portcls.h>
|
|
|
|
#include <dmusicks.h>
|
|
|
|
#include <kcom.h>
|
|
|
|
|
|
|
|
#include "interfaces.h"
|
|
|
|
|
|
|
|
//
|
|
|
|
// flags for handling USB_REQUEST_SET_FEATURE / USB_REQUEST_GET_FEATURE
|
|
|
|
//
|
|
|
|
#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
|
|
|
|
|
|
|
|
//
|
|
|
|
// tag for allocations
|
|
|
|
//
|
2011-05-22 20:48:50 +00:00
|
|
|
#define TAG_USBOHCI 'ICHO'
|
2011-05-22 19:36:13 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// assert for c++ - taken from portcls
|
|
|
|
//
|
|
|
|
#define PC_ASSERT(exp) \
|
|
|
|
(VOID)((!(exp)) ? \
|
|
|
|
RtlAssert((PVOID) #exp, (PVOID)__FILE__, __LINE__, NULL ), FALSE : TRUE)
|
|
|
|
|
2012-02-29 09:15:42 +00:00
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
|
2011-05-22 19:36:13 +00:00
|
|
|
//
|
|
|
|
// hardware.cpp
|
|
|
|
//
|
2012-02-29 09:15:42 +00:00
|
|
|
NTSTATUS NTAPI CreateUSBHardware(PUSBHARDWAREDEVICE *OutHardware);
|
2011-05-22 19:36:13 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// usb_queue.cpp
|
|
|
|
//
|
2012-02-29 09:15:42 +00:00
|
|
|
NTSTATUS NTAPI CreateUSBQueue(PUSBQUEUE *OutUsbQueue);
|
2011-05-22 19:36:13 +00:00
|
|
|
|
|
|
|
//
|
|
|
|
// usb_request.cpp
|
|
|
|
//
|
2012-02-29 09:15:42 +00:00
|
|
|
NTSTATUS NTAPI InternalCreateUSBRequest(PUSBREQUEST *OutRequest);
|
|
|
|
}
|
2012-02-18 23:23:13 +00:00
|
|
|
|
2011-05-22 19:36:13 +00:00
|
|
|
#endif
|