Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Libusb max size #50

Merged
merged 2 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 0 additions & 13 deletions libusb/src/driver/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,6 @@

// calls the transfer function and returns NTSTATUS
#define TRANSFER_IOCTL_EXECUTE() \
if (transfer_buffer_length > (ULONG)(maxTransferSize)) \
/* split large transfers */ \
return large_transfer(dev, irp, \
usbdDirection, \
urbFunction, \
pipe_info, \
request->endpoint.packet_size, \
maxTransferSize, \
request->endpoint.transfer_flags, \
request->endpoint.iso_start_frame_latency, \
transfer_buffer_mdl, \
transfer_buffer_length); \
else \
/* normal transfer */ \
return transfer(dev, irp, \
usbdDirection, \
Expand Down
12 changes: 0 additions & 12 deletions libusb/src/driver/libusb_driver.h
Original file line number Diff line number Diff line change
Expand Up @@ -350,18 +350,6 @@ NTSTATUS transfer(libusb_device_t* dev,
IN PMDL mdlAddress,
IN int totalLength);

NTSTATUS large_transfer(IN libusb_device_t* dev,
IN PIRP irp,
IN int direction,
IN int urbFunction,
IN libusb_endpoint_t* endpoint,
IN int packetSize,
IN int maxTransferSize,
IN int transferFlags,
IN int isoLatency,
IN PMDL mdlAddress,
IN int totalLength);

ULONG get_current_frame(IN PDEVICE_EXTENSION dev, IN PIRP Irp);

PVOID allocate_pool(SIZE_T bytes);
Expand Down
Loading