mirror of
https://github.com/reactos/reactos.git
synced 2024-10-22 05:46:19 +00:00
c2d0d784c7
- Create a branch to do a proper merge of USB work from a trunk base instead of from cmake-bringup - In the future, DO NOT under any circumstances branch another branch. This leads to merge problems! svn path=/branches/usb-bringup-trunk/; revision=55018
40 lines
1.2 KiB
C
40 lines
1.2 KiB
C
#pragma once
|
|
|
|
#include "hardware.h"
|
|
#include "hwiface.h"
|
|
#include "physmem.h"
|
|
#include "usbehci.h"
|
|
#include <usb.h>
|
|
#include <ntddk.h>
|
|
|
|
PQUEUE_HEAD
|
|
BuildControlTransfer(PEHCI_HOST_CONTROLLER hcd,
|
|
ULONG DeviceAddress,
|
|
USBD_PIPE_HANDLE PipeHandle,
|
|
PUSB_DEFAULT_PIPE_SETUP_PACKET CtrlSetup,
|
|
PMDL pMdl,
|
|
BOOLEAN FreeMdl);
|
|
|
|
PQUEUE_HEAD
|
|
BuildBulkTransfer(PEHCI_HOST_CONTROLLER hcd,
|
|
ULONG DeviceAddress,
|
|
USBD_PIPE_HANDLE PipeHandle,
|
|
UCHAR PidDirection,
|
|
PMDL pMdl,
|
|
BOOLEAN FreeMdl);
|
|
|
|
VOID
|
|
BuildSetupPacketFromURB(PEHCI_HOST_CONTROLLER hcd,
|
|
PURB Urb,
|
|
PUSB_DEFAULT_PIPE_SETUP_PACKET CtrlSetup);
|
|
|
|
NTSTATUS
|
|
ExecuteTransfer(PDEVICE_OBJECT DeviceObject,
|
|
PUSB_DEVICE UsbDevice,
|
|
USBD_PIPE_HANDLE PipeHandle,
|
|
PUSB_DEFAULT_PIPE_SETUP_PACKET CtrlSetup,
|
|
ULONG TransferFlags,
|
|
PVOID TransferBufferOrMdl,
|
|
ULONG TransferBufferLength,
|
|
PIRP IrpToComplete);
|