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 constify tdflags in ohci_{alloc, reset}_std_...
details: https://anonhg.NetBSD.org/src/rev/756248d5b623
branches: nick-nhusb
changeset: 334459:756248d5b623
user: skrll <skrll%NetBSD.org@localhost>
date: Fri Apr 01 12:58:15 2016 +0000
description:
constify tdflags in ohci_{alloc,reset}_std_chain
diffstat:
sys/dev/usb/ohci.c | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 3a95b773c3d9 -r 756248d5b623 sys/dev/usb/ohci.c
--- a/sys/dev/usb/ohci.c Tue Mar 29 08:42:41 2016 +0000
+++ b/sys/dev/usb/ohci.c Fri Apr 01 12:58:15 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ohci.c,v 1.254.2.60 2016/03/24 15:30:17 skrll Exp $ */
+/* $NetBSD: ohci.c,v 1.254.2.61 2016/04/01 12:58:15 skrll Exp $ */
/*
* Copyright (c) 1998, 2004, 2005, 2012 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.60 2016/03/24 15:30:17 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ohci.c,v 1.254.2.61 2016/04/01 12:58:15 skrll Exp $");
#include "opt_usb.h"
@@ -523,7 +523,6 @@
struct usbd_pipe *pipe = xfer->ux_pipe;
ohci_soft_td_t *next, *cur;
ohci_physaddr_t dataphys, dataphysend;
- uint32_t tdflags;
int len = alen;
int curlen;
usb_dma_t *dma = &xfer->ux_dmabuf;
@@ -554,7 +553,7 @@
dataphys = DMAADDR(dma, 0);
dataphysend = OHCI_PAGE(dataphys + len - 1);
- tdflags = HTOO32(
+ const uint32_t tdflags = HTOO32(
(rd ? OHCI_TD_IN : OHCI_TD_OUT) |
OHCI_TD_NOCC | OHCI_TD_TOGGLE_CARRY | OHCI_TD_NOINTR);
@@ -650,7 +649,6 @@
struct ohci_xfer *ox = OHCI_XFER2OXFER(xfer);
ohci_soft_td_t *next, *cur;
ohci_physaddr_t dataphys, dataphysend;
- uint32_t tdflags;
int len, curlen;
usb_dma_t *dma = &xfer->ux_dmabuf;
uint16_t flags = xfer->ux_flags;
@@ -676,7 +674,7 @@
dataphysend = OHCI_PAGE(dataphys + len - 1);
usb_syncmem(dma, 0, len,
rd ? BUS_DMASYNC_PREREAD : BUS_DMASYNC_PREWRITE);
- tdflags = HTOO32(
+ const uint32_t tdflags = HTOO32(
(rd ? OHCI_TD_IN : OHCI_TD_OUT) |
OHCI_TD_NOCC | OHCI_TD_TOGGLE_CARRY | OHCI_TD_NOINTR);
Home |
Main Index |
Thread Index |
Old Index