XHCI: Fix endpoint flags bits macros.

There can be up to 32 endpoints, so the correct mask is 0x1f.
Checked against FreeBSD.
This commit is contained in:
Augustin Cavalier 2021-09-01 19:44:37 -04:00
parent 22002cf4a5
commit ad245b6cdb

View File

@ -293,8 +293,8 @@
#define TRB_3_TBC_GET(x) (((x) >> 7) & 0x3)
#define TRB_3_TLBPC(x) (((x) & 0xf) << 16)
#define TRB_3_TLBPC_GET(x) (((x) >> 16) & 0xf)
#define TRB_3_ENDPOINT(x) (((x) & 0xf) << 16)
#define TRB_3_ENDPOINT_GET(x) (((x) >> 16) & 0xf)
#define TRB_3_ENDPOINT(x) (((x) & 0x1f) << 16)
#define TRB_3_ENDPOINT_GET(x) (((x) >> 16) & 0x1f)
#define TRB_3_FRID(x) (((x) & 0x7ff) << 20)
#define TRB_3_FRID_GET(x) (((x) >> 20) & 0x7ff)
#define TRB_3_SLOT(x) (((x) & 0xff) << 24)