Add a small cookie function to the Pipe. This can be used by the controller to store internal data related to a specific transfer pipe.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22931 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
8d2fdf2b0e
commit
76748b3cb1
@ -271,6 +271,9 @@ virtual void SetDataToggle(bool toggle) { fDataToggle = toggle; };
|
||||
status_t SubmitTransfer(Transfer *transfer);
|
||||
status_t CancelQueuedTransfers(bool force);
|
||||
|
||||
void SetControllerCookie(void *cookie) { fControllerCookie = cookie; };
|
||||
void *ControllerCookie() { return fControllerCookie; };
|
||||
|
||||
// Convenience functions for standard requests
|
||||
virtual status_t SetFeature(uint16 selector);
|
||||
virtual status_t ClearFeature(uint16 selector);
|
||||
@ -283,6 +286,7 @@ private:
|
||||
usb_speed fSpeed;
|
||||
size_t fMaxPacketSize;
|
||||
bool fDataToggle;
|
||||
void *fControllerCookie;
|
||||
};
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user