From 4de9e9ca154a1e85f92ab22e26d557bcd249b1f6 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Sun, 21 Dec 2014 11:20:25 +0000 Subject: Use a bitmask when dumping TRB flags. No change in !XHCI_DEBUG. --- sys/dev/usb/xhcireg.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'sys/dev/usb/xhcireg.h') diff --git a/sys/dev/usb/xhcireg.h b/sys/dev/usb/xhcireg.h index a4db01c2043..30233f56730 100644 --- a/sys/dev/usb/xhcireg.h +++ b/sys/dev/usb/xhcireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: xhcireg.h,v 1.7 2014/12/15 17:10:44 mpi Exp $ */ +/* $OpenBSD: xhcireg.h,v 1.8 2014/12/21 11:20:24 mpi Exp $ */ /*- * Copyright (c) 2014 Martin Pieuchot. All rights reserved. @@ -363,6 +363,9 @@ struct xhci_trb { #define XHCI_TRB_SET_SLOT(x) (((x) & 0xff) << 24) } __packed; +#define XHCI_TRB_FLAGS_BITMASK \ + "\20\007IDT\006IOC\005CHAIN\004NOSNOOP\003ISP\002LINKSEG\001CYCLE" + #define XHCI_TRB_TYPE_MASK 0xfc00 #define XHCI_TRB_TYPE(x) (((x) & XHCI_TRB_TYPE_MASK) >> 10) -- cgit v1.2.3