diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-12-21 11:20:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2014-12-21 11:20:25 +0000 |
commit | 4de9e9ca154a1e85f92ab22e26d557bcd249b1f6 (patch) | |
tree | 799b2df1fb4caea49c559a8b80743098fab2220b /sys/dev/usb/xhcireg.h | |
parent | 3f3a0b87392dccc22ee020d4b4cf3f3ffeea51ef (diff) |
Use a bitmask when dumping TRB flags. No change in !XHCI_DEBUG.
Diffstat (limited to 'sys/dev/usb/xhcireg.h')
-rw-r--r-- | sys/dev/usb/xhcireg.h | 5 |
1 files changed, 4 insertions, 1 deletions
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) |