1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19: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

@ -28,6 +28,8 @@ public:
void set_complete() { m_complete = true; }
void set_error_occurred() { m_error_occurred = true; }
ErrorOr<void> write_buffer(u16 len, void* data);
// `const` here makes sure we don't blow up by writing to a physical address
USBRequestData const& request() const { return m_request; }
Pipe const& pipe() const { return m_pipe; }
@ -47,4 +49,5 @@ private:
bool m_complete { false }; // Has this transfer been completed?
bool m_error_occurred { false }; // Did an error occur during this transfer?
};
}