[Voyageurs] Send AddressDevice Command to move port to 'Addressed' State.

This commit is contained in:
Drew Galbraith 2024-02-22 18:16:08 -08:00
parent dd2687a59a
commit 8e78950ac7
10 changed files with 236 additions and 33 deletions

View file

@ -2,7 +2,33 @@
#include "xhci/xhci.h"
enum class TrbType : uint8_t {
Reserved = 0,
// Transfers
Normal = 1,
SetupStage = 2,
DataStage = 3,
StatusStage = 4,
Isoch = 5,
Link = 6,
EventData = 7,
NoOp = 8,
// Commands
EnableSlot = 9,
AddressDevice = 11,
NoOpCommand = 23,
// Events
CommandCompletion = 33,
PortStatusChange = 34,
};
TrbType GetType(const XhciTrb& trb);
XhciTrb CreateLinkTrb(uint64_t physical_address);
XhciTrb CreateEnableSlotTrb();
XhciTrb CreateAddressDeviceCommand(uint64_t input_context, uint8_t slot_id);
XhciTrb CreateNoOpCommandTrb();