Skip to content

Commit

Permalink
usb-ehci: add queue data struct
Browse files Browse the repository at this point in the history
Add EHCIQueue struct, move the fields needed to track the queue state
into that struct.  Pass the new struct instead of ehci state down to
functions which handle the queue state.  Lot of variable references have
changed due to that without an actual functional change.

Replace fetch_addr with two variables, one for async and one for
periodic schedule.  Add functions to get and set the fetch address.

Use EHCIQueue->usb_status (old name: EHCIState->exec_status) directly in
ehci_execute_complete instead of passing around the status using a
parameters and the return value.

ehci_state_fetchqh returns a EHCIQueue struct now.

No change in behavior.

Signed-off-by: Gerd Hoffmann <[email protected]>
  • Loading branch information
kraxel committed Jun 14, 2011
1 parent f2c88dc commit 0122f47
Showing 1 changed file with 257 additions and 229 deletions.
Loading

0 comments on commit 0122f47

Please sign in to comment.