mirror of
https://github.com/reactos/reactos.git
synced 2024-10-21 21:34:17 +00:00
009b2e00df
- Create empty USB EHCI driver in c++ - Design & review the interfaces with mjmartin - Create stubs for creating IUSBHardwareDevice / IHCDController classes - Implement DriverEntry, EHCI_AddDevice and EHCI_Dispatch svn path=/branches/usb-bringup/; revision=51335
54 lines
1.2 KiB
C
54 lines
1.2 KiB
C
#ifndef USBEHCI_H__
|
|
#define USBEHCI_H__
|
|
|
|
#include <ntddk.h>
|
|
#define YDEBUG
|
|
#include <debug.h>
|
|
#include <hubbusif.h>
|
|
#include <usbbusif.h>
|
|
#include <usbioctl.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"
|
|
|
|
typedef struct
|
|
{
|
|
BOOLEAN IsFDO; // is device a FDO or PDO
|
|
BOOLEAN IsHub; // is device a hub / child - not yet used
|
|
union
|
|
{
|
|
PHCDCONTROLLER HcdController; // hcd controller
|
|
PHUBCONTROLLER HubController; // hub controller
|
|
};
|
|
}COMMON_DEVICE_EXTENSION, *PCOMMON_DEVICE_EXTENSION;
|
|
|
|
|
|
//
|
|
// assert for c++ - taken from portcls
|
|
//
|
|
#define PC_ASSERT(exp) \
|
|
(VOID)((!(exp)) ? \
|
|
RtlAssert((PVOID) #exp, (PVOID)__FILE__, __LINE__, NULL ), FALSE : TRUE)
|
|
|
|
//
|
|
// hcd_controller.cpp
|
|
//
|
|
NTSTATUS CreateHCDController(PHCDCONTROLLER *HcdController);
|
|
|
|
//
|
|
// hardware.cpp
|
|
//
|
|
NTSTATUS CreateUSBHardware(PUSBHARDWAREDEVICE *OutHardware);
|
|
|
|
#endif
|