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:
parent
8335803045
commit
4b327bdc95
4 changed files with 43 additions and 0 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue