mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:07:36 +00:00
Kernel: Mark USBTransfer's constructor as private
We have a try_create method for that.
This commit is contained in:
parent
21c5c4026b
commit
b03b7f806a
1 changed files with 1 additions and 2 deletions
|
@ -21,9 +21,7 @@ class Transfer : public RefCounted<Transfer> {
|
||||||
public:
|
public:
|
||||||
static ErrorOr<NonnullRefPtr<Transfer>> try_create(Pipe&, u16 length);
|
static ErrorOr<NonnullRefPtr<Transfer>> try_create(Pipe&, u16 length);
|
||||||
|
|
||||||
public:
|
|
||||||
Transfer() = delete;
|
Transfer() = delete;
|
||||||
Transfer(Pipe& pipe, u16 len, NonnullOwnPtr<Memory::Region>);
|
|
||||||
~Transfer();
|
~Transfer();
|
||||||
|
|
||||||
void set_setup_packet(const USBRequestData& request);
|
void set_setup_packet(const USBRequestData& request);
|
||||||
|
@ -41,6 +39,7 @@ public:
|
||||||
bool error_occurred() const { return m_error_occurred; }
|
bool error_occurred() const { return m_error_occurred; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
Transfer(Pipe& pipe, u16 len, NonnullOwnPtr<Memory::Region>);
|
||||||
Pipe& m_pipe; // Pipe that initiated this transfer
|
Pipe& m_pipe; // Pipe that initiated this transfer
|
||||||
USBRequestData m_request; // USB request
|
USBRequestData m_request; // USB request
|
||||||
NonnullOwnPtr<Memory::Region> m_data_buffer; // DMA Data buffer for transaction
|
NonnullOwnPtr<Memory::Region> m_data_buffer; // DMA Data buffer for transaction
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue