1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 06:57:44 +00:00

Kernel/USB: Add UKBuffer variants of certain BulkPipe/Transfer functions

These will be useful for directly accessing the source/destination
buffers, without going through a third buffer first.
This commit is contained in:
Hendiadyoin1 2023-08-31 16:53:00 +02:00 committed by Andrew Kaster
parent 8335803045
commit 4b327bdc95
4 changed files with 43 additions and 0 deletions

View file

@ -30,6 +30,7 @@ public:
void set_error_occurred() { m_error_occurred = true; }
ErrorOr<void> write_buffer(u16 len, void* data);
ErrorOr<void> write_buffer(u16 len, UserOrKernelBuffer data);
// `const` here makes sure we don't blow up by writing to a physical address
USBRequestData const& request() const { return m_request; }