mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 21:17:45 +00:00
Kernel/USB: Add control_transfer()
function USB::Device
Some other parts of the USB stack may require us to perform a control transfer. Instead of abusing `friend` to expose the default pipe, let's just expose it via a function.
This commit is contained in:
parent
dac26f89cb
commit
a1df8a1896
2 changed files with 7 additions and 0 deletions
|
@ -47,6 +47,8 @@ public:
|
|||
USBController& controller() { return *m_controller; }
|
||||
USBController const& controller() const { return *m_controller; }
|
||||
|
||||
ErrorOr<size_t> control_transfer(u8 request_type, u8 request, u16 value, u16 index, u16 length, void* data);
|
||||
|
||||
protected:
|
||||
Device(NonnullRefPtr<USBController> controller, u8 address, u8 port, DeviceSpeed speed, NonnullOwnPtr<Pipe> default_pipe);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue