Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Update XHCI_HCS2_MAXSPBUF to grab all the bits (...
details: https://anonhg.NetBSD.org/src/rev/bbc2e637de15
branches: trunk
changeset: 817645:bbc2e637de15
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Aug 28 16:41:30 2016 +0000
description:
Update XHCI_HCS2_MAXSPBUF to grab all the bits (revision 1.1) from
HCSPARAMS2.
diffstat:
sys/dev/usb/xhcireg.h | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (22 lines):
diff -r 686b9f915536 -r bbc2e637de15 sys/dev/usb/xhcireg.h
--- a/sys/dev/usb/xhcireg.h Sun Aug 28 15:59:15 2016 +0000
+++ b/sys/dev/usb/xhcireg.h Sun Aug 28 16:41:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xhcireg.h,v 1.6 2016/05/06 10:24:06 skrll Exp $ */
+/* $NetBSD: xhcireg.h,v 1.7 2016/08/28 16:41:30 skrll Exp $ */
/*-
* Copyright (c) 2010 Hans Petter Selasky. All rights reserved.
@@ -60,7 +60,11 @@
#define XHCI_HCS2_IST(x) ((x) & 0xF)
#define XHCI_HCS2_ERST_MAX(x) (((x) >> 4) & 0xF)
#define XHCI_HCS2_SPR(x) (((x) >> 24) & 0x1)
-#define XHCI_HCS2_MAXSPBUF(x) (((x) >> 27) & 0x7F)
+#define XHCI_HCS2_SPBUFLO __BITS(31, 27)
+#define XHCI_HCS2_SPBUFHI __BITS(25, 21)
+#define XHCI_HCS2_MAXSPBUF(x) \
+ (__SHIFTOUT((x), XHCI_HCS2_SPBUFHI) << 5) | \
+ (__SHIFTOUT((x), XHCI_HCS2_SPBUFLO))
#define XHCI_HCSPARAMS3 0x0C /* RO structual parameters 3 */
#define XHCI_HCS3_U1_DEL(x) ((x) & 0xFF)
Home |
Main Index |
Thread Index |
Old Index