[Voyageurs] Send AddressDevice Command to move port to 'Addressed' State.
This commit is contained in:
parent
dd2687a59a
commit
8e78950ac7
10 changed files with 236 additions and 33 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue