[Voyageurs] Create an abstraction for managing TRBs.

This commit is contained in:
Drew Galbraith 2024-02-13 19:39:55 -08:00
parent 2228b5b52e
commit b41784b938
8 changed files with 78 additions and 40 deletions

View 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,
};
}