Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Fix the part of the "no functional change" ...
details: https://anonhg.NetBSD.org/src/rev/c6a7e5de2e98
branches: nick-nhusb
changeset: 334151:c6a7e5de2e98
user: skrll <skrll%NetBSD.org@localhost>
date: Mon Mar 16 16:38:27 2015 +0000
description:
Fix the part of the "no functional change" that was and shouldn't have
been.
EHCI_ITD_[GS]ET_BPTR were wrong.
diffstat:
sys/dev/usb/ehcireg.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 6f6e5bb115de -r c6a7e5de2e98 sys/dev/usb/ehcireg.h
--- a/sys/dev/usb/ehcireg.h Sun Mar 15 11:52:47 2015 +0000
+++ b/sys/dev/usb/ehcireg.h Mon Mar 16 16:38:27 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ehcireg.h,v 1.34.14.6 2015/03/03 10:06:01 skrll Exp $ */
+/* $NetBSD: ehcireg.h,v 1.34.14.7 2015/03/16 16:38:27 skrll Exp $ */
/*
* Copyright (c) 2001, 2004 The NetBSD Foundation, Inc.
@@ -236,8 +236,8 @@
#define EHCI_ITD_SET_OFFS(x) __SHIFTIN((x), EHCI_ITD_OFFSET_MASK)
volatile ehci_isoc_bufr_ptr_t itd_bufr[EHCI_ITD_NBUFFERS];
#define EHCI_ITD_BPTR_MASK __BITS(31,12)
-#define EHCI_ITD_GET_BPTR(x) __SHIFTOUT((x), EHCI_ITD_BPTR_MASK)
-#define EHCI_ITD_SET_BPTR(x) __SHIFTIN((x), EHCI_ITD_BPTR_MASK)
+#define EHCI_ITD_GET_BPTR(x) ((x) & EHCI_ITD_BPTR_MASK)
+#define EHCI_ITD_SET_BPTR(x) ((x) & EHCI_ITD_BPTR_MASK)
#define EHCI_ITD_EP_MASK __BITS(11,8)
#define EHCI_ITD_GET_EP(x) __SHIFTOUT((x), EHCI_ITD_EP_MASK)
#define EHCI_ITD_SET_EP(x) __SHIFTIN((x), EHCI_ITD_EP_MASK)
Home |
Main Index |
Thread Index |
Old Index