[Voyageurs] Set LinkTrb Toggle Cycle bit.

This commit is contained in:
Drew Galbraith 2024-02-23 08:19:38 -08:00
parent 8e78950ac7
commit 3d7e911045
1 changed files with 2 additions and 1 deletions

View File

@ -3,6 +3,7 @@
constexpr uint8_t kTrb_TypeOffset = 10; constexpr uint8_t kTrb_TypeOffset = 10;
constexpr uint16_t kTrb_Cycle = 1; constexpr uint16_t kTrb_Cycle = 1;
constexpr uint16_t kTrb_ToggleCycle = (1 << 1);
constexpr uint16_t kTrb_BSR = (1 << 9); constexpr uint16_t kTrb_BSR = (1 << 9);
namespace { namespace {
@ -21,7 +22,7 @@ XhciTrb CreateLinkTrb(uint64_t physical_address) {
return { return {
.parameter = physical_address, .parameter = physical_address,
.status = 0, .status = 0,
.type_and_cycle = TypeToInt(TrbType::Link), .type_and_cycle = (uint16_t)(TypeToInt(TrbType::Link) | kTrb_ToggleCycle),
.control = 0, .control = 0,
}; };
} }