xHCI: store ring's type
When allocate a ring, store its type - four transfer types for endpoint, TYPE_STREAM for stream transfer, and TYPE_COMMAND/TYPE_EVENT for xHCI host. This helps to get rid of three bool function parameters: link_trbs, isoc and consumer. Signed-off-by: Andiry Xu <andiry.xu@amd.com> Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com> Tested-by: Paul Zimmerman <Paul.Zimmerman@synopsys.com>
This commit is contained in:

gecommit door
Sarah Sharp

bovenliggende
8d3709f3dd
commit
3b72fca09d
@@ -1250,6 +1250,16 @@ struct xhci_dequeue_state {
|
||||
int new_cycle_state;
|
||||
};
|
||||
|
||||
enum xhci_ring_type {
|
||||
TYPE_CTRL = 0,
|
||||
TYPE_ISOC,
|
||||
TYPE_BULK,
|
||||
TYPE_INTR,
|
||||
TYPE_STREAM,
|
||||
TYPE_COMMAND,
|
||||
TYPE_EVENT,
|
||||
};
|
||||
|
||||
struct xhci_ring {
|
||||
struct xhci_segment *first_seg;
|
||||
union xhci_trb *enqueue;
|
||||
@@ -1266,6 +1276,7 @@ struct xhci_ring {
|
||||
*/
|
||||
u32 cycle_state;
|
||||
unsigned int stream_id;
|
||||
enum xhci_ring_type type;
|
||||
bool last_td_was_short;
|
||||
};
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user