1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 05:57:45 +00:00

Kernel/USB: Add support for bulk transfers

This commit is contained in:
b14ckcat 2022-05-08 01:36:20 -04:00 committed by Andreas Kling
parent 6a3f959e92
commit 8a7876d65c
7 changed files with 80 additions and 0 deletions

View file

@ -57,6 +57,7 @@ public:
void set_device_address(i8 addr) { m_device_address = addr; }
ErrorOr<size_t> control_transfer(u8 request_type, u8 request, u16 value, u16 index, u16 length, void* data);
ErrorOr<size_t> bulk_transfer(u16 length, void* data);
Pipe(USBController const& controller, Type type, Direction direction, u16 max_packet_size);
Pipe(USBController const& controller, Type type, Direction direction, USBEndpointDescriptor& endpoint);