mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
Kernel/USB: Add support for bulk transfers
This commit is contained in:
parent
6a3f959e92
commit
8a7876d65c
7 changed files with 80 additions and 0 deletions
|
@ -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?
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue