[Voyageurs] Create an abstraction for managing TRBs.
This commit is contained in:
parent
2228b5b52e
commit
b41784b938
8 changed files with 78 additions and 40 deletions
10
sys/voyageurs/xhci/trb.cpp
Normal file
10
sys/voyageurs/xhci/trb.cpp
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#include "xhci/trb.h"
|
||||
|
||||
XhciTrb CreateLinkTrb(uint64_t physical_address) {
|
||||
return {
|
||||
.parameter = physical_address,
|
||||
.status = 0,
|
||||
.type_and_cycle = 6 << 10,
|
||||
.control = 0,
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue